Add NativeImage.toDataUrl()
This commit is contained in:
parent
8e94856cc8
commit
353b485202
2 changed files with 14 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
|||
#ifndef ATOM_COMMON_API_ATOM_API_NATIVE_IMAGE_H_
|
||||
#define ATOM_COMMON_API_ATOM_API_NATIVE_IMAGE_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "native_mate/handle.h"
|
||||
#include "native_mate/wrappable.h"
|
||||
#include "ui/gfx/image/image.h"
|
||||
|
@ -58,6 +60,7 @@ class NativeImage : public mate::Wrappable {
|
|||
|
||||
v8::Handle<v8::Value> ToPNG(v8::Isolate* isolate);
|
||||
v8::Handle<v8::Value> ToJPEG(v8::Isolate* isolate, int quality);
|
||||
std::string ToDataURL();
|
||||
bool IsEmpty();
|
||||
gfx::Size GetSize();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue