[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcBitmap.Resize

Resize Method

Resize(int, int, InterpolationMode, Rectangle?)

Creates a new GcBitmap with a resized image fragment.

Declaration
public GcBitmap Resize(int targetPixelWidth, int targetPixelHeight, InterpolationMode interpolationMode = InterpolationMode.Linear, Rectangle? clipRect = null)
Public Function Resize(targetPixelWidth As Integer, targetPixelHeight As Integer, Optional interpolationMode As InterpolationMode = InterpolationMode.Linear, Optional clipRect As Rectangle? = Nothing) As GcBitmap
Parameters
Type Name Description
int targetPixelWidth

The width of the resized image, in pixels.

int targetPixelHeight

The height of the resized image, in pixels.

InterpolationMode interpolationMode

The interpolation mode to use when scaling.

Rectangle? clipRect

Clipping rectangle specifying the area of the source image to be processed.

Returns
Type Description
GcBitmap

A new GcBitmap with resized image.