Add a new method to get the representation of an image

This commit is contained in:
Paul Betts 2016-03-13 20:08:09 -07:00
parent b2059ec8af
commit b3da5370c0

View file

@ -61,6 +61,7 @@ class NativeImage : public mate::Wrappable {
private:
v8::Local<v8::Value> ToPNG(v8::Isolate* isolate);
v8::Local<v8::Value> ToJPEG(v8::Isolate* isolate, int quality);
v8::Local<v8::Value> AsNativeRepresentation(v8::Isolate* isolate, mate::Arguments* args);
std::string ToDataURL();
bool IsEmpty();
gfx::Size GetSize();