https://issues.apache.org/bugzilla/show_bug.cgi?id=47675


Yegor Kozlov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #1 from Yegor Kozlov <[email protected]> 2009-09-07 09:56:11 PDT ---
Creating AWT Color from Escher properties is a bit more complicated. The
correct code is below.

int val = shape.getEscherProperty(EscherProperties.SHADOWSTYLE__COLOR)";
int opc = shape.getEscherProperty(EscherProperties.SHADOWSTYLE__OPACITY)";
int alpha =  opc == 0 ? 255 : ((opc >> 8) & 0xFF);

Color color = shape.getColor(rgb, alpha);

Yegor

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to