ImageEn, unit imageenview

TImageEnView.MergeSelectionFromFile

TImageEnView.MergeSelectionFromFile


Declaration

function MergeSelectionFromFile(const FileName: String): Boolean;


Description

Loads a selection from a file (saved using SaveSelectionToStream or SaveSelectionToFile) merging it with the currently one.
Returns False if it fails.


Example

ImageEnView1.Select(10, 10, 100, 100);
ImageEnView1.SaveSelectionToFile('C:\selection1');
..
sel1.Position := 0;
ImageEnView1.MergeSelectionFromFile('C:\selection1');   // this equates to Select(10, 10, 100, 100, iespAdd)