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) |
color |
The desired background color. |
Devesprit.ImageProcessor
Example |
Copy Code |
---|---|
new ImageFactory().Load(@"My-Image-Path").BackgroundColor(Color.Red); |
Original
Result