ENGINE::ImageResource Class Reference

#include <ImageResource.h>

List of all members.


Detailed Description

A class for loading, saving, manipulating, and rendering non-animated bitmap images.

Author:
Richard Marks <ccpsceo@gmail.com>
This class has support for loading images from PNG files, and performing basic transformations such as rotation, scaling, and flip/mirroring.

Definition at line 31 of file ImageResource.h.


Public Member Functions

 ImageResource ()
 ImageResource (int width, int height, int color=0)
 ImageResource (BITMAP *source)
 ImageResource (const char *fileName)
 ImageResource (const char *fileName, int sourceX, int sourceY, int width, int height)
 ~ImageResource ()
void Create (int width, int height, int color=0)
void Create (BITMAP *source)
bool Load (const char *fileName)
bool Load (const char *fileName, int sourceX, int sourceY, int width, int height)
void Blit (ImageResource *destination, int srcX, int srcY, int destX, int destY, int width, int height)
void Blit (ImageResource *destination, int srcX, int srcY, int srcWidth, int srcHeight, int destX, int destY, int destWidth, int destHeight)
void BlitMasked (ImageResource *destination, int srcX, int srcY, int destX, int destY, int width, int height)
void BlitMasked (ImageResource *destination, int srcX, int srcY, int srcWidth, int srcHeight, int destX, int destY, int destWidth, int destHeight)
void BlitSprite (ImageResource *destination, int destX, int destY)
void BlitAlpha (ImageResource *destination, int destX, int destY, float alpha=0.5f)
void BlitAlphaSprite (ImageResource *destination, int destX, int destY)
void Mirror ()
void Flip ()
void Rotate (int angle)
int GetPixel (int x, int y)
void SetPixel (int x, int y, int color)
void Line (int x1, int y1, int x2, int y2, int color)
void Rect (int x1, int y1, int x2, int y2, int color, bool filled=false)
void GradientRect (int x1, int y1, int x2, int y2, int c1, int c2, int c3, int c4)
void Ellipse (int x, int y, int radiusX, int radiusY, int color, bool filled=false)
void Circle (int x, int y, int radius, int color, bool filled=false)
void Arc (int x, int y, int radius, int startAngle, int endAngle, int color)
void Triangle (int x1, int y1, int x2, int y2, int x3, int y3, int color, bool filled=false)
void Fill (int x, int y, int color)
void Clear (int color=0)
void Save (const char *fileName)
BITMAP * GetBitmap ()
int GetWidth ()
int GetHeight ()

Private Member Functions

void Destroy ()
 ImageResource (const ImageResource &rhs)
const ImageResourceoperator= (const ImageResource &rhs)
BITMAP * LoadBitmapInternal (const char *fileName)
BITMAP * LoadPNGInternal (const char *fileName)

Private Attributes

BITMAP * allegroBitmap_
 An Allegro BITMAP to hold the image data.

Constructor & Destructor Documentation

ENGINE::ImageResource::ImageResource (  ) 

default constructor

Definition at line 34 of file ImageResource.cpp.

ENGINE::ImageResource::ImageResource ( int  width,
int  height,
int  color = 0 
)

alternate constructor, lets you create a new image of a specified size and color

Parameters:
width is the width of the new image in pixels.
height is the height of the new image in pixels.
color is the color to fill the new image with. Get an int value for an RGB color using using Allegro's makecol(red,green,blue) function. The default is BLACK

Definition at line 42 of file ImageResource.cpp.

References allegroBitmap_, and Create().

Here is the call graph for this function:

ENGINE::ImageResource::ImageResource ( BITMAP *  source  ) 

alternate constructor, lets you create a new image by copying an Allegro BITMAP as a source.

Parameters:
source is an Allegro BITMAP pointer to an image to copy from.

Definition at line 50 of file ImageResource.cpp.

References allegroBitmap_, and Create().

Here is the call graph for this function:

ENGINE::ImageResource::ImageResource ( const char *  fileName  ) 

alternate constructor Loads an image from a file.

Parameters:
fileName is the name of the file that holds the image to be loaded.

Definition at line 58 of file ImageResource.cpp.

References allegroBitmap_, and Load().

Here is the call graph for this function:

ENGINE::ImageResource::ImageResource ( const char *  fileName,
int  sourceX,
int  sourceY,
int  width,
int  height 
)

alternate constructor Loads an image from a spritesheet-style image file using the specified coordinates and dimension to rip a rectangular portion of the image that is in the file.

Parameters:
fileName is the name of the file that holds the image to be loaded.
sourceX is the X coordinate in pixels or the upper-left corner of the source rectangle to rip from.
sourceY is the Y coordinate in pixels of the upper-left corner of the source rectangle to rip from.
width is the width in pixels of the image to rip.
height is the height in pixels of the image to rip.

Definition at line 66 of file ImageResource.cpp.

References allegroBitmap_, and Load().

Here is the call graph for this function:

ENGINE::ImageResource::~ImageResource (  ) 

destructor calls Destroy to release allocated memory

Definition at line 74 of file ImageResource.cpp.

References Destroy().

Here is the call graph for this function:

ENGINE::ImageResource::ImageResource ( const ImageResource rhs  )  [private]

hidden copy constructor


Member Function Documentation

void ENGINE::ImageResource::Create ( int  width,
int  height,
int  color = 0 
)

Create a new image of a specified size and color.

Parameters:
width is the width of the new image in pixels.
height is the height of the new image in pixels.
color is the color to fill the new image with. Get an int value for an RGB color using using Allegro's makecol(red,green,blue) function. The default is BLACK

Definition at line 82 of file ImageResource.cpp.

References allegroBitmap_, Destroy(), and LogError.

Referenced by ENGINE::BitmapFont::Create(), ImageResource(), and Load().

Here is the call graph for this function:

Here is the caller graph for this function:

void ENGINE::ImageResource::Create ( BITMAP *  source  ) 

Create a new image by copying an Allegro BITMAP as a source.

Parameters:
source is an Allegro BITMAP pointer to an image to copy from.

Definition at line 95 of file ImageResource.cpp.

References allegroBitmap_, and Destroy().

Here is the call graph for this function:

bool ENGINE::ImageResource::Load ( const char *  fileName  ) 

Loads an image from a file.

Parameters:
fileName is the name of the file that holds the image to be loaded.

Definition at line 103 of file ImageResource.cpp.

References allegroBitmap_, Create(), Destroy(), LoadBitmapInternal(), LoadPNGInternal(), and LogError.

Referenced by ENGINE::ImageList::Add(), ENGINE::ImageList::ImageList(), ImageResource(), and ENGINE::BitmapFont::Load().

Here is the call graph for this function:

Here is the caller graph for this function:

bool ENGINE::ImageResource::Load ( const char *  fileName,
int  sourceX,
int  sourceY,
int  width,
int  height 
)

Loads an image from a spritesheet-style image file using the specified coordinates and dimension to rip a rectangular portion of the image that is in the file.

Parameters:
fileName is the name of the file that holds the image to be loaded.
sourceX is the X coordinate in pixels or the upper-left corner of the source rectangle to rip from.
sourceY is the Y coordinate in pixels of the upper-left corner of the source rectangle to rip from.
width is the width in pixels of the image to rip.
height is the height in pixels of the image to rip.

Definition at line 138 of file ImageResource.cpp.

References allegroBitmap_, Create(), Destroy(), LoadBitmapInternal(), LoadPNGInternal(), and LogError.

Here is the call graph for this function:

void ENGINE::ImageResource::Blit ( ImageResource destination,
int  srcX,
int  srcY,
int  destX,
int  destY,
int  width,
int  height 
)

Blits (draws) the image onto another image at the specified location, size, and source.

Parameters:
destination is a pointer to an ImageResource that you wish to draw on.
srcX is the X coordinate in pixels to copy from the image. Most commonly this will be zero.
srcY is the Y coordinate in pixels to copy from the image. Most commonly this will be zero.
destX is the X coordinate in pixels to draw to on the destination image.
destY is the Y coordinate in pixels to draw to on the destination image.
width is the width in pixels of the image to draw. Never should be larger than the image's width.
height is the height in pixels of the image to draw. Never should be larger than the image's height.

Definition at line 192 of file ImageResource.cpp.

References allegroBitmap_, and GetBitmap().

Referenced by ENGINE::GraphicsDeviceSingleton::EndScene().

Here is the call graph for this function:

Here is the caller graph for this function:

void ENGINE::ImageResource::Blit ( ImageResource destination,
int  srcX,
int  srcY,
int  srcWidth,
int  srcHeight,
int  destX,
int  destY,
int  destWidth,
int  destHeight 
)

Blits (draws) the image onto another image at the specified location, size, and source. The image will be stretched to fit the destination size.

Parameters:
destination is a pointer to an ImageResource that you wish to draw on.
srcX is the X coordinate in pixels to copy from the image. Most commonly this will be zero.
srcY is the Y coordinate in pixels to copy from the image. Most commonly this will be zero.
srcWidth is the width in pixels of the image to draw. Never should be larger than the image's width.
srcHeight is the height in pixels of the image to draw. Never should be larger than the image's height.
destX is the X coordinate in pixels to draw to on the destination image.
destY is the Y coordinate in pixels to draw to on the destination image.
destWidth is the width in pixels of the desired image to draw.
destHeight is the height in pixels of the desired image to draw.

Definition at line 203 of file ImageResource.cpp.

References allegroBitmap_, and GetBitmap().

Here is the call graph for this function:

void ENGINE::ImageResource::BlitMasked ( ImageResource destination,
int  srcX,
int  srcY,
int  destX,
int  destY,
int  width,
int  height 
)

Blits (draws) the image onto another image at the specified location, size, and source. Any pixels that are colored Magic Pink (255 red, 0 green, 255 blue) FF00FF in the image are ignored. This lets you draw an image on top of another image with some areas being specified as DO-NOT-DRAW.

Parameters:
destination is a pointer to an ImageResource that you wish to draw on.
srcX is the X coordinate in pixels to copy from the image. Most commonly this will be zero.
srcY is the Y coordinate in pixels to copy from the image. Most commonly this will be zero.
destX is the X coordinate in pixels to draw to on the destination image.
destY is the Y coordinate in pixels to draw to on the destination image.
width is the width in pixels of the image to draw. Never should be larger than the image's width.
height is the height in pixels of the image to draw. Never should be larger than the image's height.

Definition at line 215 of file ImageResource.cpp.

References allegroBitmap_, and GetBitmap().

Referenced by ENGINE::BitmapFont::Print().

Here is the call graph for this function:

Here is the caller graph for this function:

void ENGINE::ImageResource::BlitMasked ( ImageResource destination,
int  srcX,
int  srcY,
int  srcWidth,
int  srcHeight,
int  destX,
int  destY,
int  destWidth,
int  destHeight 
)

Blits (draws) the image onto another image at the specified location, size, and source. The image will be stretched to fit the destination size. Any pixels that are colored Magic Pink (255 red, 0 green, 255 blue) FF00FF in the image are ignored. This lets you draw an image on top of another image with some areas being specified as DO-NOT-DRAW.

Parameters:
destination is a pointer to an ImageResource that you wish to draw on.
srcX is the X coordinate in pixels to copy from the image. Most commonly this will be zero.
srcY is the Y coordinate in pixels to copy from the image. Most commonly this will be zero.
srcWidth is the width in pixels of the image to draw. Never should be larger than the image's width.
srcHeight is the height in pixels of the image to draw. Never should be larger than the image's height.
destX is the X coordinate in pixels to draw to on the destination image.
destY is the Y coordinate in pixels to draw to on the destination image.
destWidth is the width in pixels of the desired image to draw.
destHeight is the height in pixels of the desired image to draw.

Definition at line 226 of file ImageResource.cpp.

References allegroBitmap_, and GetBitmap().

Here is the call graph for this function:

void ENGINE::ImageResource::BlitSprite ( ImageResource destination,
int  destX,
int  destY 
)

Blits (draws) the image onto another image at the specified location. Any pixels that are colored Magic Pink (255 red, 0 green, 255 blue) FF00FF in the image are ignored. This lets you draw an image on top of another image with some areas being specified as DO-NOT-DRAW.

Parameters:
destination is a pointer to an ImageResource that you wish to draw on.
destX is the X coordinate in pixels to draw to on the destination image.
destY is the Y coordinate in pixels to draw to on the destination image.

Definition at line 238 of file ImageResource.cpp.

References allegroBitmap_, and GetBitmap().

Here is the call graph for this function:

void ENGINE::ImageResource::BlitAlpha ( ImageResource destination,
int  destX,
int  destY,
float  alpha = 0.5f 
)

Blits (draws) the image onto another image at the specified location. You can specify an alpha value to create a translucency effect. Any pixels that are colored Magic Pink (255 red, 0 green, 255 blue) FF00FF in the image are ignored. This lets you draw an image on top of another image with some areas being specified as DO-NOT-DRAW.

Parameters:
destination is a pointer to an ImageResource that you wish to draw on.
destX is the X coordinate in pixels to draw to on the destination image.
destY is the Y coordinate in pixels to draw to on the destination image.
alpha is the alpha value, which should be from 0.0f (invisible) to 1.0f (solid) -- default is 0.5f which is about 50% translucent

Definition at line 245 of file ImageResource.cpp.

References allegroBitmap_, and GetBitmap().

Here is the call graph for this function:

void ENGINE::ImageResource::BlitAlphaSprite ( ImageResource destination,
int  destX,
int  destY 
)

Blits (draws) the image onto another image at the specified location. The alpha value of the pixels in the image determine if the pixel will be drawn or not, or drawn dim This lets you draw an image on top of another image with some areas being specified as DO-NOT-DRAW.

Parameters:
destination is a pointer to an ImageResource that you wish to draw on.
destX is the X coordinate in pixels to draw to on the destination image.
destY is the Y coordinate in pixels to draw to on the destination image.

Definition at line 253 of file ImageResource.cpp.

References allegroBitmap_, and GetBitmap().

Here is the call graph for this function:

void ENGINE::ImageResource::Mirror (  ) 

Mirrors (flip horizontally) the image

Definition at line 263 of file ImageResource.cpp.

References allegroBitmap_.

void ENGINE::ImageResource::Flip (  ) 

Flips (flip vertically) the image

Definition at line 276 of file ImageResource.cpp.

References allegroBitmap_.

void ENGINE::ImageResource::Rotate ( int  angle  ) 

Rotates the image to an arbitrary angle.
The rotation is clockwise starting from 0 degrees pointing straight up.

Parameters:
angle is the angle in degrees to rotate the image to. This can be an integer value of 0 to 359.

Definition at line 289 of file ImageResource.cpp.

References allegroBitmap_.

int ENGINE::ImageResource::GetPixel ( int  x,
int  y 
)

Returns:
the color of the pixel at the specified coordinate.
Parameters:
x is the X coordinate in pixels to get the color from.
y is the Y coordinate in pixels to get the color from.

Definition at line 304 of file ImageResource.cpp.

References allegroBitmap_.

void ENGINE::ImageResource::SetPixel ( int  x,
int  y,
int  color 
)

sets the color of a single pixel at the specified coordinate.

Parameters:
x is the X coordinate in pixels at which to set the color.
y is the Y coordinate in pixels at which to set the color.
color is the color to set the pixel with. Get an int value for an RGB color using using Allegro's makecol(red,green,blue) function. The default is BLACK

Definition at line 311 of file ImageResource.cpp.

References allegroBitmap_.

Referenced by ENGINE::BitmapFont::BitmapFont().

Here is the caller graph for this function:

void ENGINE::ImageResource::Line ( int  x1,
int  y1,
int  x2,
int  y2,
int  color 
)

Draws a line from point (x1, y1) to point (x2, y2) in the specified color.

Parameters:
x1 is the X coordinate of the starting point in pixels.
y1 is the Y coordinate of the starting point in pixels.
x2 is the X coordinate of the ending point in pixels.
y2 is the Y coordinate of the ending point in pixels.
color is the color to draw the line with. Get an int value for an RGB color using using Allegro's makecol(red,green,blue) function. The default is BLACK

Definition at line 319 of file ImageResource.cpp.

References allegroBitmap_.

Referenced by Triangle().

Here is the caller graph for this function:

void ENGINE::ImageResource::Rect ( int  x1,
int  y1,
int  x2,
int  y2,
int  color,
bool  filled = false 
)

Draws a rectangle whose upper-left corner is at point (x1, y1) and lower-right corner is at point (x2, y2) in the specified color.
The rectangle can also be drawn filled with the color by specifying true for the filled parameter.

Parameters:
x1 is the X coordinate of the upper-left corner point in pixels.
y1 is the Y coordinate of the upper-left point in pixels.
x2 is the X coordinate of the lower-right point in pixels.
y2 is the Y coordinate of the lower-right point in pixels.
color is the color to draw the rectangle with. Get an int value for an RGB color using using Allegro's makecol(red,green,blue) function. The default is BLACK
filled specifies if the rectangle should be filled with color or drawn as a wireframe. Can be true or false. Default value is false.

Definition at line 326 of file ImageResource.cpp.

References allegroBitmap_.

void ENGINE::ImageResource::GradientRect ( int  x1,
int  y1,
int  x2,
int  y2,
int  c1,
int  c2,
int  c3,
int  c4 
)

Draws a rectangle filled with a linear interpolated gradient from 4 colored corners. This should not be used in a real-time loop, but rather to generate gradients to be stored and used later.

Parameters:
x1 is the X coordinate of the upper-left corner point in pixels.
y1 is the Y coordinate of the upper-left point in pixels.
x2 is the X coordinate of the lower-right point in pixels.
y2 is the Y coordinate of the lower-right point in pixels.
c1 is the color for the upper-left corner of the rectangle.
c2 is the color for the upper-right corner of the rectangle.
c3 is the color for the lower-left corner of the rectangle.
c4 is the color for the lower-right corner of the rectangle.

Definition at line 342 of file ImageResource.cpp.

References allegroBitmap_.

void ENGINE::ImageResource::Ellipse ( int  x,
int  y,
int  radiusX,
int  radiusY,
int  color,
bool  filled = false 
)

Draws an ellipse that fits inside a rectangle whose upper-left corner is at point (x, y) and lower-right corner is at point (x + 2*radiusX, y + 2*radiusY) in the specified color.
The ellipse can also be drawn filled with the color by specifying true for the filled parameter.

Parameters:
x is the X coordinate of the upper-left corner point in pixels.
y is the Y coordinate of the upper-left point in pixels.
radiusX is the radius in pixels of the ellipse along the X axis.
radiusY is the radius in pixels of the ellipse along the Y axis.
color is the color to draw the ellipse with. Get an int value for an RGB color using using Allegro's makecol(red,green,blue) function. The default is BLACK
filled specifies if the ellipse should be filled with color or drawn as a wireframe. Can be true or false. Default value is false.

Definition at line 430 of file ImageResource.cpp.

References allegroBitmap_.

void ENGINE::ImageResource::Circle ( int  x,
int  y,
int  radius,
int  color,
bool  filled = false 
)

Draws a circle of the specified radius, in the specified color on the image. The circle can also be drawn filled with the color by specifying true for the filled parameter.

Parameters:
x is the X coordinate of the center of the circle in pixels
y is the Y coordinate of the center of the circle in pixels.
radius is the radius of the circle in pixels.
color is the color to draw the circle with. Get an int value for an RGB color using using Allegro's makecol(red,green,blue) function. The default is BLACK
filled specifies if the circle should be filled with color or drawn as a wireframe. Can be true or false. Default value is false.

Definition at line 444 of file ImageResource.cpp.

References allegroBitmap_.

void ENGINE::ImageResource::Arc ( int  x,
int  y,
int  radius,
int  startAngle,
int  endAngle,
int  color 
)

Draws an arc on the image in the specified color, from the startAngle to the endAngle with a radius of radius. The endAngle should always be greater than the startAngle.

Parameters:
x is the X coordinate of the center of the arc in pixels.
y is the Y coordinate of the center of the arc in pixels.
radius is the radius of the arc in pixels.
startAngle is the angle in degrees to begin drawing the arc from the image to. This can be an integer value of 0 to 359.
endAngle is the angle in degrees at which to stop drawing the arc. This can be an integer value of 0 to 359.
color is the color to draw the arc with. Get an int value for an RGB color using using Allegro's makecol(red,green,blue) function. The default is BLACK

Definition at line 458 of file ImageResource.cpp.

References allegroBitmap_.

void ENGINE::ImageResource::Triangle ( int  x1,
int  y1,
int  x2,
int  y2,
int  x3,
int  y3,
int  color,
bool  filled = false 
)

Draws a triangle on the image.
You specify where the triangle is to be drawn by using 3 pairs of point coordinates.
The triangle can also be drawn filled with the color by specifying true for the filled parameter.

Parameters:
x1 is the X coordinate in pixels for the first point.
y1 is the Y coordinate in pixels for the first point.
x2 is the X coordinate in pixels for the second point.
y2 is the Y coordinate in pixels for the second point.
x3 is the X coordinate in pixels for the third point.
y3 is the Y coordinate in pixels for the third point.
color is the color to draw the ellipse with. Get an int value for an RGB color using using Allegro's makecol(red,green,blue) function. The default is BLACK
filled specifies if the ellipse should be filled with color or drawn as a wireframe. Can be true or false. Default value is false.

Definition at line 467 of file ImageResource.cpp.

References allegroBitmap_, and Line().

Here is the call graph for this function:

void ENGINE::ImageResource::Fill ( int  x,
int  y,
int  color 
)

Fills an enclosed area that the point (x, y) lies within with the specified color.
An area is considered enclosed if there are pixels of the color color surrounding the point (x, y).

Parameters:
x is the X coordinate in pixels for the point
y is the Y coordinate in pixels for the point
color is the color to fill the area with. Get an int value for an RGB color using using Allegro's makecol(red,green,blue) function. The default is BLACK

Definition at line 483 of file ImageResource.cpp.

References allegroBitmap_.

void ENGINE::ImageResource::Clear ( int  color = 0  ) 

Fills the entire image with the specified color. Calling without any parameters will fill with BLACK.

Parameters:
color is the color to fill the image with. Get an int value for an RGB color using using Allegro's makecol(red,green,blue) function. The default is BLACK

Definition at line 491 of file ImageResource.cpp.

References allegroBitmap_.

Referenced by ENGINE::GraphicsDeviceSingleton::BeginScene().

Here is the caller graph for this function:

void ENGINE::ImageResource::Save ( const char *  fileName  ) 

Saves the image to a windows BMP file.

Parameters:
fileName is the name of the file to save the image to.

Definition at line 498 of file ImageResource.cpp.

References allegroBitmap_.

BITMAP * ENGINE::ImageResource::GetBitmap (  ) 

Returns:
a pointer to the Allegro BITMAP; ImageResource::allegroBitmap_ or 0 if the image is invalid.

Definition at line 655 of file ImageResource.cpp.

References allegroBitmap_.

Referenced by Blit(), BlitAlpha(), BlitAlphaSprite(), BlitMasked(), BlitSprite(), ENGINE::BitmapFont::Create(), and ENGINE::InputDeviceSingleton::MouseSetCursorImage().

Here is the caller graph for this function:

int ENGINE::ImageResource::GetWidth (  ) 

Returns:
the width of the image in pixels

Definition at line 662 of file ImageResource.cpp.

References allegroBitmap_.

Referenced by ENGINE::BitmapFont::Print().

Here is the caller graph for this function:

int ENGINE::ImageResource::GetHeight (  ) 

Returns:
the height of the image in pixels

Definition at line 669 of file ImageResource.cpp.

References allegroBitmap_.

Referenced by ENGINE::BitmapFont::Print().

Here is the caller graph for this function:

void ENGINE::ImageResource::Destroy (  )  [private]

De-allocates any allocated memory

Definition at line 173 of file ImageResource.cpp.

References allegroBitmap_.

Referenced by Create(), Load(), and ~ImageResource().

Here is the caller graph for this function:

const ImageResource& ENGINE::ImageResource::operator= ( const ImageResource rhs  )  [private]

hidden assignment operator

BITMAP * ENGINE::ImageResource::LoadBitmapInternal ( const char *  fileName  )  [private]

Loads an image using the Allegro load_bitmap function. Can load from BMP, PCX, TGA.

Returns:
a pointer to an Allegro BITMAP containing the loaded image data.

Definition at line 505 of file ImageResource.cpp.

Referenced by Load().

Here is the caller graph for this function:

BITMAP * ENGINE::ImageResource::LoadPNGInternal ( const char *  fileName  )  [private]

Loads an image using a custom PNG loader. Can load from PNG.

Returns:
a pointer to an Allegro BITMAP containing the loaded image data.

Definition at line 512 of file ImageResource.cpp.

References LogFatal.

Referenced by Load().

Here is the caller graph for this function:


Member Data Documentation

An Allegro BITMAP to hold the image data.

Below is the BITMAP structure straight from the Allegro documentation

typedef struct BITMAPtag
{
    int w, h;               - size of the bitmap in pixels
    int clip;               - non-zero if clipping is turned on
    int cl, cr, ct, cb;     - clipping rectangle left, right, top, and bottom
    unsigned char *line[];  - pointers to the start of each row of pixel data
} BITMAP;
All the values of this structure should be regarded as read-only, with the exception of the line field.

Definition at line 432 of file ImageResource.h.

Referenced by Arc(), Blit(), BlitAlpha(), BlitAlphaSprite(), BlitMasked(), BlitSprite(), Circle(), Clear(), Create(), Destroy(), Ellipse(), Fill(), Flip(), GetBitmap(), GetHeight(), GetPixel(), GetWidth(), GradientRect(), ImageResource(), Line(), Load(), Mirror(), Rect(), Rotate(), Save(), SetPixel(), and Triangle().


The documentation for this class was generated from the following files:

Generated on Tue Mar 3 20:11:39 2009 for ged101minimal by  doxygen 1.5.5