#include <Gdc2.h>
Inheritance diagram for GDeviceContext:
Public Member Functions | |
virtual bool | IsAlpha () |
Returns true if this Surface has an alpha channel. | |
virtual bool | IsAlpha (bool b) |
Creates or destroys the alpha channel for this surface. | |
bool | DrawOnAlpha () |
Returns true if we are drawing on the alpha channel. | |
bool | DrawOnAlpha (bool Draw) |
True if you want to edit the alpha channel rather than the colour bits. | |
GSurface * | AlphaDC () |
Returns the surface of the alpha channel. | |
virtual COLOUR | Colour () |
Gets the current colour. | |
virtual COLOUR | Colour (COLOUR c, int Bits=0) |
Sets the current colour. | |
virtual int | Op () |
Gets the current blending mode in operation. | |
virtual int | Op (int Op) |
virtual int | X () |
Gets the width in pixels. | |
virtual int | Y () |
Gets the height in pixels. | |
virtual int | GetBits () |
Gets the bits per pixel. | |
virtual int | PixelSize () |
Gets the bytes per pixels. | |
virtual bool | IsScreen () |
Returns true if the surface is on the screen. | |
virtual uchar * | operator[] (int y) |
Returns a pointer to the start of a scanline, or NULL if not available. | |
virtual void | GetOrigin (int &x, int &y) |
Gets the surface origin. | |
virtual void | SetOrigin (int x, int y) |
Sets the surface origin. | |
Friends | |
class | GFilter |
class | GSurface |
|
Sets the current colour.
Reimplemented in GScreenDC. |
|
Sets the current blending mode in operation Reimplemented in GScreenDC. |