Chart.Compression Property (System.Web.UI.DataVisualization.Charting)

Switch View :
ScriptFree
.NET Framework Class Library
Chart.Compression Property

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)
Syntax

Visual Basic
<BindableAttribute(True)> _
<PersistenceModeAttribute(PersistenceMode.Attribute)> _
Public Property Compression As Integer
	Get
	Set
C#
[BindableAttribute(true)]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
public int Compression { get; set; }
Visual C++
[BindableAttribute(true)]
[PersistenceModeAttribute(PersistenceMode::Attribute)]
public:
property int Compression {
	int get ();
	void set (int value);
}
F#
[<BindableAttribute(true)>]
[<PersistenceModeAttribute(PersistenceMode.Attribute)>]
member Compression : int with get, set

ASP.NET
<asp:Chart Compression="Int32" />

Property Value

Type: System.Int32
An integer that represents the amount of compression for the entire chart image.
Remarks

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.

Version Information

.NET Framework

Supported in: 4
Platforms

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also

Reference