ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / 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
    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 System.Integer, _
       ByVal denomX As System.Integer, _
       ByVal numY As System.Integer, _
       ByVal denomY As System.Integer _
    ) 
    public void ScaleViewport( 
       System.int numX,
       System.int denomX,
       System.int numY,
       System.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