vtImage Class Reference

Inheritance diagram for vtImage:

Inheritance graph
[legend]
List of all members.

Detailed Description

This class represents an Image. It can be loaded from a number of file formats, and used as a texture map for a textured material, by passing it to vtMaterial::SetTexture()


Public Member Functions

bool Read (const char *fname, bool bAllowCache=true, bool progress_callback(int)=NULL)
bool WriteJPEG (const char *fname, int quality=99, bool progress_callback(int)=NULL)
vtString GetFilename () const
 Return the name of the file, if any, from which the image was loaded.
void Set16Bit (bool bFlag)


Member Function Documentation

bool vtImage::Read const char *  fname,
bool  bAllowCache = true,
bool   progress_callback(int) = NULL
 

all the way to the app.

void vtImage::Set16Bit bool  bFlag  ) 
 

Call this method to tell vtlib that you want it to use a 16-bit texture (internal memory format) to be sent to the graphics card.

bool vtImage::WriteJPEG const char *  fname,
int  quality = 99,
bool   progress_callback(int) = NULL
 

Write this image to a JPEG file. Quality setting is the same as libjpeg, in the range of 0..100. 99 is a typically useful quality setting.


Generated on Tue Apr 22 10:11:07 2008 for vtlib library by  doxygen 1.4.5