Hi,
it seems to be a very stupid question, but: how can I save to alpha channel of a PNG file as an 8bit gray-scaled image? I tried it by following code but the resulting BMP is invalid:
img := TIEBitmap.Create('tranparentMarker4.png');
try
if img.HasAlphaChannel then
begin
io := TImageEnIO.CreateFromBitmap(img.AlphaChannel);
try
io.SaveToFileBMP('alpha.bmp');
finally
io.Free;
end;
end;
finally
img.Free;
end;
Then I cannot open that BMP by GIMP or IrfanView. I use Delphi XE with ImageEn 4.1.0. Attached is the initial PNG file.

best regards,
Ulrich