Table of Contents

Class PdfImageRef

Namespace
PdfEngine.Vector
Assembly
PdfEngine.Abstractions.dll

Reference to an embedded image or image XObject.

public sealed record PdfImageRef : IEquatable<PdfImageRef>
Inheritance
PdfImageRef
Implements
Inherited Members

Remarks

Pixels are produced lazily by Source so a display list does not pin decoded bitmaps (08_PERFORMANCE_MEMORY_BUDGETS: decoded images are separately budgeted). ImageData is retained for builders/tests that hand over raw RGB24.

Constructors

PdfImageRef(string, int, int, int, string, bool, ReadOnlyMemory<byte>, string?)

Reference to an embedded image or image XObject.

public PdfImageRef(string ImageId, int Width, int Height, int BitsPerComponent, string ColorSpaceName, bool HasAlpha, ReadOnlyMemory<byte> ImageData, string? Filter = null)

Parameters

ImageId string
Width int
Height int
BitsPerComponent int
ColorSpaceName string
HasAlpha bool
ImageData ReadOnlyMemory<byte>
Filter string

Remarks

Pixels are produced lazily by Source so a display list does not pin decoded bitmaps (08_PERFORMANCE_MEMORY_BUDGETS: decoded images are separately budgeted). ImageData is retained for builders/tests that hand over raw RGB24.

Properties

BitsPerComponent

public int BitsPerComponent { get; init; }

Property Value

int

ColorSpaceName

public string ColorSpaceName { get; init; }

Property Value

string

Filter

public string? Filter { get; init; }

Property Value

string

HasAlpha

public bool HasAlpha { get; init; }

Property Value

bool

Height

public int Height { get; init; }

Property Value

int

ImageData

public ReadOnlyMemory<byte> ImageData { get; init; }

Property Value

ReadOnlyMemory<byte>

ImageId

public string ImageId { get; init; }

Property Value

string

Interpolate

public bool Interpolate { get; init; }

Property Value

bool

Opacity

Constant alpha (ExtGState /ca) applied when the image is painted.

public double Opacity { get; init; }

Property Value

double

Source

public IPdfImageSource? Source { get; init; }

Property Value

IPdfImageSource

Width

public int Width { get; init; }

Property Value

int