Package com.ironsoftware.ironpdf.image
Enum ImageBehavior
- All Implemented Interfaces:
Serializable
,Comparable<ImageBehavior>
,java.lang.constant.Constable
Defines layout behavior relative to the page size when creating a PDF from images.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionImage will be placed to the left bottom corner of the pageImage will be placed to the right bottom corner of the pageImage will be placed on center of the pagePage will be scaled to exactly match the original image dimensions.Image will fit to the defined page size whilst maintaining aspect ratio.Image will fit to the page and keep aspect ratioImage will be placed to the left top corner of the pageImage will be placed to the right top corner of the page -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageBehavior
Returns the enum constant of this type with the specified name.static ImageBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CENTERED_ON_PAGE
Image will be placed on center of the page -
FIT_TO_PAGE
Image will fit to the defined page size whilst maintaining aspect ratio. -
FIT_TO_PAGE_AND_MAINTAIN_ASPECT_RATIO
Image will fit to the page and keep aspect ratio -
CROP_PAGE
Page will be scaled to exactly match the original image dimensions. -
TOP_LEFT_CORNER_OF_PAGE
Image will be placed to the left top corner of the page -
BOTTOM_LEFT_CORNER_OF_PAGE
Image will be placed to the left bottom corner of the page -
TOP_RIGHT_CORNER_OF_PAGE
Image will be placed to the right top corner of the page -
BOTTOM_RIGHT_CORNER_OF_PAGE
Image will be placed to the right bottom corner of the page
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-