Xceed Chart for WinForms v4.4 Documentation
DoublePassBlending Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Settings Class : DoublePassBlending Property
Whether or not to render antialiased lines in transparent polygons in a single pass.
Syntax
'Declaration
 
<CategoryAttribute("General")>

<DescriptionAttribute("Whether or not to render antialiased lines in transparent polygons in a single pass.")>

<DefaultValueAttribute()>

Public Property DoublePassBlending As Boolean
'Usage
 
Dim instance As Settings

Dim value As Boolean

 

instance.DoublePassBlending = value

 

value = instance.DoublePassBlending
[Category("General")]

[Description("Whether or not to render antialiased lines in transparent polygons in a single pass.")]

[DefaultValue()]

public bool DoublePassBlending {get; set;}
Remarks
Line antialiasing requires the blending feature of OpenGL to be enabled. This is why when you have transparent objects (that also use blending) they are both drawn in the same rendering pass. This sometimes may be undesirable because the line intensity will not be influences if they are overlapped by a transparent object. To correct this you may consider to use double pass blending when the control renders the transparent polygons and lines separately.
Example
The following code turns on the double pass blending:
ChartControl1.Settings.EnableAntialiasing = False

ChartControl1.Settings.DoublePassBlending = True
ChartControl1.Settings.EnableAntialiasing = false;

ChartControl1.Settings.DoublePassBlending = true;
Requirements

Target 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

See Also

Reference

Settings Class
Settings Members