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/08/11 17:51:33 UTC
DO NOT REPLY [Bug 47675] New: Wrong shadow color for Shape
https://issues.apache.org/bugzilla/show_bug.cgi?id=47675
Summary: Wrong shadow color for Shape
Product: POI
Version: 3.5-dev
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: HSLF
AssignedTo: dev@poi.apache.org
ReportedBy: jie.han@163.com
--- Comment #0 from Jie Han <ji...@163.com> 2009-08-11 08:51:32 PDT ---
I use "shape.getEscherProperty(EscherProperties.SHADOWSTYLE__COLOR)" to get the
shadow color but the result seems wrong.
//////////////////////////////////////
v = shape.getEscherProperty(EscherProperties.SHADOWSTYLE__COLOR)";
Color color = new Color(v);
//////////////////////////////////////
and then print out the rgb value.
--
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
DO NOT REPLY [Bug 47675] Wrong shadow color for Shape
Posted by bu...@apache.org.
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
DO NOT REPLY [Bug 47675] Wrong shadow color for Shape
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47675
Jie Han <ji...@163.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jie.han@163.com
--
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