I was just wondering something. Now, understand this is a half-informed question, so try not to make fun of me too much
. I understand that GapiDraw currently requires you to load an image in that has the regular sprite and another portion that has a picture which is interpreted as the translucency for alpha-blitting.
Now, PNG images support having the alpha channel just part of the regular image, so you don't have to do the extra work of splitting up the images into their RGB and Alpha components and having a larger image. I was wondering if it would be possible to program something that could load a PNG from a file/resource and do this splitting into RGB/Alpha so that you wouldn't have to do the special splitting of the file itself. This would be helpful as a project I'm currently working on uses Java, which already does this, and making a special loader seems like a more elegant solution than having to do the extra work for every image I want to show. Thanks!
Now, PNG images support having the alpha channel just part of the regular image, so you don't have to do the extra work of splitting up the images into their RGB and Alpha components and having a larger image. I was wondering if it would be possible to program something that could load a PNG from a file/resource and do this splitting into RGB/Alpha so that you wouldn't have to do the special splitting of the file itself. This would be helpful as a project I'm currently working on uses Java, which already does this, and making a special loader seems like a more elegant solution than having to do the extra work for every image I want to show. Thanks!