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.

Parameters:

bgcolor

The desired color in the following formats:

  • Hex
  • RGB
  • ARGB
  • Color name

Assembly:

Devesprit.ImageServer

Example:

http://your-host/images/picture?bgcolor=800080

http://your-host/images/picture?bgcolor=128,0,128,255

http://your-host/images/picture?bgcolor=purple

Original

 

 

Result (http://your-host/images/picture?width=600&height=500&mode=boxpad&bgcolor=red)