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

VB.NET Imaging - Flip Image Using VB.NET

Visual Basic .NET Application for Flipping Image Vertically and Horizontally

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

Using our VB.NET Image Flipping Control included in the RasterEdge .NET Image SDK, an image (including BMP, PNG, JPG, etc) can be flipped by a mirror-reversal of the original one across a horizontal or vertical axis. Sometimes, an effect of reflection in water can be realized through image flipping. There are more image processing and image drawing functionalities supported by this .NET Image SDK in VB.NET application, such as image resizing, cropping, rotating and so on.
Users may want to flip image if they need scenes in a photo looking in the other direction or need the top of an image to be the bottom. Here is a detailed tutorial with VB.NET demo code that tells you how to flip image horizontally or vertically with our VB.NET Image Flipping Library. You can easily finish image flipping to achieve the desire effect by following this tutorial step by step.
In addition to VB.NET tutorial for flipping image, we also offer a tutorial which helps C# developers to flip image using Visual C#.NET code. With our C#.NET image flipping tool, users are able to flip the right side of an image horizontally to create a reflection of the left side so as to realize a mirror effect.
VB.NET Image Flipping Control Features
Here is a feature list of our VB.NET image flipping control. With these advanced features, it is reliable to use this control for image flipping in VB.NET application easily and quickly.
  • Compatible with common Windows systems, such as Windows Vista, XP, 7, etc
  • Provide a user-friendly interface for easy usage of this VB.NET image flipping control
  • Offer simple VB.NET solutions for both horizontal and vertical image flipping
  • Able to save flipped image to a named local file in VB.NET application
  • Capable of printing the flipped image through VB.NET programming
How to Flip Image in VB.NET

VB.NET Image Flipping Preparation

RasterEdge .NET Image SDK is an easy-to-use image processing component for VB.NET developers. They can use it to complete various imaging applications through VB.NET programming independently from any third party tool. In this part, we will tell you what preparations you need to make for flipping image in VB.NET application with this .NET Image SDK.
  1. First of all, you may need to install Visual Studio 2005 or later versions and .NET Framework 2.0 or above.
  2. Next, you may download our trial version of .NET imaging SDK and add the following dlls to references.
    • RasterEdge.Imaging.Basic.dll
    • RasterEdge.Imaging.Processing.dll

VB.NET Image Flipping Horizontally

After all preparations are made correctly, users are able to create a VB.NET project in your Visual Studio and use the following free demo code to flip image horizontally. This means that your image is interchanged between the left and the right and the photo on the right instantly becomes a mirror reflection of the photo on the left.
     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()
InitializeComponent()
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.ApplyFlip(reImage)
REFile.SaveImageFile(reImage, "c:/reimage.png", New PNGEncoder())
End Sub
End Class
End Namespace

VB.NET Image Flipping Vertically

If you want to turn the bottom image into a mirror reflection of the top image, you may choose to flip the image vertically. The following Visual Basic .NET sample code can be used to turn the image upside down with our VB.NET image flipping control. Users are free to apply sample code below to your VB.NET image flipping application at any time.
     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()
InitializeComponent()
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.ApplyFlipV(reImage)

REFile.SaveImageFile(reImage, "c:/reimage.png", New PNGEncoder())
End Sub
End Class
End Namespace
In conclusion, we have stated general description of our VB.NET image flipping control, its main features, preparations made to flip image, VB.NET demo code for flipping image horizontally and VB.NET sample code for vertical image flipping in this article. We have also illustrated some image formats supported by this VB.NET image flipping library as well as the link for C#.NET image flipping tutorial. We hope this VB.NET guide for image flipping will be useful to you.
More Tutorials!
Find more user guides with RasteEdge .NET Image SDK using VB.NET sample codings!


Recommend this to Google+