Document Solutions for Imaging
DS.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / Resize Method
The width of the resized image, in pixels.
The height of the resized image, in pixels.
The interpolation mode to use when scaling.
Clipping rectangle specifying the area of the source image to be processed.

In This Topic
    Resize Method (GcBitmap)
    In This Topic
    Creates a new GcBitmap with a resized image fragment.
    Syntax
    'Declaration
     
    Public Function Resize( _
       ByVal targetPixelWidth As System.Integer, _
       ByVal targetPixelHeight As System.Integer, _
       Optional ByVal interpolationMode As InterpolationMode, _
       Optional ByVal clipRect As System.Nullable(Of Rectangle) _
    ) As GcBitmap
    public GcBitmap Resize( 
       System.int targetPixelWidth,
       System.int targetPixelHeight,
       InterpolationMode interpolationMode,
       System.Nullable<Rectangle> clipRect
    )

    Parameters

    targetPixelWidth
    The width of the resized image, in pixels.
    targetPixelHeight
    The height of the resized image, in pixels.
    interpolationMode
    The interpolation mode to use when scaling.
    clipRect
    Clipping rectangle specifying the area of the source image to be processed.

    Return Value

    A new GcBitmap with resized image.
    See Also