ColorPalette:= TIEColorPalette.Create(nil);
ie:= TImageEnView.Create(nil);
//ie.LegacyBitmap:= True;
ie.IO.NativePixelFormat:= True;
//ie.EnableAlphaChannel:= True;
ie.IO.LoadFromFilePng(UniServerModule.EXEDir+'temp\temp.png');
if ie.IEBitmap.PixelFormat <> ie8p then begin
ie.IEBitmap.PixelFormat:= ie8p; // FAILS TO CHANGE
end;
ColorPalette.AssignPalette(ie, False, True);
ie.IEBitmap.SetTransparentColors(clWhite, clWhite, 0);
ColorPalette.Free;
Please advise how to LoadFromFilePng, SaveToFilePng (8bit paleted with white transparent background) - thanks
I want to save ie to a PNG File with a White Transparent Background (8bit preferable but 24bit is OK too).
Andy