Applies to: Nevron Diagram for .NET
How to set the background of a drawing document to an image?
To set the background of a diagram drawing document to an image use the following code:
[C#]
drawingDocument.BackgroundStyle.FillStyle =
new
NImageFillStyle(
"c:\\temp\myimage.png"
);
[VB.NET]
drawingDocument.BackgroundStyle.FillStyle =
New
NImageFillStyle(
"c:\\temp\myimage.png"
)
Take a look at the NImageFillStyle constructors – you can also create an image fill style from a .NET Image object.
Article ID: 41, Created On: 10/5/2010, Modified: 11/15/2010