This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Sepia Filter using Aurigma library

Hi,

I want to create two filter using Aurigma Graphics mill library. I can do black and white filter using

newBitmap.ColorManagement.Convert(PixelFormat.Format1bppIndexed)

But I did not get any filter for sepia.
Hi,

Please try the following code:
bitmap.ColorManagement.Convert(Aurigma.GraphicsMill.ColorSpace.Rgb, false, false);
bitmap.ColorAdjustment.Desaturate();
                
float[] addends = { 0.0F, 0.05F, 0.1F, 0.0F };
float[] multipliers = { 1.0F, 1.0F, 1.0F, 1.0F };
                
bitmap.ColorAdjustment.ChannelBalance(addends, multipliers);
Thanks Eugene Kosmin,

it is working correctly