Sets a value between 1 and 100, which is the quality of a lossy data compression used, if the chart's 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 snipped shows how to set the TXTextControl.DataVisualization.ChartFrame.ExportCompressionQuality property. Here, it is set to the value: 100 - which equals maximum quality.

System.Windows.Forms.DataVisualization.Charting.Chart myChart = new System.Windows.Forms.DataVisualization.Charting.Chart();
TXTextControl.DataVisualization.ChartFrame chartFrame = new TXTextControl.DataVisualization.ChartFrame(myChart);

chartFrame.Name = "points";
chartFrame.ExportCompressionQuality = 100; // Here, the ExportCompressionQuality is set
chartFrame.ExportFileName = ""; 
chartFrame.ExportFilterIndex = 0; 
chartFrame.ExportResolution = 0; 
System.Drawing.Rectangle myChartFrameBounds = chartFrame.Bounds;  
System.ComponentModel.Component ThisIsMyChart = chartFrame.Chart; 
chartFrame.ID = 0; 
chartFrame.Alignment = 
chartFrame.InsertionMode = 
chartFrame.Moveable = true;
chartFrame.SaveMode = TXTextControl.ImageSaveMode.Auto; 
System.Drawing.Size myFrameSize = chartFrame.Size;
chartFrame.Sizeable = true;
chartFrame.TextDistances = new int[] { -1, -1, -1, -1 }; 
int myTextPosition = chartFrame.TextPosition;

textControl1.Charts.Add(chartFrame, -1);
Dim myChart As System.Windows.Forms.DataVisualization.Charting.Chart = New System.Windows.Forms.DataVisualization.Charting.Chart()
Dim chartFrame As TXTextControl.DataVisualization.ChartFrame = New TXTextControl.DataVisualization.ChartFrame(myChart)

chartFrame.Name = "points"
chartFrame.ExportCompressionQuality = 100 ' Here, the ExportCompressionQuality is set
chartFrame.ExportFileName = ""
chartFrame.ExportFilterIndex = 0
chartFrame.ExportResolution = 0
Dim myChartFrameBounds As System.Drawing.Rectangle = chartFrame.Bounds
Dim ThisIsMyChart As System.ComponentModel.Component = chartFrame.Chart
chartFrame.ID = 0
chartFrame.Alignment = CSharpImpl.__Assign(chartFrame.InsertionMode, CSharpImpl.__Assign(chartFrame.Moveable, True))
chartFrame.SaveMode = TXTextControl.ImageSaveMode.Auto
Dim myFrameSize As System.Drawing.Size = chartFrame.Size
chartFrame.Sizeable = True
chartFrame.TextDistances = New Integer() {-1, -1, -1, -1}
Dim myTextPosition As Integer = chartFrame.TextPosition

TextControl1.Charts.Add(chartFrame, -1)