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

How to C#: Modify Alpha Channel

Overview for How to Modify Alpha Channel


By using the XImage.Raster SDK, you can add alpha channel to 24bpp image and convert it to 32bpp image. Conversely, you can remove 32bpp image's depth channel and convert it to 24bpp image. c# pdf split merge, c# split pdf, c# print to pdf, how to read pdf file in c#, extract images from pdf file c# itextsharp, c# example.

Related .net document control helps: view powerpoint: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET mvc pdf editor control: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC document viewer example: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS... pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents edit pdf page control: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C# edit pdf text control: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...

Steps to Modify Alpha Channel

Load an image with RasterImage object.

Create an image processor with ImageProcess object.

Call the AddAlphaChannel method of ImageProcess object to complete the task flopping image.

Save the modified image to an image file on the disk.

In order to acheive the work, please refer to the following steps. c# populate pdf form fields, itextsharp read pdf line by line, code to merge pdf files, c# change pdf title, edit pdf, c# itextsharp add text to existing pdf, itextsharp convert pdf to text.

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. mvc open word document in browser, pdf editor in asp net mvc, tif viewer, asp net replace text from pdf javascript, display pdf in page, preview pdf in mvc, asp. net mvc pdf viewer.

Modify Alpha Channel

Sample Code (modify alpha channel):

RasterImage img = new RasterImage(@"F:\input.png");
ImageProcess process = new ImageProcess(img);
//add alpha channel to 24bpp image.