ActiveReports for .NET 3 Online Help Request technical support
Alpha Blending
User Guide > Concepts > Charts > Chart Appearance > Chart Effects > Alpha Blending

Glossary Item Box

The Backdrop class in the Chart control has an Alpha property which employs GDI+, and is used to set the transparency level of each object's backdrop. GDI+ uses 32 bits overall and 8 bits per alpha, red, green, and blue channels respectively to indicate the transparency and color of an object. Like a color channel's levels of color, the alpha channel represents 256 levels of transparency.

The default value of the Alpha property is 255, which represents a fully opaque color. For a fully transparent color, set this value to 0. To blend the color of the object's backdrop with the background color, use a setting between 0 and 255.

In the Chart control, you can use the Color.FromArgb method to set the alpha and color levels for a particular chart element. The following example shows how you can use the method to set the alpha and color values for the chart backdrop.

' Visual Basic
Me.ChartControl1.Backdrop = New DataDynamics.ActiveReports.Chart.BackdropItem _
	(Color.FromArgb(100, 0, 11, 220))

// C#
this.chartControl1.Backdrop = new DataDynamics.ActiveReports.Chart.
	BackdropItem(Color.FromArgb(100, 0, 11, 220));

Changing the alpha level of a chart element reveals other items that are beneath the object. Because you can set the alpha level for any chart element that supports color, you can create custom effects for any chart. For example, you can use alpha blending to combine background images with a semi-transparent chart backdrop to create a watermark look.

©2009. All Rights Reserved.