wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Display/CImage

Version 2 (modified by Don Wilson, 10 months ago) ( diff )

--

CImage 825gen2

CImage is a C++ class that is provided to display jpeg or png images.

Constructors

CImage(void);
CImage(const char* filename)

The constructor with a passed filename will create a CImage object and load the file into memory.

Parameters

  • filename - filename

Examples

CImage image("/usr/images/cardinal.png");
CImage image;

This constructs the image object without loading any file yet.

Member Functions

LoadImage

Opens a specified file.

int LoadImage(const char* filename);

Parameters

  • pszFilename - filename

Return Value

Remarks

Example

Draw

Display the image

void Draw(int x, int y, CDspArea* dspArea = NULL);

Parameters

  • x - X display coordinate - (If dspArea specified - within specified area)
  • y - Y display coordinate - (If dspArea specified - within specified area)
  • dspArea - Display area - if not specified default to main display area dspMain

Return Value

Remarks

Example

Note: See TracWiki for help on using the wiki.