- DocImaging for C#
- DocImaging for VB.NET
- KNOWLEDGE BASE
Guide for VB.NET
Core Document Formats
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.
VB.NET Image Scaling Library SDK Features
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.
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.