For the lines.....the stdout is....

ColorLine 0 java.awt.Color[r=1,g=0,b=0]             (Black)       [Match] 
ColorLine 1 java.awt.Color[r=2,g=0,b=0]             (Red)         [Match]
ColorLine 2 java.awt.Color[r=7,g=0,b=0]             (Grey)        [No-Match] 
ColorLine 3 java.awt.Color[r=6,g=0,b=0]             (Sky-Blue)   [No-Match]
ColorLine 4 java.awt.Color[r=5,g=0,b=0]             (Blue)         
[No-Match]
ColorLine 5 java.awt.Color[r=4,g=0,b=0]             (Green)       
[No-Match]

And the code is the same.....

for(int z=0;z<VectorLine.size();z++){      //Linee
                java.awt.Rectangle anchor = VectorLine.elementAt(z).getAnchor();
                Color color = VectorLine.elementAt(z).getLineColor();
                System.out.println("ColorLine "+z+"
"+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);
                }
           }




Yegor Kozlov wrote:
> 
>>>Hi......I would to know if there is a way to extract a background color
of a
>>>slide?
> 
> Use the Fill object to get slide background:
> 
> Fill fill = slide.getBackground().getFill();
> Color rgb = fill.getBackgroundColor();
> 
>>>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????
> 
> Line.getLineColor should return the correct RGB value. Print RGB
> components to stdout and see what's wrong.
> 
> If indeed only a few colors match, then create an issue in bugzilla and
> attach a
> sample ppt.
> 
> Yegor
> 
> 
> ---------------------------------------------------------------------
> 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/
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Slide-BackgroundColor.......-tf3022194.html#a8434759
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