Add NativeImage.ToJPEG

This commit is contained in:
Cheng Zhao 2015-02-11 17:47:54 +08:00
parent 549df36f00
commit 53fca43d89
2 changed files with 11 additions and 0 deletions

View file

@ -32,6 +32,7 @@ class NativeImage : public mate::Wrappable {
private:
v8::Handle<v8::Value> ToPNG(v8::Isolate* isolate);
v8::Handle<v8::Value> ToJPEG(v8::Isolate* isolate, int quality);
bool IsEmpty();
gfx::Size GetSize();