Nevron .NET Vision
ReadViewportDefinition Method


Reads the viewport definition from the current request fields. Clips the viewport if its rectangle exceeds the bounds of the image.
Syntax
'Declaration
 
Protected Function ReadViewportDefinition( _
   ByVal context As System.Web.HttpContext, _
   ByVal state As NStateObject _
) As System.Nullable(Of NRectangle)
'Usage
 
Dim instance As NImageResponseHttpHandler
Dim context As System.Web.HttpContext
Dim state As NStateObject
Dim value As System.Nullable(Of NRectangle)
 
value = instance.ReadViewportDefinition(context, state)
protected System.Nullable<NRectangle> ReadViewportDefinition( 
   System.Web.HttpContext context,
   NStateObject state
)

Parameters

context
state

Return Value

Returns the current viewport rectangle or null if no viewport is defined.
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

Reference

NImageResponseHttpHandler Class
NImageResponseHttpHandler Members

 

 


©2022. Nevron Software LLC.

Send Feedback