See Also Examples Applies To
Stores into a 2D array of long the long ARGB pixel values of an area of the native GdPicture image.
Syntax
object.GetPixelArray2D (*arPixels(), nSrcLeft, nSrcTop, nWidth, nHeight)
The GetPixelArray2D syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| *arPixels() | Required. Output 2D (0 based) Long Array. Array which will contain the ARGB value of pixel. |
| nSrcLeft | Required. Long. The left source pixel of the area. |
| nSrcTop | Required. Long. The top source pixel of the area. |
| nWidth | Required. Long. The width of the area in pixel. |
| nHeight | Required. Long. The height of the area in pixel. |
Returns
Long. GdPictureStatus
Category
Pixel Access Functions
Visual Basic Sample
usage of GetPixelArray2D() and SetPixelArray() functions to apply negative effect on the native GdPicture image
Dim arPixel() As Long
Dim X As Long
Dim Y As Long
Call object.GetPixelArray2D(arPixel, 0, 0, object.GetWidth, object.GetHeight)
For X = 0 To object.GetWidth - 1
For Y = 0 To object.GetHeight - 1
arPixel(X, Y) = Not arPixel(X, Y)
Next Y
Next X
Call object.SetPixelArray(arPixel, 0, 0, object.GetWidth, object.GetHeight)