kvision
Toggle table of contents
8.2.0
js
Platform filter
js
Switch theme
Search in API
kvision
kvision-electron
/
io.kvision.electron.electron
/
NativeImage
Native
Image
open
external
class
NativeImage
(
source
)
Members
Constructors
Native
Image
Link copied to clipboard
constructor
(
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
is
Mac
Template
Image
Link copied to clipboard
open
var
isMacTemplateImage
:
Boolean
Functions
add
Representation
Link copied to clipboard
open
fun
addRepresentation
(
options
:
AddRepresentationOptions
)
crop
Link copied to clipboard
open
fun
crop
(
rect
:
Rectangle
)
:
NativeImage
get
Aspect
Ratio
Link copied to clipboard
open
fun
getAspectRatio
(
)
:
Number
get
Bitmap
Link copied to clipboard
open
fun
getBitmap
(
options
:
BitmapOptions
=
definedExternally
)
:
Buffer
<
ArrayBuffer
>
get
Native
Handle
Link copied to clipboard
open
fun
getNativeHandle
(
)
:
Buffer
<
ArrayBuffer
>
get
Size
Link copied to clipboard
open
fun
getSize
(
)
:
Size
is
Empty
Link copied to clipboard
open
fun
isEmpty
(
)
:
Boolean
is
Template
Image
Link copied to clipboard
open
fun
isTemplateImage
(
)
:
Boolean
resize
Link copied to clipboard
open
fun
resize
(
options
:
ResizeOptions
)
:
NativeImage
set
Template
Image
Link copied to clipboard
open
fun
setTemplateImage
(
option
:
Boolean
)
to
Bitmap
Link copied to clipboard
open
fun
toBitmap
(
options
:
ToBitmapOptions
=
definedExternally
)
:
Buffer
<
ArrayBuffer
>
to
Data
URL
Link copied to clipboard
open
fun
toDataURL
(
options
:
ToDataURLOptions
=
definedExternally
)
:
String
to
JPEG
Link copied to clipboard
open
fun
toJPEG
(
quality
:
Number
)
:
Buffer
<
ArrayBuffer
>
to
PNG
Link copied to clipboard
open
fun
toPNG
(
options
:
ToPNGOptions
=
definedExternally
)
:
Buffer
<
ArrayBuffer
>