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 |
Constructor and Description |
---|
HSSFPictureData(EscherBSERecord bse) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Constructs a picture object.
|
int |
getFormat() |
java.lang.String |
getMimeType()
Returns the mime type for the image
|
int |
getRelationCounter() |
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 HSSFPictureData(EscherBSERecord bse)
public byte[] getData()
getData
in interface PictureData
blip
- the underlying blip record containing the bitmap data.public int getFormat()
Workbook.PICTURE_TYPE_DIB
,
Workbook.PICTURE_TYPE_WMF
,
Workbook.PICTURE_TYPE_EMF
,
Workbook.PICTURE_TYPE_PNG
,
Workbook.PICTURE_TYPE_JPEG
,
Workbook.PICTURE_TYPE_PICT
public java.lang.String suggestFileExtension()
PictureData
suggestFileExtension
in interface PictureData
null
getFormat()
public java.lang.String getMimeType()
getMimeType
in interface PictureData
public int getRelationCounter()
getRelationCounter
in interface PictureData
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.