Guide for VB.NET
Create Image from Stream
Core Document Formats
Additional Features

VB.NET Imaging - Create Image from Stream in VB

How to Capture Image from Data Stream in VB.NET Imaging Application

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

VB.NET Image Creation from Stream
Why do we need to convert stream to image using VB.NET class application? As is said in this online tutorial for VB.NET image to stream conversion, compared with uploading image file to data base or web server directly, the method to save image file as stream and then draw original image from the memory stream will help web page visitors have a better surfing experience by offering a faster image loading speed. Thus, this robust and mature .NET solution for image creation from data stream has been widely used in the field of web designing.
Related .net document control helps: view text file: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC excel view: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser. sharepoint document viewer free: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint edit pdf page: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C# pdf viewer control: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET dicom web viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
This standalone VB.NET component for image loading from stream is developed in Visual Studio 2005 and designed for .NET Framework applications. In order to give you a detailed guidance on the image loading from stream using VB.NET programming code, we divide this online tutorial page into following four parts.
  • Benefit list of this VB.NET solution to create image from stream
  • Brief instruction on the dll that is used to load image from stream by VB.NET code
  • VB.NET method for image creation & loading from stream
  • VB.NET sample code on how to capture image from data stream
VB.NET Stream to Image Conversion Features
  • Create image from stream by VB.NET code without using other third-party editors
  • Able to convert stream to several image file formats, like png, jpeg, bmp, gif and tiff, in VB.NET class application
  • The image files that are created from stream can be saved to local disks with desired name using VB.NET
VB.NET Image DLL to Load Image from Stream
VB.NET developer can successfully convert stream to image and save captured image file to his computer with one compact dll, namely, RasterEdge.Imaging.Basic.dll. Written in 100% managed C# code, this professional VB.NET image processing library control can be easily integrated into any VB.NET class applications (including ASP.NET web and Windows Forms projects) by adding reference directly.
The library dll that we use here to get image from stream by VB.NET code programmatically is the core component of our .NET Image SDK, which you are free to use & deploy in your VB.NET project after purchasing the .NET core SDK license. To make sure this VB.NET stream to image converter control toolkit have a perfect integration with your .NET application, you have to install Microsoft Visual Studio 2005 (VS 2008, VS 2010 and VS 2012 are also suitable) and .NET Framework 2.0, 3.0, 3.5, 4.0 or 4.5.
Apart from the function to create image from stream, this VB.NET imaging library assembly is also equipped with the ability to capture image from web url, convert image to byte array, create new image file by VB.NET code, perform VB.NET image effects, like image sharpening and old photo effect adding, resize source image and rotate target image file in .NET developing platform.
VB.NET Method to Create Image from Stream
In this section, we will offer you a brief introduction on the process of loading image from stream in VB.NET class application. With our image decoders, you can save the stream to REimage. Then you can save REimage to all RasterEdge supported image formats with corresponding image encoders, like BMP encoder, PNG encoder, TIF encoder, GIF encoder and JPG encoder.
Public Shared Function GetImageFromStream(stream As Stream, dec As BaseDecoder) As REImage
End Function
Public Shared Function GetDocumentFromStream(stream As Stream, dec As BaseDecoder) As REDocument
End Function
VB.NET Code to Load Image from Stream
In this section, we offer you a VB.NET programming example which you can get & capture a .bmp image file from stream. The name & storing path of new created image file are all user-defined.
If you want to see a Visual C# example for how to create image from stream, you can view this C#.NET stream to image conversion tutorial page.
Imports RasterEdge.Imaging.Basic
Imports RasterEdge.Imaging.Basic.Core

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim reImage As REImage = REFile.GetImageFromStream(stream, New Codec.BMPDecoder())

REFile.SaveImageFile(reImage, "c:/reimage.bmp", New Codec.BMPEncoder())

End Sub
End Class
More Tutorials!
Link following image creating guides within RasterEdge .NET Image SDK.

Recommend this to Google+ is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2017 Raster