Add initial crop method
This commit is contained in:
parent
a80f4c1605
commit
2b4fff70d5
2 changed files with 13 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
#include "base/values.h"
|
||||
#include "native_mate/handle.h"
|
||||
#include "native_mate/wrappable.h"
|
||||
#include "ui/gfx/geometry/rect.h"
|
||||
#include "ui/gfx/image/image.h"
|
||||
|
||||
#if defined(OS_WIN)
|
||||
|
@ -78,6 +79,8 @@ class NativeImage : public mate::Wrappable<NativeImage> {
|
|||
mate::Arguments* args);
|
||||
mate::Handle<NativeImage> Resize(v8::Isolate* isolate,
|
||||
const base::DictionaryValue& options);
|
||||
mate::Handle<NativeImage> Crop(v8::Isolate* isolate,
|
||||
const gfx::Rect& bounds);
|
||||
std::string ToDataURL();
|
||||
bool IsEmpty();
|
||||
gfx::Size GetSize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue