Image
clay.Image (Class)
Instance Members
width: IntImage width from source image
height: IntImage height from source image
widthActual: IntThe actual width, used when image is automatically padded to POT
heightActual: IntThe actual height, used when image is automatically padded to POT
bitsPerPixel: Intused bits per pixel
sourceBitsPerPixel: Intsource bits per pixel
pixels: clay.buffers.Uint8Arrayimage pixel data
premultiplyAlpha(): VoidreversePremultiplyAlpha(): Voidnew(?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 |
- |