Skip to content

Commit 4e0f44c

Browse files
committed
Remove .save.
1 parent 42a2562 commit 4e0f44c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

index.js

+4-8
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,12 @@ function bitmap(width, height, byteWidth, bitsPerPixel, bytesPerPixel, image)
1212
this.bitsPerPixel = bitsPerPixel;
1313
this.bytesPerPixel = bytesPerPixel;
1414
this.image = image;
15-
15+
1616
this.colorAt = function(x, y)
1717
{
1818
return robotjs.getColor(this, x, y);
1919
};
20-
21-
this.save = function(path)
22-
{
23-
return robotjs.saveBitmap(this, path);
24-
};
20+
2521
}
2622

2723
module.exports.screen.capture = function(x, y, width, height)
@@ -35,6 +31,6 @@ module.exports.screen.capture = function(x, y, width, height)
3531
{
3632
b = robotjs.captureScreen();
3733
}
38-
34+
3935
return new bitmap(b.width, b.height, b.byteWidth, b.bitsPerPixel, b.bytesPerPixel, b.image);
40-
};
36+
};

0 commit comments

Comments
 (0)