Nevron .NET Vision
Nevron.UI.WebForm.Controls Namespace / NImageResponseHttpHandler Class / CreateImage Method
The state of the control being rendered.
The format of the new image.
The size of the new image.
The viewport to render. If this parameter is set to null, the whole image is rendered.


In This Topic
    CreateImage Method (NImageResponseHttpHandler)
    In This Topic
    Creates a new image, associated with the state transport, with the specified image format and size.
    Syntax
    'Declaration
     
    
    Protected Function CreateImage( _
       ByVal stateTransport As NStateObject, _
       ByVal imageFormat As INImageFormat, _
       ByVal size As NSize, _
       ByVal viewport As System.Nullable(Of NRectangle) _
    ) As INImage
    'Usage
     
    
    Dim instance As NImageResponseHttpHandler
    Dim stateTransport As NStateObject
    Dim imageFormat As INImageFormat
    Dim size As NSize
    Dim viewport As System.Nullable(Of NRectangle)
    Dim value As INImage
     
    value = instance.CreateImage(stateTransport, imageFormat, size, viewport)
    protected INImage CreateImage( 
       NStateObject stateTransport,
       INImageFormat imageFormat,
       NSize size,
       System.Nullable<NRectangle> viewport
    )

    Parameters

    stateTransport
    The state of the control being rendered.
    imageFormat
    The format of the new image.
    size
    The size of the new image.
    viewport
    The viewport to render. If this parameter is set to null, the whole image is rendered.

    Return Value

    The new image object.
    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