[]
Creates a new GcBitmap with a resized image fragment.
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
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. |