A simple yet powerful library for controlling graphical displays. Multiple display controllers are supported using inheritance.

Dependents:   mbed_rifletool Hexi_Bubble_Game Hexi_Catch-the-dot_Game Hexi_Acceleromagnetic_Synth

Embed: (wiki syntax)

« Back to documentation index

Image Class Reference

Image Class Reference

Image abstract class. More...

#include <Image.h>

Inherited by BitmapImage.

Public Member Functions

 Image (int w, int h)
 Create an Image object with the specified width and height.
virtual unsigned int pixel (int x, int y)=0
 Get the pixel at the specified coordinates.
int width ()
 Get the image width.
int height ()
 Get the image height.

Detailed Description

Image abstract class.

Used as a base class for image objects.

Definition at line 25 of file Image.h.


Constructor & Destructor Documentation

Image ( int  w,
int  h 
)

Create an Image object with the specified width and height.

Parameters:
wThe image width.
hThe image height.

Definition at line 19 of file Image.cpp.


Member Function Documentation

int height (  )

Get the image height.

Returns:
The image height.

Definition at line 30 of file Image.cpp.

virtual unsigned int pixel ( int  x,
int  y 
) [pure virtual]

Get the pixel at the specified coordinates.

Parameters:
xThe X coordinate.
yThe Y coordinate.
Returns:
The color of the pixel as a 32-bit ARGB value.

Implemented in BitmapImage.

int width (  )

Get the image width.

Returns:
The image width.

Definition at line 25 of file Image.cpp.