Thanks… That was exactly what I was looking for! John Ruschmeyer EOIR Mission Command Division 23 Christopher Way Eatontown, NJ 07724 [email protected]<mailto:[email protected]> 732-759-6311 Office 732-995-2875 Cell www.EOIR.com<http://www.eoir.com/>
[cid:CDF3A723-4E6F-4C7B-A132-7C29CAEAB829] On Feb 21, 2015, at 6:48 AM, Andreas Beeker <[email protected]<mailto:[email protected]>> wrote: Hi John, this works for me: XMLSlideShow ss = new XMLSlideShow(); XSLFSlide slide = ss.createSlide(); XSLFAutoShape as = slide.createAutoShape(); as.setShapeType(XSLFShapeType.ELLIPSE); as.setAnchor(new Rectangle2D.Double(100,100,200,100)); as.setFillColor(Color.BLUE); CTShapeImpl obj = (CTShapeImpl)as.getXmlObject(); obj.getSpPr().getSolidFill().getSrgbClr().addNewAlpha().setVal(30000); FileOutputStream fos = new FileOutputStream("test.pptx"); ss.write(fos); fos.close(); We probably should add something to setFillColor() to read the alpha channel. Best wishes, Andi --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected]<mailto:[email protected]> For additional commands, e-mail: [email protected]<mailto:[email protected]>
