Visual C#.NET: Load Image from .NET Graphics
How to load images from .NET Graphics using C#.NET
Sometimes, developers need to load images from .NET graphicss; however, .NET graphics object does not contain any image data. So if you want load image from .NET graphics, that means you need to load bitmap images with graphics objects on it, or make a screen short to get the image included graphics objects. Find more document & image loading information on Yiigo.Image for .NET.
Yiigo.Image for .NET has those following functionalities:
- Load images in bitonal, color and grayscale
- Load bitmap images with graphics objects on it
- Load image included graphics objects by making a screen shot
- Other image loading functions
This document provides comprehensive Visual C#.NET samples for guiding developers to load and open documents and images in different formats from .NET graphics using Yiigo.Image for .NET. Find more image loading tutorials on Load Image from .NET Graphics in VB.NET, Load Image from .NET Graphics on Web Imaging Viewer & Load Image from.NET Graphics in .NET Winforms.
Load Image & Document from .NET Graphics with C#.NET Sample Code Requirements
Before loading & opening image and documents from .NET graphics using Yiigo.Image for .NET in Visual C#.NET, make sure that you have installed.
- Operating systems - Windows 7, Windows Vista, and Windows XP, etc
- Compatible with .NET framework 2.0 and above versions
- Support Visual Studio 2005, 2010 and other .NET development environments
- Yiigo.Image for .NET installation
Start to Load Image and Document from .NET Graphics
- Open and run your Microsoft Visual Studio;
- Choose either "Visual C# Projects" in "New Project" dialog box;
- Choose "Windows Application" in the "Templates" List and name it "YiigoImagingLoadCsharp";
- Right-click on the "References" folder, and select "Add Reference..." from the context menu in the "Solution Explorer" window;
- In the "Add Reference" dialog box, select the ".NET" tab and browse to Yiigo.Imaging.Net.dll library;
- Add it to your Visual C# applications;
- Call Yiigo .NET Image Namespace & Copy those following codes:
using System.IO; using System.Drawing.Printing; using Yiigo.Imaging; using Yiigo.Imaging.Processing; using Yiigo.Imaging.Loading;
// Load image from bitmap using YiigoImage Image = new YiigoImage(); { ImageID = YiigoImage.YiigoImageFrom.NET Graphics(""); Bm = YiigoImage.GetYiigoImageImage(ImageID); ResImage = YiigoImage.YiigoImageFromBitmap(Bm); YiigoImage.ReleaseYiigoImage(ImageID); } Image.LoadImageFromGraphic(System.Drawing.Bitmap, @"C:\1.bmp")
// Load image from sceen YiigoImage Image = new YiigoImage(); Image.LoadImageFromGraphicScreen(); | 
Products Overview Tech Specs Features Other Plugins Image Viewer CoreBarcode PluginPDF Read & WriteTesseract OCR PluginForm Processing PluginJBIG2 CodecJPEG2000 CodecISIS ScannerTwain ScannerDICOM ReaderCAD Scanner
|