59 lines
934 B
Java
59 lines
934 B
Java
package com.alibaba.excel.metadata;
|
|
|
|
import lombok.Data;
|
|
|
|
/**
|
|
* image
|
|
*
|
|
* @author Jiaju Zhuang
|
|
*/
|
|
@Data
|
|
public class ImageData extends ClientAnchorData {
|
|
|
|
/**
|
|
* image
|
|
*/
|
|
private byte[] image;
|
|
|
|
/**
|
|
* image type
|
|
*/
|
|
private ImageType imageType;
|
|
|
|
public enum ImageType {
|
|
/**
|
|
* Extended windows meta file
|
|
*/
|
|
PICTURE_TYPE_EMF(2),
|
|
/**
|
|
* Windows Meta File
|
|
*/
|
|
PICTURE_TYPE_WMF(3),
|
|
/**
|
|
* Mac PICT format
|
|
*/
|
|
PICTURE_TYPE_PICT(4),
|
|
/**
|
|
* JPEG format
|
|
*/
|
|
PICTURE_TYPE_JPEG(5),
|
|
/**
|
|
* PNG format
|
|
*/
|
|
PICTURE_TYPE_PNG(6),
|
|
/**
|
|
* Device independent bitmap
|
|
*/
|
|
PICTURE_TYPE_DIB(7),
|
|
|
|
;
|
|
|
|
public final int value;
|
|
|
|
ImageType(int value) {
|
|
this.value = value;
|
|
}
|
|
}
|
|
|
|
}
|