Xceed Chart for WinForms v4.4 Documentation
SetImage Method
Example 


Xceed.Chart.Standard.v4.4 Assembly > Xceed.Chart.Standard Namespace > FillEffect Class : SetImage Method
A full path to an image file supported by .NET
Use this function to apply a texture fill effect. Note that this function will also change the current Mapping.
Syntax
'Declaration
 
Public Sub SetImage( _
   ByVal imageFileName As String _
) 
'Usage
 
Dim instance As FillEffect
Dim imageFileName As String
 
instance.SetImage(imageFileName)
public void SetImage( 
   string imageFileName
)

Parameters

imageFileName
A full path to an image file supported by .NET
Remarks
Use this function if you want to apply an image fill effect. The function will change the Type and ImageFileName properties of the FillEffectBase. It will also replace the current FillEffectMapping object with a texture mapper with stretched layout type and object linear map mode. For more information see the topics under the "Fill Effects" book in the Users Guide.
Example
The following example applies an image to the left chart wall:
Dim chart As Chart = CType((ChartControl1.Charts(0)), Chart)
Dim fillEffect As FillEffectBase =  chart.Wall(ChartWallType.Left).FillEffect 
fillEffect.SetImage("c:\Windows\zapotec.bmp")
Chart chart = (Chart)(ChartControl1.Charts[0]);
FillEffectBase fillEffect = chart.Wall(ChartWallType.Left).FillEffect;
fillEffect.SetImage("c:\\Windows\\zapotec.bmp");
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

FillEffect Class
FillEffect Members