CreateImageOptions
Options for creating an Image from pixel data (see createImage()).
Properties
| Property | Type | Description |
|---|---|---|
dimensions | vec3i | Image dimensions as [width, height, slices]. |
channels | number | Number of channels per pixel. |
data | | Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike> | Pixel data as a TypedArray. The array length must match: width * height * slices * channels |
spacing? | vec3 | Physical pixel/voxel spacing in mm. |