ImFusion Web SDK

CreateImageOptions

Options for creating an Image from pixel data (see createImage()).

Properties

PropertyTypeDescription
dimensionsvec3iImage dimensions as [width, height, slices].
channelsnumberNumber 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?vec3Physical pixel/voxel spacing in mm.

On this page