SubImage Class Reference

#include <image.h>

Inheritance diagram for SubImage:

Image Resource

List of all members.


Detailed Description

A clipped version of a larger image.

Definition at line 179 of file image.h.


Public Member Functions

 SubImage (Image *parent, SDL_Surface *image, int x, int y, int width, int height)
 Constructor.
 ~SubImage ()
 Destructor.
ImagegetSubImage (int x, int y, int width, int height)
 Creates a new image with the desired clipping rectangle.

Private Attributes

ImagemParent

Constructor & Destructor Documentation

SubImage::SubImage ( Image parent,
SDL_Surface *  image,
int  x,
int  y,
int  width,
int  height 
)

Constructor.

Definition at line 427 of file image.cpp.

SubImage::~SubImage (  ) 

Destructor.

Definition at line 458 of file image.cpp.


Member Function Documentation

Image * SubImage::getSubImage ( int  x,
int  y,
int  width,
int  height 
) [virtual]

Creates a new image with the desired clipping rectangle.

Returns:
NULL if creation failed and a valid image otherwise.

Reimplemented from Image.

Definition at line 468 of file image.cpp.


Member Data Documentation

Definition at line 206 of file image.h.


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

Generated on Sun Apr 26 17:30:44 2009 for The Mana World by  doxygen 1.5.5