'Declaration
Public Overloads Function Resize( _ ByVal width As System.Integer, _ ByVal height As System.Integer, _ ByVal preserveApectRatio As System.Boolean _ ) As NRaster
'Usage
Dim instance As NRaster Dim width As System.Integer Dim height As System.Integer Dim preserveApectRatio As System.Boolean Dim value As NRaster value = instance.Resize(width, height, preserveApectRatio)
public NRaster Resize( System.int width, System.int height, System.bool preserveApectRatio )
Parameters
- width
- The width of the new raster.
- height
- The height of the new raster.
- preserveApectRatio
- Specifies whether to preserve aspect ratio of the raster or not. If set to true and the aspect ratio of the original raster is different than the one defined by the given width and height, the resized image will be centered in the resulting raster.