php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61438 color_to_hex functionally
Submitted: 2012-03-19 16:13 UTC Modified: 2017-10-24 23:13 UTC
From: bert at bhack dot net Assigned:
Status: Suspended Package: PHP-GTK related
PHP Version: Irrelevant OS: Ubuntu
Private report: No CVE-ID: None
 [2012-03-19 16:13 UTC] bert at bhack dot net
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
        )



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-24 23:13 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 23:13 UTC] kalle@php.net
I'm gonna suspend this report as the PHP GTK project activity seems halted, if the activity picks backup for the project then this report should be re-opened.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC