diff --git a/src/robotjs.cc b/src/robotjs.cc index 0277526e..3b9befd9 100644 --- a/src/robotjs.cc +++ b/src/robotjs.cc @@ -834,32 +834,6 @@ NAN_METHOD(getColor) } -NAN_METHOD(saveBitmap) -{ - MMBitmapRef bitmap; - MMImageType type = kBMPImageType; - - // Get our image object from JavaScript. - BMP img = buildBMP(Nan::To(info[0]).ToLocalChecked()); - - char *path; - Nan::Utf8String string(info[1]); - - path = *string; - - // Create the bitmap. - bitmap = createMMBitmap(img.image, img.width, img.height, img.byteWidth, img.bitsPerPixel, img.bytesPerPixel); - - if (saveMMBitmapToFile(bitmap, path, type) != 0) { - return Nan::ThrowError("Could not save image to file."); - } - - destroyMMBitmap(bitmap); - - info.GetReturnValue().Set(Nan::New(1)); - -} - NAN_MODULE_INIT(InitAll) { Nan::Set(target, Nan::New("dragMouse").ToLocalChecked(),