Bug 46320 - HSSFPictureData is missing a function int getFormat()
Summary: HSSFPictureData is missing a function int getFormat()
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.2-FINAL
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-02 02:01 UTC by Mathias Bosch
Modified: 2008-12-30 10:52 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Bosch 2008-12-02 02:01:19 UTC
HSSFPictureData is missing a function int getFormat()

This should return the 
    public static final short MSOBI_WMF   = 0x2160;
    public static final short MSOBI_EMF   = 0x3D40;
    public static final short MSOBI_PICT  = 0x5420;
    public static final short MSOBI_PNG   = 0x6E00;
    public static final short MSOBI_JPEG  = 0x46A0;
    public static final short MSOBI_DIB   = 0x7A80;
constant values.

This is required to copy an Image to another HSSFWorkbook.
The function to create a Picture there requires the format as input.
This is an enchantment request because the Format may be retrieved by looking at the suggestFileExtension() return value.


public int addPicture(byte[] pictureData, int format)
Comment 1 Yegor Kozlov 2008-12-30 10:52:39 UTC
Added in r730213

Yegor