Hi all, I am trying to load an image 128x128 with an alpha channel ilbm format made with sketchblock into a piece of code using datatypes library. I have never done anything before with datatypes, and thus I am at lack of knowledge of how to make it look and work properly. The problem is, if I load an image without alpha channel, it is displayed correctly, but the alpha image I want is displayed with solid alpha and just as a black box. The image is a black to white gradient with alpha corresponding, so that could be the issue here. I have tried following the example on amigaos wiki on picture class, and it gives the above result. Then I am trying to use the PDTM_READPIXELARRAY method, but I cannot get it to not crash. I can supply my code if anyone wants to barf at it, but I would much rather see an actual working example of how to load an 32-bit image with alpha channel into a BitMap structure using datatypes library, if anyone has it. Thanks.
Thu, 2014-06-05 21:01#1
Datatypes picture class with alpha