Enum ObjectFit
- Namespace
- iText.Layout.Properties
- Assembly
- itext.layout.dll
A specialized enum holding the possible values for an object-fit property which define the way of fitting the image into the content box with different size.
public enum ObjectFit
Fields
CONTAIN = 1
If object-fit set to CONTAIN, image will be scaled keeping its aspect ratio to fit in the content box.
COVER = 2
If object-fit set to COVER, image will be scaled keeping its aspect ratio to cover the content box.
FILL = 0
If object-fit set to FILL, image will be sized to fill the element's content box.
NONE = 4
If object-fit set to NONE, image will not be scaled.
SCALE_DOWN = 3
If object-fit set to SCALE_DOWN, image will be scaled keeping its aspect ratio to fit in the content box but scaling coefficient cannot be greater than 1.