Provides access to the properties and meta-data of an image or video file, such as compression type, EXIF, text comments, bits per sample, samples per pixel, etc.
The properties for this class are set when loading an image or can be retrieved (without loading of the image) using LoadFromFile (excluding save-only formats, such as PDF, PS, etc).
You can modify these properties before saving your image (naturally this is only relevant to formats which ImageEn can save, which excludes EMF, WMF, CUR, etc).
// 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');
// Display the camera used to create an image bmp := TIEBitmap.Create(); bmp.ParamsEnabled := True; bmp.LoadFromFile( 'C:\CameraImage.jpeg' ); if bmp.Params.EXIF_Model <> '' then lblCamera.Caption := bmp.Params.EXIF_Model else lblCamera.Caption := 'Unknown'; ... Do something with bmp? ... bmp.Free();