[]
Serializable, Comparable<ImageType>, Constable使用此枚举可以在处理绘图相关 API 时指示图像数据的格式,例如从流添加图片或将形状导出为图像。
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