Property
Document.DirectRed (read-only, Long)
Syntax
Document.DirectRed
Remarks
Returns the address of the pixel array for the red plane of the image, which is actually an array of XSize by YSize Floats. This property is provided only for the use of plug-ins, to allow them to access or alter individual pixels in the red plane without physically copying the data. It cannot be used successfully by scripts.
Note: Plug-ins can also access documents other than the one supplied with the call. This is done by using the Documents collection to access another image. Upon accessing DirectRed, the image will be marked as modified regardless of whether it is actually changed or not. The Undo function will also be available for the image.
DirectRed is zero for a monochrome image.
USE WITH EXTREME CAUTION.