CreateMipImageStubs Data Member Function

Allocates a new <Image> object for each of the dimension pairs in the array of <int32> dimensions submitted to this function. Note that the underlying buffer for the <Image> object data is NOT allocated by this function. Creates raw, unsized <Image> object pointers with constructor defaults.

Prototype

int32 CreateMipImageStubs( Int32Array src, TypeBuffer dst )

Parameters

Parameter Type Parameter Name Documentation
<Int32Array>srcA pointer to an <Int32Array> containing pairs of dimensions. One <Image> is allocated for each pair of dimensions. If there are 8 values in this array of <int32> values, then 4 images will be allocated because it assumes that each <Image> object must have two dimensions.
<TypeBuffer>dstA pointer to a <TypeBuffer> object that stores the new <Image> objects. This <TypeBuffer> object owns the pointers to the newly allocated <Image> objects.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.