You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2009/09/07 18:56:13 UTC
DO NOT REPLY [Bug 47675] Wrong shadow color for Shape
https://issues.apache.org/bugzilla/show_bug.cgi?id=47675
Yegor Kozlov <ye...@dinom.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Yegor Kozlov <ye...@dinom.ru> 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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org