Table Of Contents

Previous topic

canvas

Next topic

Canvas

This Page

phoenix_title BitmapBuffer

A screen buffer class.

This class implements a screen output buffer. Data is meant to be drawn in the buffer class and then blitted directly to the output device, or on-screen window.


class_hierarchy Inheritance Diagram

Inheritance diagram for class BitmapBuffer

Inheritance diagram of BitmapBuffer


super_classes Known Superclasses

MemoryDC


method_summary Methods Summary

__init__ Initialize the empty buffer object.
GetBitmap Returns the internal bitmap for direct drawing.
GetPixelColour Gets the color value of the pixel at the given

api Class API



class BitmapBuffer(MemoryDC)

A screen buffer class.

This class implements a screen output buffer. Data is meant to be drawn in the buffer class and then blitted directly to the output device, or on-screen window.


Methods



__init__(self, width, height, colour)

Initialize the empty buffer object.



GetBitmap(self)

Returns the internal bitmap for direct drawing.



GetPixelColour(self, x, y)

Gets the color value of the pixel at the given cords.