NativeImage
Properties
Functions
Link copied to clipboard
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.
Link copied to clipboard
The cropped image.
Link copied to clipboard
The image's aspect ratio (width divided by height).
Link copied to clipboard
Legacy alias for image.toBitmap()
.
Link copied to clipboard
A Buffer that stores C pointer to underlying native handle of the image. On macOS, a pointer to NSImage
instance is returned.
Link copied to clipboard
An array of all scale factors corresponding to representations for a given NativeImage
.
Link copied to clipboard
Whether the image is a macOS template image.
Link copied to clipboard
The resized image.
Link copied to clipboard
Marks the image as a macOS template image.
Link copied to clipboard
fun toBitmap(options: ToBitmapOptions = definedExternally): ERROR CLASS: Symbol not found for Buffer<*>
A Buffer that contains a copy of the image's raw bitmap pixel data.
Link copied to clipboard
The Data URL of the image.
Link copied to clipboard
A Buffer that contains the image's PNG
encoded data.