diff --git a/bitmap/goBitmap.h b/bitmap/goBitmap.h index 7b1f81a..5b3b4ec 100644 --- a/bitmap/goBitmap.h +++ b/bitmap/goBitmap.h @@ -18,17 +18,6 @@ #include #include -// class BMP -// { -// public: -// size_t width; -// size_t height; -// size_t byteWidth; -// uint8_t bitsPerPixel; -// uint8_t bytesPerPixel; -// uint8_t *image; -// }; - /* Returns false and sets error if |bitmap| is NULL. */ bool bitmap_ready(MMBitmapRef bitmap){ if (bitmap == NULL || bitmap->imageBuffer == NULL) { @@ -68,7 +57,7 @@ MMPoint find_bitmap(MMBitmapRef bitmap, MMBitmapRef sbit, float tolerance){ } MMRect rect = MMBitmapGetBounds(sbit); - // printf("x=%d,y=%d,width=%d,height=%d\n", rect.origin.x, + // printf("x=%d, y=%d, width=%d, height=%d\n", rect.origin.x, // rect.origin.y, rect.size.width, rect.size.height); if (findBitmapInRect(bitmap, sbit, &point, diff --git a/examples/scale/main.go b/examples/scale/main.go index 0b40acc..09db35e 100644 --- a/examples/scale/main.go +++ b/examples/scale/main.go @@ -16,6 +16,7 @@ func main() { s := robotgo.Scale() robotx := 35 * s / 100 roboty := 25 * s / 100 + bit1 := robotgo.CaptureScreen(0, 0, robotx, roboty) robotgo.SaveBitmap(bit1, "test2.png")