Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

GSurface Class Reference

General API for reading and writing to an image. More...

#include <Gdc2.h>

Inheritance diagram for GSurface:

GDeviceContext GMemDC GPrintDC GScreenDC GImageList List of all members.

Public Member Functions

virtual void Set (int x, int y)
 Sets a pixel with the current colour.
virtual COLOUR Get (int x, int y)
 Gets a pixel (doesn't work on some types of image, i.e. GScreenDC).
virtual void HLine (int x1, int x2, int y)
 Draw a horizontal line in the current colour.
virtual void VLine (int x, int y1, int y2)
 Draw a vertical line in the current colour.
virtual void Line (int x1, int y1, int x2, int y2)
 Draw a line in the current colour.
virtual void Circle (double cx, double cy, double radius)
 Stroke a circle in the current colour.
virtual void FilledCircle (double cx, double cy, double radius)
 Fill a circle in the current colour.
virtual void Arc (double cx, double cy, double radius, double start, double end)
 Stroke an arc in the current colour.
virtual void FilledArc (double cx, double cy, double radius, double start, double end)
 Fill an arc in the current colour.
virtual void Ellipse (double cx, double cy, double x, double y)
 Stroke an ellipse in the current colour.
virtual void FilledEllipse (double cx, double cy, double x, double y)
 Fill an ellipse in the current colour.
virtual void Box (int x1, int y1, int x2, int y2)
 Stroke a rectangle in the current colour.
virtual void Box (GRect *a=NULL)
 Stroke a rectangle in the current colour.
virtual void Rectangle (int x1, int y1, int x2, int y2)
 Fill a rectangle in the current colour.
virtual void Rectangle (GRect *a=NULL)
 Fill a rectangle in the current colour.
virtual void Blt (int x, int y, GSurface *Src, GRect *a=NULL)
 Copy an image onto the surface.
virtual void StretchBlt (GRect *d, GSurface *Src, GRect *s)
 Not implemented.
virtual void Polygon (int Points, GdcPt2 *Data)
 Fill a polygon in the current colour.
virtual void Bezier (int Threshold, GdcPt2 *Pt)
 Stroke a bezier in the current colour.
virtual void FloodFill (int x, int y, int Mode, COLOUR Border=0, GRect *Bounds=NULL)
 Flood fill in the current colour (doesn't work on a GScreenDC).

Detailed Description

General API for reading and writing to an image.


Member Function Documentation

void GSurface::Blt int  x,
int  y,
GSurface Src,
GRect a = NULL
[virtual]
 

Copy an image onto the surface.

Parameters:
x  The destination x coord
y  The destination y coord
Src  The source surface
a  The optional area of the source to use, if not specified the whole source is used

Reimplemented in GScreenDC, and GMemDC.

void GSurface::Box GRect a = NULL  )  [virtual]
 

Stroke a rectangle in the current colour.

Parameters:
a  The rectangle, or NULL to stroke the edge of the entire surface

Reimplemented in GScreenDC.

void GSurface::FloodFill int  x,
int  y,
int  Mode,
COLOUR  Border = 0,
GRect Bounds = NULL
[virtual]
 

Flood fill in the current colour (doesn't work on a GScreenDC).

Parameters:
StartX  Start x coordinate
StartY  Start y coordinate
Mode  Use GDC_FILL_TO_DIFFERENT, GDC_FILL_TO_BORDER or GDC_FILL_NEAR
Border  Fill colour
FillBounds  The bounds of the filled area or NULL if you don't care

Reimplemented in GScreenDC.

void GSurface::Rectangle GRect a = NULL  )  [virtual]
 

Fill a rectangle in the current colour.

Parameters:
a  The rectangle, or NULL to fill the entire surface

Reimplemented in GScreenDC.


The documentation for this class was generated from the following files:
Generated on Wed Oct 26 14:47:03 2005 for Lgi by  doxygen 1.4.1