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.
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
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.
Public Partial Class Form1
Public Sub New()
Private Sub button1_Click(sender As Object, e As EventArgs)
Dim fileName As String = "c:/Sample.png"
Dim reImage As REImage = REFile.OpenImageFile(fileName)
REFile.SaveImageFile(reImage, "c:/reimage.png", New PNGEncoder())
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.
RasteEdge.com also provides developers with more VB tutorial for using .NET Image SDK.
Recommend this to Google+