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

Colour to Black and white/ Sepia image conversion

Hi,

How can I convert a colour image to a high quality black and white or sepia image?
Hello.

If you want to convert your image to gray scale colors you should change image pixel format to gray scale:
bitmap.ColorManagement.ConvertToContinuous(Aurigma.GraphicsMill.ColorSpace.GrayScale, false, false);


Sepia image you can create by the following code snippet:
bitmap.ColorManagement.ConvertToContinuous(Aurigma.GraphicsMill.ColorSpace.Rgb, false, false);
bitmap.ColorAdjustment.Desaturate();
float [] colorBalance = {0.0F, 0.05F, 0.1F, 0.0F};
bitmap.ColorAdjustment.ChannelBalance(colorBalance);

Thank you.

Mike
This information is now obsolete with v6. What is the new correct method?

If it still uses the .ColorAdjustment.ChannelBalance() method, which now takes two parameters, can you just say what are the best parameters for sepia?

Thanks.
Hi,

I have replied you in the support case, that you created.
It would help other people if the outdated information were also posted here. No harm in doing that too, right?

Dear customers,

You can use the attached sample to sepia images with Graphics Mill 6.

Attachments