Guide for VB.NET
Core Document Formats
Additional Features
Image Scaling

VB.NET Imaging - Scale Image Using VB.NET

VB.NET Image Scaling SDK to Resize Image Proportionally

Home > .NET Imaging SDK > VB.NET > Scale Image
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!

VB.NET Application for Image Scaling
If you are looking for a way to resize image proportionally, please try this VB.NET image scaling library control. Using this VB.NET image scaling control SDK, developers can adjust the image size without changing the ratio between image width & height. To put it in another way, this VB.NET image scaling control toolkit allows developers to zoom in or zoom out source image file in a programming way.
Related .net document control helps: image file viewer: ASP.NET Image Document Viewer Control: view, annotate, redact, convert image files in html web browser tiff file viewer: ASP.NET Tiff Document Viewer: view, annotate Tiff files in HTML using C# Control excel file viewer: ASP.NET Excel Document Viewer in C# Control: view office excel files online in ASP.NET web applications sharepoint file viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint pdf file permission control: ASP.NET PDF File Permission Control: apply, remove PDF file permission settings in C# redact pdf control: ASP.NET Redact PDF Document Control: redact, remove PDF text, images in web browser using C# ASP.NET annotate pdf control: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
Now, please have a look at the article layout of this VB.NET image scaling tutorial page.
  • Main function list of this VB.NET image scaling control add-on
  • Introduction on VB.NET dlls that are used to scale image file
  • VB.NET method to scale image file in .NET Framework application
  • VB.NET sample code for how to scale image / picture
  • Frequently asked questions about RasterEdge VB.NET image scaling control SDK add-on
VB.NET Image Scaling Library SDK Features
  • Easy to use VB.NET image scaling library with flexible and royalty-free developer licenses
  • Allow VB.NET programmers to enlarge & shrink source image file while maintain original image width to height ratio
  • Scaled image will be saved as new file whose name and storing folder are completely self-defined in VB.NET imaging application
  • Written in 100% managed C# code and compatible with both ASP.NET web and Windows Forms applications
VB.NET DLLs to Scale Image / Picture
There are two dlls that will be involved in the process of VB.NET image scaling, which are RasterEdge.Imaging.Basic.dll and RasterEdge.Imaging.Processing.dll. In this section, we briefly introduce you the main functions of these two image scaling SDK dlls.
RasterEdge.Imaging.Basic.dll contains several image decoding and encoding APIs. Thus, it can be used to open image file that is stored in PC hard disks, camera flash drives or web servers. RasterEdge.Imaging.Processing.dll owns rich image processing APIs, like the API to rotate image using VB.NET, the API to sharpen image in VB.NET, the API to flip image by VB.NET code and the API to crop image in VB.NET.
As this VB.NET image scaling control SDK compacts all advanced image scaling functions into these two small-size libraries, developers can integrate this mature image scaling feature into VB.NET imaging application by adding reference directly.
VB.NET Method to Scale Source Image
Here we demonstrate you the method that this VB.NET image scaling control SDK has used to scale image file. As is shown in following VB.NET image scaling method, developers can successfully scale source image by defining the ratio between desired image size and original image size.
Public Shared Function ApplyResize(img As REImage, ratio As Single) As Integer
End Function
VB.NET Sample Code for Image Scaling
To help you know more about this VB.NET image scaling control add-on, we here especially demonstrate you a VB.NET sample code, which you can use for image scaling instantly after you install RasterEdge VB.NET image scaling control SDK and activate the evaluation license key.
After you run following VB.NET code demo, you will get a scaled image file whose height & width are all half of original image width & height.
Imports RasterEdge.Imaging.Basic
Imports RasterEdge.Imaging.Basic.Core
Imports RasterEdge.Imaging.Processing
Imports RasterEdge.Imaging.Basic.Codec

Namespace RE__Test
Public Partial Class Form1
Inherits Form
Public Sub New()
End Sub

Private Sub button1_Click(sender As Object, e As EventArgs)
Dim fileName As String = "c:/Sample.png"

Dim reImage As REImage = REFile.OpenImageFile(fileName)

ImageProcessing.ApplyResize(reImage, 0.5F)

REFile.SaveImageFile(reImage, "c:/reimage.png", New PNGEncoder())
End Sub
End Class
End Namespace
Besides, if you want to know how to scale source image file in Visual C# .NET class application, please follow this link to C#.NET image scaling tutorial where you can also find detailed C#.NET programming guide.
VB.NET Image Scaling Control SDK FAQs
Q 1: Does this VB.NET image scaling control SDK allow developers to build a VB.NET imaging application for batch image scaling?
A 1: Using this VB.NET image scaling control SDK API, developer can only scale one image / picture / photo at a time in .NET class application.

Q 2: How many image types are supported by this VB.NET image scaling control toolkit?
A 2: This VB.NET image scaling control toolkit is able to scale most common image file formats, like png, jpeg, gif, bmp and tiff.
More Tutorials! also provides developers with more VB tutorial for using .NET Image SDK.

Recommend this to Google+ is professional provider of document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2017 Raster