TX Text Control .NET for Windows Forms

ExportCompressionQuality Property

Property|Introduced in 23.0
Namespace
TXTextControl.DataVisualization
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

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; }

Examples

The following example uses DrawingFrame.ExportCompressionQuality to balance the drawing frame's export quality and file size. The change is then applied to the active document or user interface.

drawingFrame.ExportCompressionQuality = 90;
drawingFrame.Refresh();