Chart.Compression Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the amount of compression for the chart image.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public int Compression { get; set; }

Property Value

Type: System.Int32

An integer that represents the amount of compression for the entire chart image.

Compression is expressed as a percentage; for example, to use 50% compression, set this property to 50.

Compression is used for all rendering methods, as determined by the RenderType property, but only for JPEG images, which are specified by the Jpeg enumeration value.

.NET Framework
Available since 4.0
Return to top