Devesprit.ImageProcessor & Devesprit.ImageServer
BackgroundColor

Description:

Changes the background color of the current image. This functionality is useful for adding a background when resizing image formats without an alpha channel.

Method Declaration
Copy Code
public ImageFactory BackgroundColor(Color color)

Parameters:

color

The desired background color.

Assembly:

Devesprit.ImageProcessor

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").BackgroundColor(Color.Red);

Original

 

 

Result