Skip to content

# PDFBeginImageDataOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the ID (begin inline image data) content stream operator.

    public class PDFBeginImageDataOperator : PDFContentStreamOperator

Inheritance Object → PDFContentStreamOperator → PDFBeginImageDataOperator

## Constructors

### PDFBeginImageDataOperator()

Initializes a new PDFBeginImageDataOperator object.

    public PDFBeginImageDataOperator()

### PDFBeginImageDataOperator(PDFCosDictionary, Byte[])

Initializes a new PDFBeginImageDataOperator object.

    public PDFBeginImageDataOperator(PDFCosDictionary imageDictionary, Byte[] imageData)

Parameters

`imageDictionary` PDFCosDictionary
The image ID in the /Resources dictionary.

`imageData` Byte[]
The raw image data.

## Properties

### Context

Gets the content stream container from which the operator is extracted.

    public PDFContentStreamContainer Context { get; internal set; }

Property Value

PDFContentStreamContainer
A content stream container object, a PDFPage or a PDFFormXObject.

### ImageData

Gets or sets the raw image data.

    public Byte[] ImageData { get; set; }

Property Value

Byte[]
The raw image data as it appears in the page content.

### ImageDictionary

Gets or sets the image dictionary.

    public PDFCosDictionary ImageDictionary { get; set; }

Property Value

PDFCosDictionary
The inline image dictionary.

### ImageVisualObject

Gets the visual image painted by this operator.

    public PDFImageVisualObject ImageVisualObject { get; }

Property Value

PDFImageVisualObject
A PDFImageVisualObject that describes the image painted by this operator.

Remarks

This property is set only when the PDFPageTransform.EnableExtendedOperatorInformation property is set to true on the object that processes this operator.

### OpCode

Gets the operator code.

    public string OpCode { get; }

Property Value

String
The operator code as it is written in the content stream.

### OriginalColorSpace

Gets or sets the original colorspace.

    public PDFCosObject OriginalColorSpace { get; set; }

Property Value

PDFCosObject
The original colorspace.

Remarks

Used for testing if the image colorspace has been changed by user.

### OriginalColorSpaceID

Gets or sets the original colorspace ID.

    public PDFCosName OriginalColorSpaceID { get; set; }

Property Value

PDFCosName
The original colorspace id.

Remarks

If the image uses a colorspace form /Resources/ColorSpace then the /Name reference is replaced by the actual colorspace object. If the colorspace object includes indirect references then the embedded image will not be saved correctly

### Type

Gets or sets the operator type.

    public PDFContentStreamOperatorType Type { get; set; }

Property Value

PDFContentStreamOperatorType
The type of this operator.