Nevron .NET Vision
Nevron.Chart Namespace / NWatermark Class / NWatermark Constructor
Example


In This Topic
    NWatermark Constructor
    In This Topic
    Creates a new empty semi transparent watermark positioned at the center of the control window.
    Syntax
    'Declaration
     
    
    Public Function New()
    'Usage
     
    
    Dim instance As New NWatermark()
    public NWatermark()
    Remarks
    After you create the watermark you must specify the image this watermark will display. The following example create a new watermark based on the "Coffee Bean.bmp" picture. Dim watermark As NWatermark = New NWatermark() watermark.ImageFileName = "c:\windows\Coffee Bean.bmp" NChartControl.Watermarks.Add(watermark) NWatermark watermark = new NWatermark(); watermark.ImageFileName = "c:\\windows\\Coffee Bean.bmp"; NChartControl.Watermarks.Add(watermark);
    Example
    The following example create a new watermark based on the "Coffee Bean.bmp" picture.
    Dim watermark As NWatermark =  New NWatermark() 
    watermark.ImageFileName = "c:\windows\Coffee Bean.bmp"
    NChartControl.Watermarks.Add(watermark)
    NWatermark watermark = new NWatermark();
    watermark.ImageFileName = "c:\\windows\\Coffee Bean.bmp";
    NChartControl.Watermarks.Add(watermark);
    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