Enable creating NativeImage with native-image module
This commit is contained in:
parent
85f5ef2ab1
commit
2876f15063
3 changed files with 5 additions and 0 deletions
|
@ -98,6 +98,9 @@ namespace {
|
|||
|
||||
void Initialize(v8::Handle<v8::Object> exports, v8::Handle<v8::Value> unused,
|
||||
v8::Handle<v8::Context> context, void* priv) {
|
||||
mate::Dictionary dict(context->GetIsolate(), exports);
|
||||
dict.SetMethod("createFromPng", &atom::api::NativeImage::CreateFromPNG);
|
||||
dict.SetMethod("createFromJpeg", &atom::api::NativeImage::CreateFromJPEG);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue