DEV Community

Atir Tahir
Atir Tahir

Posted on • Originally published at blog.groupdocs.com

Manage contrast when converting a document to Grayscale Image in C#

The first and foremost question in your mind could be, is it about converting an RGB image to Grayscale only? No, you can convert any supported file format (including images) to black-and-white or gray monochrome image. The contrast ranges from black at the weakest intensity to white at the strongest.
See the below demonstration. We converted first page of a PDF file to Grayscale image. You can manage brightness, contrast or gamma of the resultant image as well.
Alt Text
This feature is quite helpful if you are going to do image processing. Because RGB image is represented by 3 channels and contains a lot of data/noise. Hence, more computational power is required to process such an image. On the other hand, Grayscale image makes this process comparatively easy.

Along with common conversion options, we’ll see the advanced properties that we can implement when converting a document to image using GroupDocs.Conversion for .NET.
Continue reading : http://bit.ly/3491JIK

Top comments (0)