Plate.ImageArray (read-write, Variant)
The Plate object's internal image array in row-major order (automation SafeArray)
Plate.ImageArray [= Variant]
The property syntax has these parts:
Part | Description |
---|---|
Value (Variant) | The Plate object's internal image array in row-major order (automation SafeArray) |
The returned array always contains Long values ranging from 0 to 65535. When you write this property, the array used as input may contain numbers of various integer and real types. The values in the array must range from 0 through 65535. If you have control over the data type, use Long Integer (32-bit), as ActiveX does not support unsigned 16-bit data.
When setting the ImageArray property, it is important to note the various types of array and element values that PinPoint will accept. In all cases the array must be an automation SafeArray and may be passed by value or reference. Classic automation languages like VB6 and Windows Script languages use SafeArrays by default. .NET languages will automatically translate arrays into this form for PinPoint as well. The elements of the array can be variants, 32-bit integers, or 16-bit unsigned integers. Classic automation languages produce SafeArrays of variants. In .NET you need to create your array with elements of 32-bit integer or 16-bit unsigned integer (e.g. Integer or UShort respectively in VB.NET). If your array has Integer (32-bit signed) elements, their values must lie between 0 and 65535. Here is an example in VB.NET showing both array types:
Dim A(1023,1023) as Integer ' 1024x1024
Dim B(511,511) as UShort ' 512x512
...
P = New PinPoint.Plate
...
P.ImageArray = A
P.ImageArray = B
If you're using PinPoint from C++, please contact DC-3 Dreams for details.