Home >
.NET Imaging SDK >
VB.NET >
Load Image from File
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!
RasterEdge .NET Image SDK is a mature and powerful image processing toolkit which contains various image editing control libraries so that Visual Basic developers can easily import and load images from local files or from stream.
visual basic create pdf,
itextsharp add image to existing pdf vb.net,
c# open pdf file in browser,
c# convert pdf to tiff free,
namespace for barcode reader in c#,
c# tiff reader.
If you have installed Microsoft Visual Studio, you can easily load any picture in
Png, Jpeg, Gif, Tiff and Bmp image formats to your Visual Basic .NET imaging application for further processing.
Related .net document control helps:
c# asp.net text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net document viewer open source:
EdgeDoc:ASP.NET Document Viewer C# Control:
Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net edit pdf page using c#:
ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net edit pdf text using c#:
ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
c# asp.net mvc document viewer: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
c# asp.net dicom viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
This page will provide detailed guidance on how to load an image from file in your VB.NET image editing project, along with examples and VB.NET demo codes. Here are the main aspects that will be demonstrated later in this page:
- How to load an image from local file with Visual Basic .NET programming language
- How to load an image from file stream using Visual Basic .NET sample codes
- Some more image viewing and loading examples in Visual Basic .NET codes
vb.net convert pdf to text file,
get pdf page count vb.net,
split pdf vb.net,
c# redact pdf,
how to make a pdf of a page in c#,
how to generate pdf in asp net using c#,
c# draw pdf.
Besides loading an image from your local file or stream in your application, RasterEdge also provides some other user manuals on image viewing & processing in your VB imaging program, some of which are listed as below:
How to Load Images from Files in VB
VB.NET Image SDK Library provides multiple image processing features and functionality for you to edit an image as you wish.
asp.net core image viewer,
asp.net add text to pdf field,
asp.net mvc generate pdf from view,
asp.net pdf editor control,
open word document file in browser in asp.net,
asp.net display pdf,
asp.net pdf preview.
But before you get started, you need to load and import the image to your project first for display. We have demonstrated the corresponding VB.NET method and complete sample codes for loading and image restored in your local file.
In order to use the Visual Basic .NET sample codes below, developers are required to install the .NET Framework to your computer first. Supported versions include 2.0 and all the later versions. Apart from that, you need to install the Microsoft Visual Studio as well, currently supporting 2005 / 2008 / 2010 and 2012 versions. When these two requirements are met, you can build a new image processing project using VB.NET, such as a Windows application. Now you can freely copy the VB.NET sample codes listed below to your program for testing right now!
Load Image from VB Application Files Method
Below is the Visual Basic .NET method to load a single image or multiple ones from your local file to your image processing application. VB developers can freely modify the filename property in the codes.
Public Shared Sub New(filename As String)
End Sub
Load Image from Files VB.NET Example
Here are the full Visual Basic .NET demo codes for loading an image restored in your local and importing to your .NET image processing application.
This examples show you how to load a picture in png image format to import to your program. The picture is stored in your local disk C with the name "1.png". Of course it is understandable if you want to change the image file path and the picture file name so that you can test with your own local images / pictures.
Imports System.IO
Imports System.Drawing.Printing
Imports RasterEdge.Imaging
Imports RasterEdge.Imaging.Processing
Dim Image As New RasterEdgeImaging()
Image.LoadImageFromFile(@"C:\1.png")
Load Image from Stream Method in VB
If your images are not saved in files but rather stored as stream, you can simply opt for this method to load your pictures from stream with the Visual Basic .NET method listed in the below code tab.
Public Shared Sub New(Stream As Stream)
End Sub
Load Image from Stream VB.NET Example
With Visual Basic .NET demo codes below, you will be able to load and open an image from your file stream named "1.png". In addition to the supported PNG image format, we also support loading images and pics in other image formats such as JPEG, GIF, TIFF and BMP. When evaluating this VB.NET imaging library with pictures of your own, please make sure you have make corresponding changes to the image format, file name and file path.
Imports System.IO
Imports System.Drawing.Printing
Imports RasterEdge.Imaging
Imports RasterEdge.Imaging.Processing
Dim Image As New RasterEdgeImaging()
Dim stream As New System.IO.FileStream("C:\1.png", System.IO.FileMode.Open)
Dim Image As New RasterEdgeImaging()
Image.LoadImageFromFileStream("C:\1.png", System.IO.FileMode.Open)
More Imaging Tutorials!
Recommend this to Google+