'Usage Dim instance As FillEffect Dim pBitmap As Bitmap instance.SetBitmap(pBitmap)
Parameters
- pBitmap
- A Bitmap object containing the texture image
'Usage Dim instance As FillEffect Dim pBitmap As Bitmap instance.SetBitmap(pBitmap)
'load a texture for the background Dim rm As ResourceManager = New ResourceManager("SomeAssembly.AssemblyResources",GetType().Assembly) Dim mapping As FillEffectMapping = New FillEffectMapping() mapping.TextureMapLayout = MapLay.Tiled Dim bitmapTexture As Bitmap = CType((rm.GetObject("ImageNameInResources")), System.Drawing.Bitmap) ChartControl1.Background.FillEffect.SetBitmap(bitmapTexture) ChartControl1.Background.FillEffect.Mapping = mapping
//load a texture for the background ResourceManager rm = new ResourceManager("SomeAssembly.AssemblyResources", GetType().Assembly); FillEffectMapping mapping = new FillEffectMapping(); mapping.TextureMapLayout = MapLayout.Tiled; Bitmap bitmapTexture = (System.Drawing.Bitmap)(rm.GetObject("ImageNameInResources")); ChartControl1.Background.FillEffect.SetBitmap(bitmapTexture); ChartControl1.Background.FillEffect.Mapping = mapping;
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