ImageEn, unit ievect

TImageEnVect.CopyAllObjectsTo

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:
Object Kind Converted To Notes
iekLINE TIELineLayer -
iekBOX TIEShapeLayer -
iekELLIPSE TIEShapeLayer -
iekARC TIEPolylineLayer -
iekBITMAP TIEImageLayer -
iekTEXT TIETextLayer -
iekRULER TIELineLayer Ruler notches will be lost. Text will be displayed below center
iekPOLYLINE TIEPolylineLayer -
iekANGLE TIEAngleLayer -
iekMEMO TIETextLayer Text formatting is lost
iekLINELABEL TIELineLayer Inward arrows are converted to outward arrows

Note:
 To move objects, use CopyObjectTo
 User data is not transferred (see: CopyObjectTo)


Example

// 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
 LayersImport


Transition 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();