ImageEn, unit iesettings

TIEImageEnGlobalSettings.IOParamDefaults

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.

Property TIOParam Property Default Value
EnableAdjustOrientation EnableAdjustOrientation, JPEG_EnableAdjustOrientation and TIFF_EnableAdjustOrientation False
RAW_AutoAdjustColors RAW_AutoAdjustColors False
RAW_HalfSize RAW_HalfSize False
RAW_GetEmbeddedJpeg RAW_GetEmbeddedJpeg False
RAW_EmbeddedJpegMinWidth RAW_EmbeddedJpegMinWidth 800
RAW_EmbeddedJpegMinHeight RAW_EmbeddedJpegMinHeight 800
RAW_EmbeddedJpegLoading RAW_EmbeddedJpegLoading ierlDefault
RAW_Interpolation RAW_Interpolation ieRAWInterpolationLinear
RAW_QuickInterpolate RAW_QuickInterpolate True
RAW_UseAutoWB RAW_UseAutoWB False
RAW_UseCameraWB RAW_UseCameraWB False
JPEG_DCTMethod JPEG_DCTMethod ioJPEG_ISLOW
JPEG_Quality * JPEG_Quality, TIFF_JPEGQuality, DICOM_JPEGQuality 80
JPEG_Scale JPEG_Scale ioJPEG_FULLSIZE
PSD_LoadLayers PSD_LoadLayers False
DICOM_Range DICOM_Range iedrAdjust

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;