I am trying to set the background of slide in Slide Master using following
code below. But it didn't work out. It is not displaying the image I gave as
input from File. I don't know why, it is displaying some big red cross
across the slide instead of the picture set using Fill.
SlideShow ppt = new SlideShow();
SlideMaster master = ppt.getSlidesMasters()[0];
Fill fill = master.getBackground().getFill();
int idx = ppt.addPicture(new File("background.png"), Picture.PNG);
fill.setFillType(Fill.FILL_PICTURE);
fill.setPictureData(idx);
Please, let me know any solution to this problem. Thank you
--
View this message in context:
http://apache-poi.1045710.n5.nabble.com/Slide-Master-Background-HSLF-tp5029470p5029470.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]