TIEImageEnGlobalSettings.IOParamDefaults
Declaration
property IOParamDefaults: TIOParamDefaults;
Description
Set key properties defaults when initializing
TIOParams objects.
Some properties of
TIOParams objects affect the way images are loaded. It can be useful to set these globals, which will affect the loading of all images in
TImageEnView,
TImageEnMView,
TImageEnFolderMView,
TIEBitmap and
TIEMultiBitmap.
Note:
JPEG_Quality only affects saving, not loading, but is included because of its frequent usage
Examples
// For all loading, automatically rotate images to their correct orientation
IEGlobalSettings().IOParamDefaults.EnableAdjustOrientation := True
// Improve the colors of Raw camera images added to a TIEMultiBitmap
IEGlobalSettings().IOParamDefaults.RAW_AutoAdjustColors := True;
IEGlobalSettings().IOParamDefaults.RAW_UseAutoWB := True;
IEGlobalSettings().IOParamDefaults.RAW_UseCameraWB := True;
MyMultiBitmap.FillFromDirectory( 'E:\DCIM\' );
// Faster loading for all Camera Raw images
IEGlobalSettings().IOParamDefaults.RAW_HalfSize := True;
IEGlobalSettings().IOParamDefaults.RAW_GetEmbeddedJpeg := True;
// Set default JPEG quality to 95%
IEGlobalSettings().IOParamDefaults.JPEG_Quality := 95;