Defined in Graphics.def
Inherits from Object Uses extra No translation
Provides a framework for the image classes.
Instantiate: sometimes Subclass: sometimes Call its methods: sometimes
You will almost never need to deal directly with class Pixels unless you are re-implementing some of the graphics routines.
Class Pixels defines the following methods:
Method | Description |
---|---|
BeginModifyPixels | Converts an object to a modifiable raster base address |
BeginReadPixels | Converts an object to a read-only raster base address |
EndModifyPixels | Releases the modifiable raster buffer |
EndReadPixels | Releases the read-only raster buffer |
InitialExtraSize | Overrides InitialExtraSize to create an object and determine its size |
SizePixels | Allocates aligned raster memory |
Class Pixels doesn't define any fields.
operation BeginModifyPixels(shield: PixelBox): Pointer;
Call BeginModifyPixels to begin modifying the buffer.
operation BeginReadPixels(shield: PixelBox): Pointer;
Call BeginReadPixels to begin reading from the buffer.
operation EndModifyPixels();
Call EndModifyPixels when you're finished modifying the buffer.
operation EndReadPixels();
Call EndModifyPixels when you're finished reading from the buffer to release it.