This is what I already do. But I do it without creating a TIEBitmap:
ImageIO := tImageEnIO.Create(nil);
ImageIO.OnProgress := SetProgress;
ImageIO.LoadFromFile(FileName);
Buffer := Graphics.tBitmap.Create;
if ImageIO.IEBitmap.HasAlphaChannel then
ImageIO.IEBitmap.RemoveAlphaChannel(True, clWhite);
ImageIO.IEBitmap.CopyToTBitmap(FPrnBuffer);
ImageIO.Free;
I saw that there is a
fIEBitmap := TIEBitmap.Create;
in TImageEnIO.Create. Is this O.K. or should I always attach a TIEBitmap by myself?
Greetings