问题
I'm hearing people say that it is not.
However, I created a TBitmap and cleared the entire area by
For I := 1 to bmp.Width do
For J := 0 to bmp.Height do
bmp.canvas.Pixels[I,J]:= $00000000;
Then I drew anti-aliased text onto the bitmap and saved it to file. Upon opening it in gimp it shows the transparency information.
Does anyone have a definitive answer on this and if it does work then more information on how it works? I've tried playing around with the last byte and I'm not getting the expected results when i open it in gimp.
回答1:
It does, but you have to set
bmp.PixelFormat := pf32bit;
回答2:
The Delphi TBitmap is just a wrapper around the Windows BITMAP object. So, yes it does support alpha channels, but clearly you must set the PixelFormat property appropriately.
来源:https://stackoverflow.com/questions/4680429/does-the-delphi-tbitmap-support-an-alpha-channel