# BarcodeFrame.ExportCompressionQuality Property

> Sets a value between 1 and 100, which is the quality of a lossy data compression used, if the barcode'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.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 19.0
- **Namespace:** `TXTextControl.DataVisualization`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.DataVisualization > BarcodeFrame.ExportCompressionQuality Property
- **368 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/barcodeframe/exportcompressionquality-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/barcodeframe/exportcompressionquality-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/barcodeframe/exportcompressionquality-property/llms-full.txt

---

### Description

Sets a value between 1 and 100, which is the quality of a lossy data compression used, if the barcode'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](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/imagecompressionquality-property/llms-full.txt) property.

### Syntax

```csharp
public int ExportCompressionQuality { get; set; }
```

```vbnet
Public Property ExportCompressionQuality As Integer
```

### Examples

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

```csharp
barcodeFrame.ExportCompressionQuality = 90;
barcodeFrame.Refresh();
```

```vbnet
barcodeFrame.ExportCompressionQuality = 90
barcodeFrame.Refresh()
```

---

## Nearby

- **Previous:** [BarcodeFrame Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/barcodeframe/constructor/llms-full.txt)
- **Next:** [BarcodeFrame.ExportFileName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/barcodeframe/exportfilename-property/llms-full.txt)
