I have code that used a dll to output a png with transparent pixels but i cant find a .so for linux. I found an article that shows how to use TBGRABitmap to do this. I just copied from a control to test it out by saying :
tempsaveimage.canvas.copyrect(rect(0,0,panel8.width,panel8.height),panelcanvas,rect(0,0,panel8.width,panel8.height));
tempsaveimage.ReplaceColor(BGRA(255,0,0,255),BGRAPixelTransparent);
Then i saved it to a file by just calling tempsaveimage.savetofile.
All works and it actually gives me an output that is a transparent PNG which is great. What is strange is that imagemagik doesnt recognize the transparency but Gimp does. Ive spent the last 3 hours comparing a png file that works and the one that i generated with TBGRABitmap and for the life of me i cant see it. Is this the wrong way to go savethe output to a file? Perhaps there is a pixelformat that needs to be specified?