Class PixelBuf
See Also: Template Class PixelBufT.
class PixelBuf
Description:
This class lets you set up a buffer for pixels that will automatically deallocate the buffer when it goes out of scope. All methods of this class are implemented by the system.
Methods:
Prototype:
inline PixelBuf(int width)
Remarks:
Constructor. This allocates the pixel buffer using the specified width.
Parameters:
int width
The number of pixels to allocate for the buffer.
Prototype:
inline ~PixelBuf();
Remarks:
Destructor. The pixel buffer is deallocated.
Prototype:
inline BMM_Color_64 *Ptr();
Remarks:
Returns the address of the pixel buffer.
Prototype:
int Fill(int start, int count, BMM_Color_64 color)
Remarks:
Fills the specified portion of the pixel buffer with the specified color.
Parameters:
int start
The start location for the fill.
int count
The number of pixels to fill.
T color
The color to use as the fill.
Return Value:
Nonzero if filled; otherwise 0.