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]
For additional commands, e-mail: [email protected]

Reply via email to