ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / ScaleViewport Method
A int specifies the amount by which to multiply the current horizontal extent.
A int specifies the amount by which to divide the current horizontal extent.
A int specifies the amount by which to multiply the current vertical extent.
A int specifies the amount by which to divide the current vertical extent.

In This Topic
    ScaleViewport Method (DeviceContext)
    In This Topic
    Modifies the viewport for a device context using the ratios formed by the specified multiplicands and divisors.
    Syntax
    'Declaration
     
    
    Public Sub ScaleViewport( _
       ByVal numX As Integer, _
       ByVal denomX As Integer, _
       ByVal numY As Integer, _
       ByVal denomY As Integer _
    ) 
    public void ScaleViewport( 
       int numX,
       int denomX,
       int numY,
       int denomY
    )

    Parameters

    numX
    A int specifies the amount by which to multiply the current horizontal extent.
    denomX
    A int specifies the amount by which to divide the current horizontal extent.
    numY
    A int specifies the amount by which to multiply the current vertical extent.
    denomY
    A int specifies the amount by which to divide the current vertical extent.
    See Also