|
CarnegieMellonGraphics | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Image class
Inner Classes, Typedefs, and Enums | |||||||
typedef |
Image::Type
Image types currently supported
|
Constructor Summary | |
Image( const std::string& file, const Image::Type type )
|
|
Image()
|
|
Image( const Image& image )
Copy constructor |
|
~Image()
|
Method Summary | |
static bool |
checkImage( const std::string& file, const Image::Type type )
Class function for checking to see whether an Image exists |
int |
getHeight() const
Get the height of the image |
Image::Type |
getType() const
Get the type of the image |
int |
getWidth() const
Get the width of the image |
bool |
operator!=( const Image& rhs ) const
Comparison operator for inequality on images |
Image& |
operator=( const Image& rhs )
Assignment operator |
bool |
operator==( const Image& rhs ) const
Comparison operator for equality on images |
void |
save( const std::string& file, const Image::Type type ) const
Save this image to a file of the specified type. |
Image |
subImage( int x, int y, int w, int h )
Copy out a sub-portion of the image and return it. |
Constructor Detail |
public Image( const std::string& file, const Image::Type type );
public Image();
public Image( const Image& image );
public ~Image();
Method Detail |
public static bool checkImage( const std::string& file, const Image::Type type );
public int getHeight() const;
public Image::Type getType() const;
public int getWidth() const;
public bool operator!=( const Image& rhs ) const;
public Image& operator=( const Image& rhs );
public bool operator==( const Image& rhs ) const;
public void save( const std::string& file, const Image::Type type ) const;
public Image subImage( int x, int y, int w, int h );
|
CarnegieMellonGraphics | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |