|
CarnegieMellonGraphics | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Image | +--EditableImagein CarnegieMellonGraphics.h
Images that can be manipulated at the pixel level. EditableImages should be used when you want to either do lots and lots of pixel manipulation quickly or be able to modify other images. You can use EditableImages just as you would Images, just that you can manipulate pixels.
Window::drawImage
Constructor Summary | |
EditableImage( const EditableImage& image )
Copy constructor |
|
EditableImage( const Image& image )
Cast Image object up to an EditableImage |
|
EditableImage( int width, int height )
Constructor to make an image that's width x height. |
|
~EditableImage()
|
Method Summary | |
EditableImage |
clone()
return a "deep" copy of this image |
Color |
getPixel( int x, int y )
gets the color of the pixel at (x,y) |
EditableImage& |
operator=( const EditableImage& image )
Assignment operator. |
void |
setPixel( int x, int y, const Color& c )
sets the color of the pixel at (x,y) |
void |
setPixel( int x, int y, unsigned char r, unsigned char g, unsigned char b, unsigned char a = 255 )
sets the color of the pixel at (x,y) |
Methods inherited from class Image |
operator=, operator==, operator!=, save, getWidth, getHeight, getType, checkImage, subImage |
Constructor Detail |
public EditableImage( const EditableImage& image );
public EditableImage( const Image& image );
public EditableImage( int width, int height );
public ~EditableImage();
Method Detail |
public EditableImage clone();
public Color getPixel( int x, int y );
public EditableImage& operator=( const EditableImage& image );
clone
public void setPixel( int x, int y, const Color& c );
public void setPixel( int x, int y, unsigned char r, unsigned char g, unsigned char b, unsigned char a = 255 );
|
CarnegieMellonGraphics | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |