- 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!
Image Rotation in VB.NET Imaging Application
If you are going to process a large volume of image files that are saved with different orientations, then you may probably need to a .NET solution which can help you rotate image file so that the source image format can be correctly displayed on the computer screen. This online tutorial page for image rotation in VB.NET programming application is made of following four parts.
VB.NET Image Rotator Library Add-on Features
VB.NET Image Rotating Method
Following is RasterEdge image rotating method. In the process of VB.NET image rotation, please pay attention to the measurement of image rotation angle: clockwise from the X-axis with the image right-bottom point as rotating center.
Public Shared Function ApplyRotate(img As REImage, deg As Integer) As Integer
VB.NET Demo Code to Rotate Image
Here we offer a VB.NET programming example to show the process of rotating a source png image file using RasterEdge VB.NET image rotator control SDK (Apart from PNG image file format, other image types are also supported, like gif, tiff, bmp and jpeg).To help you interpret following VB.NET demo code better, we will make illustration on how those lines of Visual Basic .NET code work to rotate a source image.
Using its own image decoder API, this VB.NET image rotator control SDK is able to successfully & quickly open target png image file and decode it to bitmap. Then, RasterEdge VB.NET image rotation control add-on rotates the bitmap with mature image rotation API (which allows VB.NET developers to enter the rotating degrees in VB.NET code directly). Finally, the rotated bitmap will be re-encoded back to png image format by RasterEdge png image encoder.
There are two things that should be mentioned here. One is that, besides the ability to draw png image file from PC local disks, this VB.NET image rotator control SDK also owns the capacity to acquire source image file from http or ftp server. The other is that, this VB.NET image rotator control SDK allows developers to save rotated image as new file. That is to say, after you run following VB.NET code, you will find that apart from the sample image file, and there will be a new image file created (if the name of newly created image file is different from that of source image file).
VB.NET Image Rotator Control FAQs
Q 1: I am building a VB.NET image viewer project in ASP.NET web developing platform. And now I want to integrate a high-quality image rotating SDK into this project. Can this VB.NET image rotator control SDK be perfectly integrated into my ASP.NET web application?
A 1: Yes, this VB.NET image rotator library SDK is designed for all .NET developing applications. Thus, developers can seamlessly integrate this VB.NET image rotation control SDK into ASP.NET web services or Windows Forms projects.
Q 2: As the source image file (which I need to rotate) will be used for a sophisticated and elaborate .NET image editing application, I want to rotate the image while preserving its original image quality. Can this VB.NET image rotating library control help me achieve lossless image rotation in .NET imaging application?
A 2: Yes, this VB.NET image rotation control SDK will not decrease the source image quality while rotating it.
Please see more VB.NET tutorials for using DocImage SDK for .NET!