Skip to content

# PDFConvertImagesToGrayTransform

Namespace: O2S.Components.PDF4NET.Transforms

Defines a page transformation that converts all images on the page to gray.

    public class PDFConvertImagesToGrayTransform : PDFPageTransform

Inheritance Object → PDFPageTransform → PDFConvertImagesToGrayTransform

Remarks

The 1bpp B/W images and image masks are not changed.

## Constructors

### PDFConvertImagesToGrayTransform()

Initializes a new PDFConvertImagesToGrayTransform object.

    public PDFConvertImagesToGrayTransform()

## Properties

### Context

Gets the transform context.

    public PDFContentStreamContainer Context { get; internal set; }

Property Value

PDFContentStreamContainer
The content stream container on which the transformation is currently applied.

### EnableExtendedOperatorInformation

Gets or sets a flag indicating whether extended operator information should be extracted when a content stream operator is processed.

    public bool EnableExtendedOperatorInformation { get; set; }

Property Value

Boolean
True if extended operator information should be extracted.