Guide for VB.NET
Printing & Saving Image
Core Document Formats
Additional Features

VB.NET Imaging - Image Saving & Printing Using VB

How to Save & Print Image / Photo Using VB.NET Programming Code

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

VB.NET Image Saving & Image Printing
How to save source image from your VB.NET class application as you want? How to print target image file from your VB.NET class application? In order to achieve above two tasks, VB developers need to integrate advanced & mature image saving and printing functions into their VB.NET class applications.
This VB.NET image saving & printing control add-on is a robust and professional .NET image solution that is developed to help VB.NET programmers save & print image / photo / picture from ASP.NET web application or .NET Windows Forms project, without having any dependency on other image editors or image processors.
This online tutorial page will tell you how to save and print image / picture file using Visual Basic .NET programming code from following aspects.
  • Key features of VB.NET image saving and printing technologies
  • Brief overview of the library dll that is used to save & print image file by VB.NET code
  • VB.NET method & sample code for image saving in .NET Framework application
  • VB.NET method and demo code to add image printing features to .NET project
VB.NET Image Saving & Printing Control Features
  • Powerful VB.NET imaging solution that can save & print 30+ image file formats
  • Allow VB.NET developers to save source image file to local disks, FTP or HTTP server
  • Able to print target image file with both low resolution and high resolution printers by VB.NET code
  • Capable of saving and printing multi-page document files, like PDF and Word, in VB.NET class application
  • Support normal image printing features like number of copies, orientation and resolution
As this VB.NET image saving and printing control add-on is one component of DocImage SDK for .NET, it can also be integrated with other VB.NET imaging controls for image processing, viewing and manipulation. For example, if you integrate this VB.NET image saving and printing assembly with VB.NET web image viewer add-on, you can save & print image from web service within most modern browsers.
VB.NET Image Saving & Printing SDK DLL
This VB.NET image saving and printing SDK compacts all functions into a small size dll, called RasterEdge.Imaging.Basic.dll. This mature VB.NET image saving and printing dll can be easily integrated into other .NET developing application by adding reference directly.
As for the installation of this VB.NET image saving and printing SDK, there are two points that need to be addressed here. One is that VB.NET developers should read the evaluation license activation tutorial first before using this VB.NET image saving and printing SDK. The other is that this compact dll also has other outstanding image processing functions, like VB.NET image converting feature, image cropping function, image blurring effect, etc.
How to Save Image Using VB.NET
In this section, we will show you the process of using VB.NET code to save source image file.

VB.NET Method to Save Image / Picture

This VB.NET image saving control offers mature APIs for VB developers to save image file using different image encoders, including tif encoder, jpg encoder, png encoder, bmp encoder and gif encoder.
Shared Sub SaveImageFile(image As REImage, filePath As String)
End Sub
Public Shared Sub SaveImageFile(image As REImage, filePath As String, enc As BaseEncoder)
End Sub

VB.NET Code to Save Image / Photo

The following VB.NET sample code is used to illustrate how to save a sample png image file to local file with desired file name.
Imports RasterEdge.Imaging.Basic.Core
Imports RasterEdge.Imaging.Basic.Codec
Imports RasterEdge.Imaging.Basic

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)

REFile.SaveImageFile(reImage, "c:/reimage.png", New PNGEncoder())
End Sub
End Class
End Namespace
How to Print Image Using VB.NET
From this section, you will have a better understanding of how to print image using RasterEdge VB.NET image printing control.

VB.NET Method to Print Image

Private Function Print(ImageID As Integer) As [Public]
End Function

VB.NET Code to Print Image

Imports RasterEdge.Imaging.Basic.Core
Imports RasterEdge.Imaging.Basic.Codec
Imports RasterEdge.Imaging.Basic

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)

REFile.PrintImageFile(reImage, "c:/reimage.png")
End Sub
End Class
End Namespace
If you want to integrate image saving and printing functions into C#.NET class application, please fell free to visit this C#.NET image saving and printing tutorial page.


Recommend this to Google+