ImageEn, unit iesettings

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.

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
 * 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;