Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

int phImage::convert uint32_t  to_format,
uint32_t  force_format = phImageNOFORMAT
 

Converts from the current format to the specified format. Checks the format for against the "to_format" variable, if there are any data packaging issues (Zlib, JPEG) it decompresses the data if the special package bit (i.e. phImageZlib) isn't specified in the to_format;

If the format *doesn't match*, this method converts to the "force_format" format if it's specified. Otherwise it chooses one of the image formats specified in "to_format", in the following priority: RGB24, BGR24, RGBA32, ABGR32

Definition at line 1457 of file phImage.cpp.





Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:44:54 2007 for phission by  doxygen 1.4.4