Dundas Chart for ASP.NET
FrameBackImageTranspColor Property
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace > BorderSkinAttributes Class : FrameBackImageTranspColor Property


Gets or sets the color of the frame's background image that will be implemented as transparent.


Skin frame background image transparent color.

Syntax

Visual Basic (Declaration)  
Public Property FrameBackImageTranspColor As Color
Visual Basic (Usage) Copy Code
Dim instance As BorderSkinAttributes
Dim value As Color
 
instance.FrameBackImageTranspColor = value
 
value = instance.FrameBackImageTranspColor
C#  
public Color FrameBackImageTranspColor {get; set;}

Return Value

A Color value that will be displayed as transparent.

Example

The following sample specifies a border skin that uses a frame in the Page_Load event. We also use gradient colors of blue and red for the frame.
Visual Basic Copy Code
Imports Dundas.Charting.WebControl
...

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    'specify skin style
    Chart1.BorderSkin.SkinStyle = BorderSkinStyle.FrameThin6

    'set the image to be used
    Chart1.BorderSkin.FrameBackImage = "../../../MyImage.ico"
    'we will assume that the image has the following ARGB color that needs to be transparent
    Chart1.BorderSkin.FrameBackImageTranspColor = Color.FromArgb(0, 250, 0, 0)

End Sub

Remarks

This property is used to set one image color that will be displayed as transparent, and can be set to any valid ARGB (Alpha, Red, Green, Blue) value.

Background images take precedence over both gradient colors and hatching.

Setting this property for border skins that do not use frames will have no effect.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.