- DocImaging for C#
- DocImaging for VB.NET
- KNOWLEDGE BASE
Guide for C#
Core Document Formats
If this is your first time to use our DocImageSDK, we strongly suggest you reading How to Start first!
RasterEdge .NET Imaging SDK contains several library DLLs to fulfill multiple image processing & manipulation tasks. Among all the controls, there is a RasterEdge.Imaging.Basic.dll which is designed for C# and VB.NET developers to perform some basic imaging functions such as loading image from a file, loading file from .NET graphics, creating a new image, and printing or saving an image to your local disk, and so on. As for loading image from a file using RasterEdge.Imaging.Basic.dll in C# project, please see details as below.
This Visual C# tutorial for loading an image from local file includes the following parts:
If you are a Visual Basic programmer, please go to Load Image from Files in VB.NET. If you are looking for tutorial on how to view Image and document in WinForms or ASP.NET Web application, please go to tutorials for loading Image from files in Windows Forms and Web Document Image.)
C# Project and Library Preparation
Image Loading C# Methods
RasterEdge provides OpenImageFile methods for developers to load an image using Visual C# programming language. Please replace corresponding information, such as filepath, according to your imaging program scenario.
Please note that the commonly used image formats are all supported by this imaging library, such as png, gif, jpeg, tiff and bmp. This loading functionality is the basis for many imaging features such as image resizing, scaling, cropping, rotating, flipping, and converting, to name just a few.
public static REImage OpenImageFile(string filePath);
How to Load Image from File with C# Sample Codes
After the introduction for the setup, namespace and methods, here we provide the visual C# sample codes to load an image from your local file / disk by using this RasterEdge .NET Imaging SDK . Now please copy the C# demo coding to your program to open an image from your file. Make sure you have made necessary adjustments according to your file directory where the image is stored.
When the image is loaded, users can conduct a variety of image processing and manipulation actions. You can resize the loaded image with C# coding, rotate it within 360 degrees, add a barcode in the image, or decode the barcode in it, duplicate / flip the image, and convert the images to other image formats such as png, jpeg, gif, tiff and bmp.
More Imaging Viewing Guide!