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