PdfImageElement Class

An image a page paints: where, its size in pixels, and a digest of its data.

public sealed class PdfImageElement : IEquatable<PdfImageElement>
Implements

Constructors

NameDescription
PdfImageElement(PdfRectangle, int, int, string)An image a page paints: where, its size in pixels, and a digest of its data.

PdfImageElement(PdfRectangle, int, int, string)

PdfImageElement.cs

An image a page paints: where, its size in pixels, and a digest of its data.

public PdfImageElement(PdfRectangle Bounds, int Width, int Height, string Digest)

Parameters

Bounds PdfRectangle
The bounding box of the image on the page, in default user space.
Width int
The width of the image, in pixels.
Height int
The height of the image, in pixels.
Digest string
The SHA-256 digest of the encoded data of the image, in hexadecimal.

Properties

NameDescription
BoundsThe bounding box of the image on the page, in default user space.
DigestThe SHA-256 digest of the encoded data of the image, in hexadecimal.
HeightThe height of the image, in pixels.
WidthThe width of the image, in pixels.

The bounding box of the image on the page, in default user space.

public PdfRectangle Bounds { get; init; }

Property value

PdfRectangle

The SHA-256 digest of the encoded data of the image, in hexadecimal.

public string Digest { get; init; }

Property value

string

The height of the image, in pixels.

public int Height { get; init; }

Property value

int

The width of the image, in pixels.

public int Width { get; init; }

Property value

int

Methods

NameDescription
Deconstruct(PdfRectangle, int, int, string)
Equals(PdfImageElement?)
Equals(object?)
GetHashCode()
ToString()Returns a string that represents the current object.

Deconstruct(PdfRectangle, int, int, string)

public void Deconstruct(out PdfRectangle Bounds, out int Width, out int Height, out string Digest)

Parameters

Bounds PdfRectangle
Width int
Height int
Digest string

No documentation is available.

Equals overloads

Equals(PdfImageElement?)

public bool Equals(PdfImageElement? other)
Parameters
other PdfImageElement?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.

Operators

NameDescription
operator ==(PdfImageElement?, PdfImageElement?)
operator !=(PdfImageElement?, PdfImageElement?)

operator ==(PdfImageElement?, PdfImageElement?)

public static bool operator ==(PdfImageElement? left, PdfImageElement? right)

Parameters

left PdfImageElement?
right PdfImageElement?

Returns

bool

No documentation is available.

operator !=(PdfImageElement?, PdfImageElement?)

public static bool operator !=(PdfImageElement? left, PdfImageElement? right)

Parameters

left PdfImageElement?
right PdfImageElement?

Returns

bool

No documentation is available.