dms::JPEGImage

Source Code

Class Specification

#include <dms/JPEGImage.h>

JPEGImage(char * filename=0);
void loadFile(char * filename);

Description

JPEGImage(char * filename)

If a file name is passed to the constructor, the given file is loaded. Otherwise, it defaults to an empty, 0x0 image.
Example:

JPEGImage image("texture.jpg");
void loadFile(char * filename)

Loads image data from the given jpeg file.
Example:

JPEGImage image;
image.loadFile("texture.jpg");