Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NRaster Class / Resize Method / Resize(Int32,Int32,Boolean) Method
The width of the new raster.
The height of the new raster.
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.


In This Topic
    Resize(Int32,Int32,Boolean) Method
    In This Topic
    Creates a new raster from this raster and resizes it to the given size.
    Syntax
    '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.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also