ImageEn, unit imageenproc |
|
TImageEnProc.IPDialogParams
Declaration
property IPDialogParams: TIEImageEffect;
Description
This property returns a
TIEImageEffect object which provides read/write access to the parameters of the Image Processing Dialog (displayed by calling
DoPreviews).
To apply the existing
TIEImageEffect values to other images, use
ApplyPreviews.
// Set default brightness in "Contrast" tab
ImageEnView1.Proc.IPDialogParams.Contrast_Brightness := 20;
ImageEnView1.Proc.DoPreviews();
// Make parameters persistent (saved between sessions)
if FileExists(AppSettingsFolder + 'Previews.dat') then
ImageEnView1.Proc.IPDialogParams.LoadFromFile(AppSettingsFolder + 'Previews.dat');
If ImageEnView1.Proc.DoPreviews() then
ImageEnView1.Proc.IPDialogParams.SaveToFile(AppSettingsFolder + 'Previews.dat');
// Lock crop ratio to 4:3 landscape
ImageEnView1.Proc.IPDialogParams.Crop_LockAspectRatio := 4 / 3;
ImageEnView1.Proc.DoPreviews( ppeEditingFunctions );