PdfImageElement Class

Represents an image element that can be rendered into a PDF document. Supports positioning, scaling and alignment

Definition

Namespace: HiQPdf.Chromium
Assembly: HiQPdf.Chromium (in HiQPdf.Chromium.dll) Version: 17.5.0
C#
public class PdfImageElement
Inheritance
Object    PdfImageElement

Constructors

PdfImageElement(Byte) Creates a new image element from a byte array
PdfImageElement(String) Creates a new image element from a file path

Properties

EnlargeToFit If true, the image will be enlarged to fit the specified dimensions if needed
Height The target height for the image. If zero, original height is used unless scaling rules apply
HorizontalAlign Specifies the horizontal alignment of the image on the page. If not None, takes precedence over X
ImageBytes The image content as a byte array. Optional if ImagePath is used
ImagePath The file path to the image. Optional if ImageBytes is used
ScaleDownToFit If true, the image will be scaled down to fit the specified dimensions if needed
VerticalAlign Specifies the vertical alignment of the image on the page. If not None, takes precedence over Y
Width The target width for the image. If zero, original width is used unless scaling rules apply
X The horizontal position from the left margin (ignored if HorizontalAlign is set)
Y The vertical position from the top margin (ignored if VerticalAlign is set)

Methods

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

See Also