ChartDirector 6.2 (.NET Edition)

BaseChart.setDropShadow


Usage

[C#] public void setDropShadow([ int color [, int offsetX [, int offsetY [, int blurRadius ]]]]);
[VB] Public Sub setDropShadow([ color As Integer [, offsetX As Integer [, offsetY As Integer [, blurRadius As Integer ]]]])

Description

Adds a drop shadow to the chart.

The drop shadow effect is created using a single color representation of the non-transparent part of the chart, offsetted by an amount, and put under the chart. The drop shadow can be blurred to create a soft drop shadow effect.

Note that adding a drop shadow will increase the width and height of the chart image so as to accommodate the drop shadow.

Because the drop shadow is located exterior to the original chart, it uses an exterior background color different from the background color of the original chart. The exterior background color is by default white, and can be configured with BaseChart.setRoundedFrame.

Arguments

ArgumentDefaultDescription
colorAAAAAAThe color of the drop shadow.
offsetX5The x offset of the drop shadow.
offsetY7fffffffThe y offset of the drop shadow. 7fffffff means it is the same as the x offset.
blurRadius5The blur radius of the drop shadow.

Return Value

None