ImageEn, unit iexLayers

TIELayer.ConvertToImageLayer

TIELayer.ConvertToImageLayer


Declaration


procedure ConvertToImageLayer(QualityFactor: Double = 2; CropAlpha: Boolean = True);


Description


Changes the Kindtype of the current layer to TIEImageLayer.
This will change it from a vector-based layer to a standard bitmap layer. Bitmap layers can be edited using standard image modification features, but the quality will be lost if you resize the layer.
QualityFactor determines the size that the layer bitmap is created. A QualityFactor of 1 will create the bitmap at the current display size, whereas a QualityFactor of 2 would create it at double the display size (allowing it to be zoomed up 200% without loss of quality).
If CropAlpha is true, then it remove any alpha from the edges of the layer.

Note:
- For text layers, a QualityFactor of 1 usually works best
- To convert multiple layers, use LayersConvertToImageLayers


Example


// Convert the current layer to an image, and apply a Negative effect
ImageEnView1.CurrentLayer.ConvertToImageLayer();
ImageEnView1.Proc.Negative();