main.cesium.getImagePixels.kt Maven / Gradle / Ivy
The newest version!
// Automatically generated - do not modify!
@file:JsModule("cesium")
package cesium
/**
* Extract a pixel array from a loaded image. Draws the image
* into a canvas so it can read the pixels back.
* @param [image] The image to extract pixels from.
* @param [width] The width of the image. If not defined, then image.width is assigned.
* @param [height] The height of the image. If not defined, then image.height is assigned.
* @return The pixels of the image.
* @see Online Documentation
*/
external fun getImagePixels(
image: org.w3c.dom.HTMLImageElement,
width: Double,
height: Double,
): org.w3c.dom.ImageData