Package com.ironsoftware.ironpdf.image
Enum ImageBehavior
- java.lang.Object
- 
- java.lang.Enum<ImageBehavior>
- 
- com.ironsoftware.ironpdf.image.ImageBehavior
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<ImageBehavior>
 
 public enum ImageBehavior extends Enum<ImageBehavior> Defines layout behavior relative to the page size when creating a PDF from images.
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description BOTTOM_LEFT_CORNER_OF_PAGEImage will be placed to the left bottom corner of the pageBOTTOM_RIGHT_CORNER_OF_PAGEImage will be placed to the right bottom corner of the pageCENTERED_ON_PAGEImage will be placed on center of the pageCROP_PAGEPage will be scaled to exactly match the original image dimensions.FIT_TO_PAGEImage will fit to the defined page size whilst maintaining aspect ratio.FIT_TO_PAGE_AND_MAINTAIN_ASPECT_RATIOImage will fit to the page and keep aspect ratioTOP_LEFT_CORNER_OF_PAGEImage will be placed to the left top corner of the pageTOP_RIGHT_CORNER_OF_PAGEImage will be placed to the right top corner of the page
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static ImageBehaviorvalueOf(String name)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 Detail- 
CENTERED_ON_PAGEpublic static final ImageBehavior CENTERED_ON_PAGE Image will be placed on center of the page
 - 
FIT_TO_PAGEpublic static final ImageBehavior FIT_TO_PAGE Image will fit to the defined page size whilst maintaining aspect ratio.
 - 
FIT_TO_PAGE_AND_MAINTAIN_ASPECT_RATIOpublic static final ImageBehavior FIT_TO_PAGE_AND_MAINTAIN_ASPECT_RATIO Image will fit to the page and keep aspect ratio
 - 
CROP_PAGEpublic static final ImageBehavior CROP_PAGE Page will be scaled to exactly match the original image dimensions.
 - 
TOP_LEFT_CORNER_OF_PAGEpublic static final ImageBehavior TOP_LEFT_CORNER_OF_PAGE Image will be placed to the left top corner of the page
 - 
BOTTOM_LEFT_CORNER_OF_PAGEpublic static final ImageBehavior BOTTOM_LEFT_CORNER_OF_PAGE Image will be placed to the left bottom corner of the page
 - 
TOP_RIGHT_CORNER_OF_PAGEpublic static final ImageBehavior TOP_RIGHT_CORNER_OF_PAGE Image will be placed to the right top corner of the page
 - 
BOTTOM_RIGHT_CORNER_OF_PAGEpublic static final ImageBehavior BOTTOM_RIGHT_CORNER_OF_PAGE Image will be placed to the right bottom corner of the page
 
- 
 - 
Method Detail- 
valuespublic static ImageBehavior[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImageBehavior c : ImageBehavior.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static ImageBehavior valueOf(String name) 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 name
- NullPointerException- if the argument is null
 
 
- 
 
-