TIOParamDefaults
Declaration
TIOParamDefaults = class
EnableAdjustOrientation : Boolean;
RAW_AutoAdjustColors : Boolean;
RAW_HalfSize : Boolean;
RAW_GetEmbeddedJpeg : Boolean;
RAW_EmbeddedJpegMinWidth : Integer;
RAW_EmbeddedJpegMinHeight : Integer;
RAW_EmbeddedJpegLoading : TIERAWEmbeddedJpegLoading;
RAW_Interpolation : TIERAWInterpolation;
RAW_QuickInterpolate : Boolean;
RAW_UseAutoWB : Boolean;
RAW_UseCameraWB : Boolean;
JPEG_DCTMethod : TIOJPEGDCTMethod;
JPEG_Quality : Integer;
JPEG_Scale : TIOJPEGScale;
PSD_LoadLayers : Boolean;
DICOM_Range : TIEDicomRange;
end;
Description
Class of
IOParamDefaults to specify defaults for load properties when initializing all
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.
* 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;