Hi, I'm struggling with one big problem(for me at least).
For my program I used PNG image wich is being loaded to TPortableNetworkGraphic.
And now I don't know how to read alpha channel from TPNG... :-/
I've already tried with
PNG.RawImage.ReadChannels
but I don't know if it's good way and actually I don't know how to use "TRawImagePosition"...
I've tried also with
png.Canvas.Colors[x,y].red
png.Canvas.Colors[x,y].green
png.Canvas.Colors[x,y].blue
png.Canvas.Colors[x,y].alpha
but now alpha value for every pixel is 255... :-/
I just don't have any other ideas.
Thanks for help
--- edit ---
Ok, I solved that problem :-)