Graphics32 TBitmap32.Assign() の何が問題になっていますか? 元の画像の透明度が TBitmap32 では保持されないのに、TBitmap ではすべて問題ないのはなぜですか? サンプルコードは次のとおりです。
procedure TForm1.Button8Click(Sender: TObject);
var
bmp32: TBitmap32;
bmp: TBitmap;
wic: TWICImage;
begin
bmp32 := TBitmap32.Create(TMemoryBackend);
bmp := TBitmap.Create;
wic := TWICImage.Create;
try
wic.LoadFromFile('overlay.png'); // transparent
bmp32.Assign(wic);
bmp32.SaveToFile('BMP32.bmp'); // !!! nontransparent .bmp
img1.Bitmap.Assign(bmp32);
bmp.Assign(wic);
bmp.SaveToFile('BMP.bmp'); // transparent .bmp
img2.Bitmap.Assign(bmp);
finally
wic.Free;
bmp32.Free;
bmp.Free;
end;
end;
これは Graphics32 ライブラリ (バージョンは github の最新版) のバグですか? それともTWICImageのバグ?それとも Delphi 10.2.3 のバグですか? それとも私は何か間違ったことをしていますか?これを修正する方法は?