ImageEn, unit ievect

TImageEnVect.CopyObjectsToBack

TImageEnVect.CopyObjectsToBack

Declaration

procedure CopyObjectsToBack(Antialias: Boolean = True; AdaptBitmapPixelFormat: Boolean = True);

Description

CopyObjectsToBack copies all objects over background image.
This method is a way to convert the vectorial objects to a pixmap image.

If Antialias is True an anti-alias filter is applied to remove pixels aliasing.
If AdaptBitmapPixelFormat is True (default) the image will be converted to 24 bit RGB before drawing objects.

Example

// Saves background image and vectorial objects in a BMP file
ImageEnVect1.CopyObjectsToBack( True );
ImageEnVect1.RemoveAllObjects();
ImageEnVect1.IO.SaveToFile('output.bmp');

Transition Information

If you are transitioning your code to TImageEnView Layers, instead of CopyObjectsToBack, use: TImageEnView.LayersMergeAll
ImageEnView1.LayersMergeAll();