Looking through the API specifications, I can't find a good way to flatten an image into image and alpha. I'm trying to make a save plugin for the Nintendo DS's texture formats, there is a list of them at http://dualis.1emulation.com/dsti.html#lcdioteximgparam . What I really want to do is probably to extract the alpha data, flatten the image, convert the image to indexed, convert the alpha, then apply the alpha again for preview. Unfortunately, I'm unable to figure out how to perform the two last steps. The best format for the extracted alpha would be an array, or a format that allows you to access the data. I think I will do bitshifting on that, unless you guys think it's a bad way to scale it down.

Andreas Henriksson

Gimp-developer mailing list

Reply via email to