diff --git a/index.js b/index.js index 04ce2c00..7dd1c755 100644 --- a/index.js +++ b/index.js @@ -14,6 +14,11 @@ function bitmap (width, height, byteWidth, bitsPerPixel, bytesPerPixel, image) this.image = image; } +bitmap.prototype.color = function() +{ + return robotjs.getColor(this); +}; + module.exports.screen.capture = function() { b = robotjs.captureScreen();