TImageEnVect.CopyAllObjectsTo
Declaration
procedure CopyAllObjectsTo(Dest: TImageEnView);
Description
Copies all of the objects to another TImageEnVect or a TImageEnView.
If
Dest is a TImageEnVect, the objects are copied as standard Vectorial objects.
If
Dest is a TImageEnView, the objects are converted to
TIELayers.
Conversion is as follows:
Note:
◼To move objects, use
CopyObjectTo◼User data is not transferred (see:
CopyObjectTo)
// Clone the content of a TImageEnVect (with Objects) in a TImageEnView (as layers)
// Clear existing content
ImageEnView1.ClearAll();
// Copy background image
ImageEnView1.IEBitmap.Assign( ImageEnVect1.Layers[0].Bitmap );
// Add objects as layers
ImageEnVect1.CopyAllObjectsTo( ImageEnView1 );
See Also
◼CopyObjectTo◼CopySelectedObjectsTo◼CopyAllLayersFrom◼LayersImportTransition Information
If you are transitioning your code to
TImageEnView Layers, instead of CopyAllObjectsTo, use:
TImageEnView.Assign.
Note: Assign will copy layers from one TImageEnView to another (including background)
ImageEnView1.Assign();