Enum ImageContentMode
- Namespace
- BitMiracle.Docotic.Pdf.Layout
- Assembly
- BitMiracle.Docotic.Pdf.Layout.dll
Specifies how to draw an image in a container.
public enum ImageContentMode
Fields
Fill = 3
Resize an image to available size without preserving an aspect ratio.
FitArea = 0
Fit an image into available size while preserving an aspect ratio.
FitHeight = 2
Use all available height while preserving an image aspect ratio.
FitWidth = 1
Use all available width while preserving an image aspect ratio.
Remarks
Image(Image, ImageContentMode) method accepts a parameter of this type. The content mode parameter affects how the method will transform the image and which part of the image will be visible inside the container.