Sets a value between 1 and 100, which is the quality of a lossy data compression used, if the drawing's bitmap image is exported. It is only used, if the image data is compressed with a lossy compression algorithm. A value of 100 indicates the maximum quality, a value of 1 indicates the minimum quality. If this property is set to zero, which is the default value, Text Control uses the quality value set with the SaveSettings.ImageCompressionQuality property.

Syntax

public int ExportCompressionQuality { get; set; }
Public Property ExportCompressionQuality() As Integer

Examples

The following example shows how to use the TXTextControl.DataVisualization.DrawingFrameExportCompressionQuality property. Here, it is set to 100. Remember, this indicates maximum quality.

TXTextControl.Drawing.TXDrawingControl myDrawingControl = new TXTextControl.Drawing.TXDrawingControl();
TXTextControl.DataVisualization.DrawingFrame drawingFrame = new TXTextControl.DataVisualization.DrawingFrame(myDrawingControl);

drawingFrame.Activate();
drawingFrame.ExportCompressionQuality = 100; // here, the ExportCompressionQuality is set
drawingFrame.ExportFileName = "";
drawingFrame.ExportFilterIndex = 1;
drawingFrame.ExportResolution = 100;
drawingFrame.SaveMode = TXTextControl.ImageSaveMode.Auto;

textControl1.Drawings.Add(drawingFrame, -1);
Dim myDrawingControl As TXTextControl.Drawing.TXDrawingControl = New TXTextControl.Drawing.TXDrawingControl()
Dim drawingFrame As TXTextControl.DataVisualization.DrawingFrame = New TXTextControl.DataVisualization.DrawingFrame(myDrawingControl)

drawingFrame.Activate() ' here, the Activate method is used
drawingFrame.ExportCompressionQuality = 100 ' here, the ExportCompressionQuality is set
drawingFrame.ExportFileName = ""
drawingFrame.ExportFilterIndex = 1
drawingFrame.ExportResolution = 100
drawingFrame.SaveMode = TXTextControl.ImageSaveMode.Auto

textControl1.Drawings.Add(drawingFrame, -1)