Class PdfImageRef
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
ImageIdstringWidthintHeightintBitsPerComponentintColorSpaceNamestringHasAlphaboolImageDataReadOnlyMemory<byte>Filterstring
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
ColorSpaceName
public string ColorSpaceName { get; init; }
Property Value
Filter
public string? Filter { get; init; }
Property Value
HasAlpha
public bool HasAlpha { get; init; }
Property Value
Height
public int Height { get; init; }
Property Value
ImageData
public ReadOnlyMemory<byte> ImageData { get; init; }
Property Value
ImageId
public string ImageId { get; init; }
Property Value
Interpolate
public bool Interpolate { get; init; }
Property Value
Opacity
Constant alpha (ExtGState /ca) applied when the image is painted.
public double Opacity { get; init; }
Property Value
Source
public IPdfImageSource? Source { get; init; }
Property Value
Width
public int Width { get; init; }