previous chapter contents page top page next chapter


Pixels

January 17, 1996

Defined in Graphics.def

Inherits from Object
Uses extra
No translation

Class Description

Provides a framework for the image classes.

Programming information

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.

Methods defined by class Pixels

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

Fields defined by class Pixels

Class Pixels doesn't define any fields.

Method Descriptions

BeginModifyPixels

operation BeginModifyPixels(shield: PixelBox): Pointer;

Call BeginModifyPixels to begin modifying the buffer.

BeginReadPixels

operation BeginReadPixels(shield: PixelBox): Pointer;

Call BeginReadPixels to begin reading from the buffer.

EndModifyPixels

operation EndModifyPixels();

Call EndModifyPixels when you're finished modifying the buffer.

EndReadPixels

operation EndReadPixels();

Call EndModifyPixels when you're finished reading from the buffer to release it.