Table of Contents

Method SetGrayscale

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

SetGrayscale()

Sets the options to produce grayscale raster bytes.

public UncompressedRasterOptions SetGrayscale()

Returns

UncompressedRasterOptions

The instance used to call the method.

Remarks

The raster bytes will use Grayscale color space. Depending on the value of the BackgroundColor property, the bytes can also contain an alpha channel.

Depending on the presence of an alpha channel, the bytes are either in Grayscale or in Grayscale + Alpha format.

The Convert PDF to image in C# and VB.NET article shows how to save PDF pages as images.