Flatten image into image and alpha

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hello

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.

Thanks
Andreas Henriksson


_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux