DicomObjects Reference
DicomObjects Reference / DicomImage Object / PixelAddress Property
PixelAddress Property
Description
Long pointer to Pixel Buffer
Property type
Read-only property
Syntax
Visual Basic
Public Property PixelAddress As Long
Return Type
Returns a 32 bit pointer
Remarks

This property provides a method of accessing the pixel data directly for languages that support native pointers.  The value returned is, however, a long integer, to prevent the automatic dereferencing that would otherwise occur in some languages such as Visual Basic, were an official OLE pointer type to be used.
If the client program manipulates the pixel data in any way, then PixelsModified must be called after the modification to enable DicomObjects to synchronise its display and invalidate any derivatives such as compressed forms of the image.

This is an advanced property, and it is the responsibility of the client program to implement its own bounds checking etc when using the value received, as failure to do so may cause unpredictable results.
Where the pixel data is held on disk rather than in RAM, then the memory area given by this property is read-only.
If the data is compressed, then this method will return an error.  To circumvent this, call DecompressAll first.
See also the following methods:

AllocatePixelSpace
CopyPixelBuffer

See Also