ImageEn, unit imageenview |
|
TImageEnView.LoadSelectionFromFile
Declaration
function LoadSelectionFromFile(const FileName: String; Options: TIERSOptions = iersMoveToAdapt): boolean;
Description
Loads a selection from a file (saved using
SaveSelectionToStream or
SaveSelectionToFile).
Returns False if it fails.
Options specifies how the selection is adapted when it comes from an image with different size or position.
Note: To share the same selection among layers you must use iersSyncLayers.
ImageEnView1.Select(10, 10, 100, 100);
ImageEnView1.SaveSelectionToFile('C:\selection1');
..
sel1.Position := 0;
ImageEnView1.LoadSelectionFromFile('C:\selection1'); // this equates to Select(10, 10, 100, 100)