Hi
When you use AppendImage, it does not use MIO, so NativePixelFormat is ignored. You can load like this instead:
ImageEnMView1.MIO.NativePixelFormat := True;
ImageEnMView1.MIO.Read( path );
Regarding your second part of code, firstly, ensure LockUpdate/UnlockUpdate are wrapped around the entirety of your code, e.g.
ImageEnMView1.LockUpdate();
for i := 0 to ImageEnMView1.MultiSelectedImagesCount - 1 do
begin
bmp := ImageEnMView1.GetTIEBitmap(i);
with TImageEnProc.CreateFromBitmap(bmp) do
begin
ConvertTo(ie8g);
Free;
end;
ImageEnMView1.ReleaseBitmap(i, True);
ImageEnMView1.MIO.Params[i].TIFF_Compression := ioTIFF_JPEG;
end;
ImageEnMView1.UnlockUpdate();
ImageEnMView1.MIO.SaveToFileTIFF(Path, True);
Secondly, try just setting:
bmp.PixelFormat := ie8g;
Otherwise, I'll need to check it when I am in the office tomorrow.
Nigel
Xequte Software
www.imageen.com