src/ext-3rd/tinymce/plugins/images/connector/php/Image_Toolbox.class.php
function _hexToDecColor($hex)
    {
        $length = strlen($hex);
        $color['red'] = hexdec(substr($hex, $length - 6, 2));
        $color['green'] = hexdec(substr($hex, $length - 4, 2));
        $color['blue'] = hexdec(substr($hex, $length - 2, 2));
        return $color;
    }
function _hexToDecColor($hex)
    {
        $length = strlen($hex);
        $color['red'] = hexdec(substr($hex, $length - 6, 2));
        $color['green'] = hexdec(substr($hex, $length - 4, 2));
        $color['blue'] = hexdec(substr($hex, $length - 2, 2));
        return $color;
    }
function _hexToDecColor ( $ hex ) { $ length = strlen ( $ hex ) ; $ color [ 'red' ] = hexdec ( substr ( $ hex , $ length - 6 , 2 ) ) ; $ color [ 'green' ] = hexdec ( substr ( $ hex , $ length - 4 , 2 ) ) ; $ color [ 'blue' ] = hexdec ( substr ( $ hex , $ length - 2 , 2 ) ) ; return $ color ; }
Convert a color defined in hexvalues to corresponding dezimal values

@access private
@param string $hex color value in hexformat (e.g. '#FF0000')
@return array associative array with color values in dezimal format (fields: 'red', 'green', 'blue')
Convert a color defined in hexvalues to corresponding dezimal values