- 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 Image & Picture Cropping Application
Do you need to save a copy of certain part of an image file in a programming way? Do you need to cut out certain unwanted part from one image file by VB.NET code? If you have one yes for above questions, then this mature VB.NET image cropping control SDK may arise your interest. Fully developed in .NET Framework application, this VB.NET image cropper library SDK provides a professional and easy to use .NET solution for developers to crop / cut out image file in a short time. Thus, this VB.NET image cropping control SDK is often used by developers for building a comprehensive and fully featured image editing application.
This online tutorial page will illustrate the image cropping function from following aspects.
VB.NET Image Cropper Control Features
After you crop an area from source image file using VB.NET programming code, you are also allowed to conduct some basic editing applications toward cropped image. For example, you can adjust the size of created cropped image file, add antique effect to cropped image and rotate the orientation of cropped image using Visual Basic .NET code.
VB.NET Method for Image Cropping
In this section, we will brief illustrate the method that this VB.NET image cropper control SDK has used to cut out a rectangular section from source image. As this VB.NET image cropper control SDK adopts the application of X & Y location, the position of cropped rectangular section can be accurately defined. As for the size of chose rectangular section, developers can determine the cropping area by entering the width & height value directly. Note: the coordinates of left-top point of source image is (0, 0).
Public Shared Function ApplyCrop(img As REImage, x As Integer, y As Integer, width As Integer, height As Integer) As Integer
VB.NET Demo Code to Crop Image
In this section, you will find a complete VB.NET code demo which is used to help you have a quicker grasp of this VB.NET image cropping process: decode the source image file to bitmap, crop bitmap and save cropped bitmap to original image format. After you run this VB.NET sample code in your .NET class application, the original source image file will not be changed and a new image file will be created which contains your desired image part.
VB.NET Image Cropping Library Add-on FAQs
Q 1: What are the installation requirements of this VB.NET image cropping control add-on?
A 1: RasterEdge VB.NET image cropping control add-on needs a PC running Windows XP or later windows operating systems, a .NET developing tool Microsoft Visual Studio 2005 or greater versions and .NET Framework 2.0 or later versions.
Q 2: If I crop a part from source image and save cropped part as a new file using this VB.NET image cropper library plug-in, does this newly created file have the same image quality with the original image file?
A 2: Yes, this VB.NET image cropper library SDK allows developers to cut out certain area from source image file without decreasing the original image quality.
Find more user guides with RasteEdge .NET Image SDK using VB.NET sample codings!