From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- .../-native-image/index.html | 182 +++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 api1/pl.treksoft.kvision.electron/-native-image/index.html (limited to 'api1/pl.treksoft.kvision.electron/-native-image/index.html') diff --git a/api1/pl.treksoft.kvision.electron/-native-image/index.html b/api1/pl.treksoft.kvision.electron/-native-image/index.html new file mode 100644 index 00000000..0394d34d --- /dev/null +++ b/api1/pl.treksoft.kvision.electron/-native-image/index.html @@ -0,0 +1,182 @@ + + + +NativeImage - kvision + + + +kvision / pl.treksoft.kvision.electron / NativeImage
+
+

NativeImage

+open external class NativeImage +

Constructors

+ + + + + + + +
+

<init>

+
+NativeImage()
+

Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

addRepresentation

+
+open fun addRepresentation(options: AddRepresentationOptions): Unit
+

crop

+
+open fun crop(rect: Rectangle): NativeImage
+

getAspectRatio

+
+open fun getAspectRatio(): Number
+

getBitmap

+
+open fun getBitmap(options: BitmapOptions? = definedExternally): <ERROR CLASS>
+

getNativeHandle

+
+open fun getNativeHandle(): <ERROR CLASS>
+

getSize

+
+open fun getSize(): Size
+

isEmpty

+
+open fun isEmpty(): Boolean
+

isTemplateImage

+
+open fun isTemplateImage(): Boolean
+

resize

+
+open fun resize(options: ResizeOptions): NativeImage
+

setTemplateImage

+
+open fun setTemplateImage(option: Boolean): Unit
+

toBitmap

+
+open fun toBitmap(options: ToBitmapOptions? = definedExternally): <ERROR CLASS>
+

toDataURL

+
+open fun toDataURL(options: ToDataURLOptions? = definedExternally): String
+

toJPEG

+
+open fun toJPEG(quality: Number): <ERROR CLASS>
+

toPNG

+
+open fun toPNG(options: ToPNGOptions? = definedExternally): <ERROR CLASS>
+

Companion Object Functions

+ + + + + + + + + + + + + + + + + + + + + + + +
+

createEmpty

+
+fun createEmpty(): NativeImage
+

createFromBuffer

+
+fun createFromBuffer(buffer: <ERROR CLASS>, options: CreateFromBufferOptions? = definedExternally): NativeImage
+

createFromDataURL

+
+fun createFromDataURL(dataURL: String): NativeImage
+

createFromNamedImage

+
+fun createFromNamedImage(imageName: String, hslShift: Array<Number>): NativeImage
+

createFromPath

+
+fun createFromPath(path: String): NativeImage
+

Extension Functions

+ + + + + + + +
+

createInstance

+
+fun <T> Any?.createInstance(vararg args: dynamic): T +

Helper function for creating JavaScript objects from dynamic constructors.

+
+ + -- cgit