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



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.IEBitmap );

// Add objects as layers
ImageEnVect1.CopyAllObjectsTo( ImageEnView1 );


See Also


- CopyAllLayersFrom
- LayersImport