ImageEnIO1.LoadFromFileTIFF('TIFF16.TIF');
But file has nothing ...
TIFF16.TIF appears to be a medical image in 16-bit grayscale.
ImageEn can read it but it's all black!
The image contains an invisible range of values.
To show the image you should adjust the visible range using ImageEnView.IEBitmap.BlackValue and WhiteValue. This is done automatically if you call AutoCalcBWValues():
The file TIFF16.TIF can be loaded and viewed with:
procedure TForm1.Open1Click(Sender: TObject);
begin
if OpenImageEnDialog1.Execute then
begin
ImageEnView1.LegacyBitmap := False;
ImageEnView1.IO.NativePixelFormat := True;
ImageEnView1.IO.LoadFromFile(OpenImageEnDialog1.FileName);
ImageEnView1.IEBitmap.AutoCalcBWValues;
end;
end;
Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development