forked from fanruan/easyexcel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
939 B
59 lines
939 B
4 years ago
|
package com.alibaba.excel.metadata.data;
|
||
4 years ago
|
|
||
|
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;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|