How to C#: Imaging
Using Imaging SDK for C#.NET
Winforms Controls
Image Load
Image Access and Modify
Install, Deploy and Distribution
  |  
Home ›› XImage.Raster ›› C# Raster: Install, Deploy and Distribute

How to C#: Install, Deploy and Distribute XImage.Raster


Online C# Guide for XImage.Raster Installation, Deployment and Distribution




There are two parts on this page, including system requirements for using XImage.Raster, and how to install XImage.Raster into visual studio C# .NET Applications.




System Requirements



Windows XP SP3 or later


Microsoft .NET Framework 2.0 or later




Install XImage.Raster in C# Project



Add necessary references to your C#.NET project. Right-click the project and select "Add Reference..." to locate and add the following DLLs as project references;


  RasterEdge.Imaging.Basic.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


Use corresponding namespaces;


  using RasterEdge.XImage.Raster;


Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:

       

       If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.

       

       If using x86, the platform target should be x86.


Add the following C# demo code to your project (bmp to png conversion demo).




// Convert Bmp file to Png image.
RasterImage img = new RasterImage(@"input.bmp");
img.Save(@"output.png");