You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2016/01/16 19:07:09 UTC
[Bug 51085] Creation of slidemaster background results in a red
cross
https://bz.apache.org/bugzilla/show_bug.cgi?id=51085
Andreas Beeker <ki...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
Status|NEW |RESOLVED
--- Comment #1 from Andreas Beeker <ki...@apache.org> ---
This is not happening anymore - if unsure, please add your <layoutFile>.png.
This was my testcode:
@Test
public void bug51085() throws IOException {
File sample = HSLFTestDataSamples.getSampleFile("tomcat.png");
HSLFSlideShow ppt = new HSLFSlideShow();
HSLFSlideMaster sm = ppt.getSlideMasters().get(0);
HSLFFill fill = sm.getBackground().getFill();
HSLFPictureData pd = ppt.addPicture(sample, PictureData.PictureType.PNG);
fill.setFillType(HSLFFill.FILL_PICTURE);
fill.setPictureData(pd);
FileOutputStream fos = new FileOutputStream("bla.ppt");
ppt.createSlide();
ppt.write(fos);
fos.close();
}
--
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