You are here

function _textimage_dec2hex in Textimage 7.2

Same name and namespace in other branches
  1. 5.2 textimage_admin.inc \_textimage_dec2hex()
  2. 6.2 textimage_admin.inc \_textimage_dec2hex()

Auxiliar function to convert from decimal to hex.

1 call to _textimage_dec2hex()
_textimage_font_name in ./textimage.admin.inc
Todo.

File

./textimage.admin.inc, line 831
Textimage admin page callback

Code

function _textimage_dec2hex($dec) {
  $hex = dechex($dec);
  return str_repeat("0", 2 - drupal_strlen($hex)) . drupal_strtoupper($hex);
}