Visual Basic
C#
Managed Extensions for C++
C++/CLI
| Member | Value | Description |
|---|---|---|
| GravityBottom | 64 | Align the bottom edge of the image with the bottom edge of the destination rectangle. |
| GravityLeft | 8 | Align the top edge of the image with the top edge of the destination rectangle. |
| GravityRight | 32 | Align the right edge of the image with the right edge of the destination rectangle. |
| GravityTop | 16 | Align the left edge of the image with the left edge of the destination rectangle. |
| Grow | 4 | Grow the image, if necessary, to fit within the destination rectangle. |
| None | 0 | The default image fit setting. |
| Shrink | 2 | Shrink the image, if necessary, to fit within the destination rectangle. |
| Stretch | 1 | Stretch the image to completely fill the destination rectangle without retaining the aspect ratio of the source image. |
These options are used by the AddImage methods within the Document class to define the fit of the image file to add.
System.Object
System.ValueType
System.Enum
Accusoft.PdfXpressSdk.ImageFitSettings