How to C#: Imaging
Using Imaging SDK for C#.NET
Winforms Controls
Image Load
Image Access and Modify
Convert to ICO
Convert to ICO
Home ›› XImage.Raster ›› C# Raster: Convert to ICO

C# Raster - Convert Image to ICO in C#.NET

Online C# Guide for Converting Image to ICO in .NET Application


ICO image is a format that supports multi frame, which is usually used as icon in applications. It can adapt to different icon size, different pixels and resolutions.

Related .net document control helps: sharepoint document viewer free: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint display tiff images: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control edit pdf page: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C# pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm... document viewer free: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS... annotate pdf control: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C# pdf viewer control: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET

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;




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.

Convert RasterImage to ICO

Sample Code (convert single frame image to ico):

ConvertHandler.Convert("input.jpeg", @"output.ico");

Sample Code (convert multi-frame image to ico):

RasterImage img = new RasterImage("input.tiff");