org.apache.poi.hssf.usermodel
public class HSSFPictureData extends java.lang.Object implements PictureData
| Modifier and Type | Field and Description |
|---|---|
static short |
FORMAT_MASK |
static short |
MSOBI_DIB |
static short |
MSOBI_EMF |
static short |
MSOBI_JPEG |
static short |
MSOBI_PICT |
static short |
MSOBI_PNG |
static short |
MSOBI_WMF |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
Gets the picture data.
|
int |
getFormat() |
java.lang.String |
suggestFileExtension()
Suggests a file extension for this image.
|
public static final short MSOBI_WMF
public static final short MSOBI_EMF
public static final short MSOBI_PICT
public static final short MSOBI_PNG
public static final short MSOBI_JPEG
public static final short MSOBI_DIB
public static final short FORMAT_MASK
public byte[] getData()
PictureDatagetData in interface PictureDatapublic int getFormat()
HSSFWorkbook.PICTURE_TYPE_DIB,
HSSFWorkbook.PICTURE_TYPE_WMF,
HSSFWorkbook.PICTURE_TYPE_EMF,
HSSFWorkbook.PICTURE_TYPE_PNG,
HSSFWorkbook.PICTURE_TYPE_JPEG,
HSSFWorkbook.PICTURE_TYPE_PICTpublic java.lang.String suggestFileExtension()
PictureDatasuggestFileExtension in interface PictureDatanullgetFormat()Copyright 2016 The Apache Software Foundation or its licensors, as applicable.