ImageEn, unit imageenview |
|
TImageEnView.IO
Declaration
property IO: TImageEnIO;
Description
Returns the
TImageEnIO component embedded in the TImageEnView, which provides all functionality for loading and saving images, and other I/O functions, such as printing and scanning.
// Load image into the ImageEnView
ImageEnView1.IO.LoadFromFile('C:\Hello.jpeg');
// Retrieve an image from a Twain scanner and display in the ImageEnView
ImageEnView1.IO.AcquireParams.YResolution := 300;
ImageEnView1.IO.AcquireParams.XResolution := 300;
ImageEnView1.IO.Acquire();
// Show advanced TIFF saving properties
ImageEnView1.IO.SimplifiedParamsDialogs := False;
ImageEnView1.IO.DoPreviews([ppTIFF]);

// Convert a PNG to JPEG at 90% quality
ImageEnView1.IO.LoadFromFile('D:\image.png');
ImageEnView1.IO.Params.JPEG_Quality := 90;
ImageEnView1.IO.SaveToFile('D:\output.jpg');
// Save a TIFF with CMYK
ImageEnView1.IO.LoadFromFile('D:\image.tif');
ImageEnView1.IO.Params.TIFF_PhotometInterpret := ioTIFF_CMYK;
ImageEnView1.IO.SaveToFile('D:\image-cmyk.tif');
// Prompt to print the current image
ImageEnView1.IO.DoPrintPreviewDialog( iedtDialog );
