VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging Namespace / VintasoftImage Class / Resize Method
New image width, in pixels.
New image height, in pixels.
Example



In This Topic
    Resize Method (VintasoftImage)
    In This Topic
    Resizes this image.
    Syntax
    'Declaration
     
    Public Sub Resize( _
       ByVal width As Integer, _
       ByVal height As Integer _
    ) 
    public void Resize( 
       int width,
       int height
    )
    public: void Resize( 
       int width,
       int height
    ) 
    public:
    void Resize( 
       int width,
       int height
    ) 

    Parameters

    width
    New image width, in pixels.
    height
    New image height, in pixels.
    Remarks
    This method works synchronously, use the Vintasoft.Imaging.ImageProcessing.ResizeCommand if you need to resize image asynchronously with progress indicator.
    Example
    This example shows how to load image from disk, resize it and save to file.
    ' load image from file
    Using image As New Vintasoft.Imaging.VintasoftImage("c:\original-image.tif")
    	' resize image
    	image.Resize(400, 300)
    	' save processed image to file
    	image.Save("c:\processed-image.tif")
    End Using
    // load image from file
    using (Vintasoft.Imaging.VintasoftImage image =
        new Vintasoft.Imaging.VintasoftImage(@"c:\original-image.tif"))
    {
        // resize image
        image.Resize(400, 300);
        // save processed image to file
        image.Save(@"c:\processed-image.tif");
    }
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also