Does delphi TBitmap support alpha channel

I heard people say that this is not so.

However, I created TBitmap and cleared the entire area

For I := 1 to bmp.Width do
  For J := 0 to bmp.Height do
    bmp.canvas.Pixels[I,J]:= $00000000;

Then I drew the smoothed text onto a bitmap and saved it to a file. Opening it in gimp, it displays transparency information.

Does anyone have a definitive answer to this, and if it works, then more information on how this works? I tried playing with the last byte, and I don't get the expected results when I open it in gimp.

+3
source share
2 answers

He does, but you have to set

bmp.PixelFormat := pf32bit;
+17
source

Delphi TBitmap - Windows BITMAP. , , -, , , PixelFormat.

+3

Source: https://habr.com/ru/post/1785197/


All Articles