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 51085] New: Creation of slidemaster background results in a red cross
Date Tue, 19 Apr 2011 12:00:21 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51085

           Summary: Creation of slidemaster background results in a red
                    cross
           Product: POI
           Version: 3.7
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSLF
        AssignedTo: dev@poi.apache.org
        ReportedBy: tobias.meissner@gmail.com


When using the following lines of code (worked in version 3.0.2 ), the
powerpoint slide is created, but instead of a proper background a red cross
appears.

The used layoutfile is an existing PNG file, which definitely worked in older
versions.

            SlideShow ppt = new SlideShow()
            SlideMaster master = ppt.getSlidesMasters()[0];
            Fill fill = master.getBackground().getFill();
            int idx = ppt.addPicture(layoutFile, Picture.PNG);
            fill.setFillType(Fill.FILL_PICTURE);
            fill.setPictureData(idx);
...

-- 
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