[PHP-BUG] Req #61438 [NEW]: color_to_hex functionally

[email protected] ("bert at bhack dot net") Mon, 19 Mar 2012 12:13:08 -0400
Newsgroups php.gtk.dev
Message-ID <[email protected]>
From:             
Operating system: Ubuntu
PHP version:      Irrelevant
Package:          PHP-GTK related
Bug Type:         Feature/Change Request
Bug description:color_to_hex functionally

Description:
------------
There is no easy way to convert the rgb values from a GdkColor object to
normal 
hex or rgb. GdkColor uses seperate red, green and blue values ranging from
0 to 
65535.

Test script:
---------------
print_r($colorbutton->get_color());

[0] => GdkColor Object
        (
            [red] => 56815
            [green] => 7663
            [blue] => 7663
            [pixel] => 0
        )



-- 
Edit bug report at https://bugs.php.net/bug.php?id=61438&edit=1
-- 
Try a snapshot (PHP 5.4):            https://bugs.php.net/fix.php?id=61438&r=trysnapshot54
Try a snapshot (PHP 5.3):            https://bugs.php.net/fix.php?id=61438&r=trysnapshot53
Try a snapshot (trunk):              https://bugs.php.net/fix.php?id=61438&r=trysnapshottrunk
Fixed in SVN:                        https://bugs.php.net/fix.php?id=61438&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61438&r=needdocs
Fixed in release:                    https://bugs.php.net/fix.php?id=61438&r=alreadyfixed
Need backtrace:                      https://bugs.php.net/fix.php?id=61438&r=needtrace
Need Reproduce Script:               https://bugs.php.net/fix.php?id=61438&r=needscript
Try newer version:                   https://bugs.php.net/fix.php?id=61438&r=oldversion
Not developer issue:                 https://bugs.php.net/fix.php?id=61438&r=support
Expected behavior:                   https://bugs.php.net/fix.php?id=61438&r=notwrong
Not enough info:                     https://bugs.php.net/fix.php?id=61438&r=notenoughinfo
Submitted twice:                     https://bugs.php.net/fix.php?id=61438&r=submittedtwice
register_globals:                    https://bugs.php.net/fix.php?id=61438&r=globals
PHP 4 support discontinued:          https://bugs.php.net/fix.php?id=61438&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61438&r=dst
IIS Stability:                       https://bugs.php.net/fix.php?id=61438&r=isapi
Install GNU Sed:                     https://bugs.php.net/fix.php?id=61438&r=gnused
Floating point limitations:          https://bugs.php.net/fix.php?id=61438&r=float
No Zend Extensions:                  https://bugs.php.net/fix.php?id=61438&r=nozend
MySQL Configuration Error:           https://bugs.php.net/fix.php?id=61438&r=mysqlcfg