NativeImage
Properties
Functions
Add an image representation for a specific scale factor. This can be used to programmatically add different scale factor representations to an image. This can be called on empty images.
The cropped image.
The image's aspect ratio (width divided by height).
A Buffer that contains the image's raw bitmap pixel data.
A Buffer that stores C pointer to underlying native handle of the image. On macOS, a pointer to NSImage
instance is returned.
An array of all scale factors corresponding to representations for a given NativeImage
.
Whether the image is a macOS template image.
The resized image.
Marks the image as a macOS template image.
A Buffer that contains a copy of the image's raw bitmap pixel data.
The Data URL of the image.
A Buffer that contains the image's PNG
encoded data.