poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46320] New: HSSFPictureData is missing a function int getFormat()
Date Tue, 02 Dec 2008 10:01:19 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46320

           Summary: HSSFPictureData is missing a function int getFormat()
           Product: POI
           Version: 3.2-FINAL
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: mbo@aucotec.com


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)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message