ImageEn, unit imageenview

TImageEnView.AssignSelTo

TImageEnView.AssignSelTo


Declaration

procedure AssignSelTo(Dest: TObject);


Description

Assigns the content of the selected area to the Dest object (can be a TImageEnView, TIEBitmap, TBitmap or TImage).
If nothing is selected, the whole image is copied.
An exception is raised if Dest is an unsupported type.

Note:
When copying to a TImageEnView, the alpha channel is used if Dest.EnableAlphaChannel is enabled
To copy the selection to a TIEBitmap, you can also use CopySelectionToBitmap


Example

// 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 );


See Also

AssignTo
Assign