6.0.0-beta1
8/7/25

[#1716] Enhancement for allocateColor() to support rgb() and hex values
Summary Enhancement for allocateColor() to support rgb() and hex values
Queue Horde Framework Packages
Type Enhancement
State Rejected
Priority 1. Low
Owners
Requester thomas (at) gelf (dot) net
Created 04/07/2005 (7427 days ago)
Due
Updated 10/23/2005 (7228 days ago)
Assigned
Resolved 10/23/2005 (7228 days ago)
Milestone
Patch No

History
10/23/2005 01:05:41 PM Jan Schneider Comment #3
State ⇒ Rejected
Reply to this comment
No feedback.
04/08/2005 03:41:48 AM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
First, please upload patches - unified diffs - not whole codeblocks. 
It may not seem like much but it's much easier to work with. Second, 
looking at this code, it'd be a lot easier and cleaner, and portable 
across drivers, to modify getRGB() to handle the various kinds of 
colors, not allocateColor(). In any case a patch that doesn't work 
across all backends will most likely not be committed.
04/07/2005 09:05:08 PM thomas (at) gelf (dot) net Comment #1
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Enhancement for allocateColor() to support rgb() and hex values
Queue ⇒ Horde Framework Packages
New Attachment: allocateColor.php Download
Reply to this comment
allocateColor() accepts only color names - I would like to write 
Horde_Graph_Pie3d (and maybe others) and need support for Hex values 
also.



Attached is the whole function allocateColor() for 
lib/Horde/Image/gd.php, not a patch.



Same function will probably also work for lib/Horde/Image/swf.php



Yours sincerly,

Thomas Gelf


Saved Queries