ImageEn, unit imageenview |
|
TImageEnView.AssignSelTo
Declaration
procedure AssignSelTo(Dest: TPersistent);
Description
Assigns the content of the selected area to the
Dest object (can be a
TImageEnView, TBitmap or TImage).
Note: To copy the selection to a
TIEBitmap, use
CopySelectionToBitmapExample
// Create a triangular selection
ImageEnView1.BeginSelect();
ImageEnView1.Deselect;
ImageEnView1.AddSelPoint(100, 100);
ImageEnView1.AddSelPoint(200, 100);
ImageEnView1.AddSelPoint(150, 50);
ImageEnView1.EndSelect();
// assign selection to ImageEnView2
ImageEnView1.AssignSelTo( ImageEnView2 );
// assign selection to mybitmap (TBitmap)
ImageEnView1.AssignSelTo( mybitmap );