Changes the Kindtype of the current layer to IEImageLayer.
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.
Note:
- For text layers, a qualityFactor of 1 usually works best
- To convert multiple layers, use IEImage.LayersConvertToImageLayers
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0
Syntax
C# | Visual Basic | Visual C++ |
public void ConvertToImageLayer( double qualityFactor, bool cropAlpha )
Public Sub ConvertToImageLayer ( _ qualityFactor As Double, _ cropAlpha As Boolean _ )
public: void ConvertToImageLayer( double qualityFactor, bool cropAlpha )
Parameters
- qualityFactor
- Double
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).
- cropAlpha
- Boolean
If cropAlpha is true, then it remove any alpha from the edges of the layer.