How to C#: Imaging
Using Imaging SDK for C#.NET
Winforms Controls
Image Load
Image Access and Modify
Effect: Blending
Effect: Blending
  |  
Home ›› XImage.Raster ›› C# Raster: Blending Effects

How to C#: Blending Effects


Overview for Blending Effects



azure pdf conversion, vb.net barcode reader free, c# code to convert pdf to tiff, compress tiff image c#, c# docx to pdf, itextsharp add annotation to existing pdf c#.

Related .net document control helps:
asp.net sharepoint document viewer control: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net office viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net view excel in browser: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net view powerpoint: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
asp.net annotate pdf control: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net pdf viewer control free: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net view text file in browser: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET


Overview



By using the XImage.Raster SDK, you can get and modify the blending effects of image by assigning to processor. The related properties are as follows. vb.net read pdf into byte array, vb.net convert jpg to pdf, c# read pdf page, c# convert pdf to svg, convert tiff image to pdf c#, convert pdf to text vb.net, vb.net change pdf metadata.


Spread


Displace the image pixel randomly by the specified amount


Median


A filter will be applied to the image, the pixel is replaced with the median color in a circular neighborhood. The radius of the circle is under your control. asp.net open excel file on client, how to edit pdf file using itextsharp in asp.net, mvc display pdf from byte array, load pdf file asp.net c#, asp net show word document in browser, asp.net pdf preview, asp.net core image view.




Steps to Modify Blending Effects



Load an image with RasterImage object.


Create an image processor with ImageProcess object.


Call the SpreadImage 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.




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.




How to Modify Blending Effects



Sample Code (spread image):




RasterImage img = new RasterImage(@"input.tif");
// This code demonstrates how to create a new processor
ImageProcess processor = new ImageProcess(img);
//spread all pages
processor.SpreadImage(200);
//spread the second page
processor.SpreadImage(200, 1);
img.Save(@"output.tif">);




Sample Code (median image):




RasterImage img = new RasterImage(@"input.tif");
// This code demonstrates how to create a new processor
ImageProcess processor = new ImageProcess(img);
//median all pages
processor.MedianFilter(200);
//median the second page
processor.MedianFilter(200, 1);
img.Save(@"output.tif">);