ImageEn, unit iexRegistryFunctions |
|
TImageEnViewHelper.SaveProperties
Declaration
function SaveProperties(const sKey: string; aHKEY: HKEY = HKEY_CURRENT_USER): Boolean; overload;
function SaveProperties(const sFilename: string; sSection: string): Boolean; overload;
Description
Save key properties for
TImageEnView to the registry or an INI file.
For TImageEnView the following properties are saved:
Component | Properties |
TImageEnView | AutoShrink, AutoStretch, Center, MouseInteractGeneral, MouseInteractLayers, PlayLoop, BackgroundStyle, Background, BackgroundColor2, GradientDir, GradientEndColor, ZoomFilter, ScaleX, ScaleY |
TImageEnIO | AutoAdjustDPI, JPEG_Quality, EnableAdjustOrientation, SelectedAcquireSource, DialogMeasureUnit, MsgLanguage and all print preview dialog properties |
TImageEnProc | MsgLanguage and all image processing dialog properties |
TIEAcquireParams | All |
Note:
◼SaveProperties should be used in tandem with
LoadProperties◼SaveProperties is a helper method. You will need to add iexRegistryFunctions to your uses clause to access the method
uses
iexRegistryFunctions;
...
procedure TMainForm.FormCreate(Sender: TObject);
begin
// Load settings of our ImageEnView from the registry
ImageEnView1.LoadProperties('Software\MyCompany\MySoftware');
end;
procedure TMainForm.FormClose(Sender: TObject; var Action: TCloseAction);
begin
// Save settings of our ImageEnView to the registry
ImageEnView1.SaveProperties('Software\MyCompany\MySoftware');
end;