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. |