[]
Serializable, Comparable<ImageType>, ConstableUse this enum to indicate the format of image data when working with drawing-related APIs, such as adding a picture from a stream or exporting a shape as an image.
IShape shape = worksheet.getShapes().addShape(AutoShapeType.Rectangle, 10, 10, 80, 40);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
shape.toImage(stream, ImageType.PNG);
Enum.EnumDesc<E extends Enum<E>>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