How to C#: Imaging
Using Imaging SDK for C#.NET
WinFroms Controls
Load Image from Stream
Image Access and Modify
Overview
  |  
Home ›› XImage.Raster ›› C# Raster: Load From Stream

C# RasterImage - Load Image in C#.NET


How to Load image from stream with C# XImage.Raster SDK



Related .net document control helps:
mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net edit pdf page: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net pdf viewer control: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net pdf editor control: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net image viewer zoom: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery


Load Image from Stream Overview



With the XImage.Raster SDK, you can load image from a memory or filestream. While, you can load a single frame image or multi frame image in the same way.

 


C#: Load Image to memory from stream



This is a C# programming example for load image from stream.

Sample Code 1:





//  Convert Word file to HTML5 files
//load image from stream without load options
WorkRegistry.Reset();
FileStream fs = new FileStream(@"input.jpeg", FileMode.Open,  FileAccess.Read);
RasterImage img = new RasterImage(fs);



Sample Code 2:


	  
//load image from stream with load options
//register the functions
WorkRegistry.Reset(); FileStream fs = new FileStream(@"input.jpeg", FileMode.Open, FileAccess.Read); LoadOption option = new LoadOption(); option.LoadAlphaChannel = false; option.Resize = new Size(100, 100); RasterImage img = new RasterImage(fs, option);