ImageEn, unit imageenio

TImageEnIO.DoPreviews

TImageEnIO.DoPreviews


Declaration


function DoPreviews(pp: TPreviewParams = [ppAll]): boolean;


Description


Executes the Previews dialog allowing the user to review and modify the parameters of image file formats (for example, JPEG quality, TIFF compression, etc).

pp is the set of image formats parameters to show in the dialog.
The style of the dialog is affected by SimplifiedParamsDialogs


Demo


  Demos\ImageEditing\CompleteEditor\PhotoEn.dpr



Example


ImageEnView1.IO.LoadFromFile('C:\myimage.gif'); // loads a GIF image
ImageEnView1.IO.DoPreviews([ppGIF]); // sets GIF parameters (background, transparency...)
ImageEnView1.IO.SaveToFile('D:\newimage.gif'); // saves some image with new parameters


See Also


- OnDoPreviews
- OnShowDialog