Hi......I would to know if there is a way to extract a background color of a
slide? 
and.....if I try to draw a line on a Graphics2D with....

VectorLine---> Vector of a Line (Jakarta Object)
g2          ----> Graphics2D

Color color = VectorLine.elementAt(z).getLineColor();
if (color != null){ 
       g2.setColor(color);
       float width = (float)VectorLine.elementAt(z).getLineWidth();
       Stroke stroke = new BasicStroke(width);
       g2.setStroke(stroke);
       EscherSpRecord spRecord =
VectorLine.elementAt(z).getSpContainer().getChildById(EscherSpRecord.RECORD_ID);
        boolean flipped = (spRecord.getFlags() &
EscherSpRecord.FLAG_FLIPVERT) != 0;
        if (flipped)
                     g2.drawLine(anchor.x, anchor.y+anchor.height,
anchor.x+anchor.width, anchor.y);
                else
                     g2.drawLine(anchor.x, anchor.y, anchor.x+anchor.width,
anchor.y+anchor.height);
                }

But the color line is wrong...the only colors that matching are: red,blue...
the others are only black.......the RGB's jakarta is the same of the RGB's
Java?I need of a transformation????
-- 
View this message in context: 
http://www.nabble.com/Slide-BackgroundColor.......-tf3022194.html#a8394528
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to