PdfImageFit enum
Namespace: PdfNetStack.Drawing
Assembly: PdfNetStack.dll
Package: PdfNetStack
How an image fills a box of another shape (the CSS object-fit values).
public enum PdfImageFitFields
Section titled “Fields”Fill = 0
Stretched to the box, its aspect ratio ignored.
Contain = 1
Scaled to fit inside the box, keeping its aspect ratio: the whole image shows.
Cover = 2
Scaled to cover the box, keeping its aspect ratio: what spills over is clipped.
None = 3
At its natural size, clipped to the box.
ScaleDown = 4
At its natural size, or as Contain when that is smaller.