[Gimp-developer] Strange Error
Kevin Cozens
kevin at ve3syb.ca
Wed Dec 17 12:54:45 PST 2008
Pablo Yaggi wrote:
> (if (= (car (gimp-drawable-is-rgb image)) FALSE)
> (gimp-image-convert-rgb image)
> )
The above code is checking the type of a drawable and using this information
to decide whether you need to convert an image.
If you want to convert the whole image to RGB only if it is not already in RGB
format, you need to test the value returned by gimp-image-base-type.
--
Cheers!
Kevin.
http://www.ve3syb.ca/ |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172 |"Same thing we always do, Pinkutus:
| Try to assimilate the world!"
#include <disclaimer/favourite> | -Pinkutus & the Borg
More information about the Gimp-developer
mailing list