Image

clay.Image (Class)

Instance Members

width: Int

Image width from source image


height: Int

Image height from source image


widthActual: Int

The actual width, used when image is automatically padded to POT


heightActual: Int

The actual height, used when image is automatically padded to POT


bitsPerPixel: Int

used bits per pixel


sourceBitsPerPixel: Int

source bits per pixel


image pixel data


premultiplyAlpha(): Void

reversePremultiplyAlpha(): Void

new(?width: Null<Int>, ?height: Null<Int>, ?widthActual: Null<Int>, ?heightActual: Null<Int>, ?bitsPerPixel: Null<Int>, ?sourceBitsPerPixel: Null<Int>, ?pixels: Null<clay.buffers.Uint8Array>): Void
Name Type Default Description
width Null<Int> (optional) Image width from source image
height Null<Int> (optional) Image height from source image
widthActual Null<Int> (optional) The actual width, used when image is automatically padded to POT
heightActual Null<Int> (optional) The actual height, used when image is automatically padded to POT
bitsPerPixel Null<Int> (optional) used bits per pixel
sourceBitsPerPixel Null<Int> (optional) source bits per pixel
pixels Null<clay.buffers.Uint8Array> (optional) image pixel data

Metadata

Name Parameters
:structInit -