Nevron .NET Vision
Nevron.Diagram.WebForm Namespace / NDiagramPdfImageFormatProvider Class / CreateCanvas Method
bounds of the canvas (page bounds)
bounds of the window (margins bounds)


In This Topic
    CreateCanvas Method (NDiagramPdfImageFormatProvider)
    In This Topic
    Called by the OnPrintPage method to create a canvas, which can be used to print the current page on the printer graphics
    Syntax
    'Declaration
     
    
    Protected Overridable Function CreateCanvas( _
       ByVal canvasBounds As NRectangleF, _
       ByVal windowBounds As NRectangleF _
    ) As NCanvas
    'Usage
     
    
    Dim instance As NDiagramPdfImageFormatProvider
    Dim canvasBounds As NRectangleF
    Dim windowBounds As NRectangleF
    Dim value As NCanvas
     
    value = instance.CreateCanvas(canvasBounds, windowBounds)
    protected virtual NCanvas CreateCanvas( 
       NRectangleF canvasBounds,
       NRectangleF windowBounds
    )

    Parameters

    canvasBounds
    bounds of the canvas (page bounds)
    windowBounds
    bounds of the window (margins bounds)

    Return Value

    canvas used for the rendering of the current page
    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