[]
Serializable, Comparable<ImageLayout>, ConstableUse this enum with IBackgroundPicture.setBackgroundImageLayout(ImageLayout) to control whether the image keeps its aspect ratio, stretches to fill the bounds, fills with clipping, centers within the destination rectangle, or tiles across it.
IBackgroundPicture picture = null;
try {
String imagePath = java.nio.file.Paths.get("Users", "DefaultApps", "Documents", "logo.png").toString();
picture = worksheet.getBackgroundPictures().addPicture(imagePath, 10, 10, 120, 80);
picture.setBackgroundImageLayout(ImageLayout.ZoomToFill);
} catch (Exception e) {
throw new IllegalStateException("Unable to add sample background picture from file", e);
}
Enum.EnumDesc<E extends Enum<E>>static ImageLayoutstatic ImageLayout[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is null