Skip to content

Commit

Permalink
Remove .save.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Oct 15, 2016
1 parent 42a2562 commit 4e0f44c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@ function bitmap(width, height, byteWidth, bitsPerPixel, bytesPerPixel, image)
this.bitsPerPixel = bitsPerPixel;
this.bytesPerPixel = bytesPerPixel;
this.image = image;

this.colorAt = function(x, y)
{
return robotjs.getColor(this, x, y);
};

this.save = function(path)
{
return robotjs.saveBitmap(this, path);
};

}

module.exports.screen.capture = function(x, y, width, height)
Expand All @@ -35,6 +31,6 @@ module.exports.screen.capture = function(x, y, width, height)
{
b = robotjs.captureScreen();
}

return new bitmap(b.width, b.height, b.byteWidth, b.bitsPerPixel, b.bytesPerPixel, b.image);
};
};

0 comments on commit 4e0f44c

Please sign in to comment.