protected function Basic::dec2hex in Image Effects 8
Convert a dec to a hex.
Parameters
int $dec: An integer number.
Return value
string the number represented as hex
1 call to Basic::dec2hex()
- Basic::getData in src/
Plugin/ image_effects/ FontSelector/ Basic.php - Return the font information.
File
- src/
Plugin/ image_effects/ FontSelector/ Basic.php, line 157
Class
- Basic
- Basic font selector plugin.
Namespace
Drupal\image_effects\Plugin\image_effects\FontSelectorCode
protected function dec2hex($dec) {
$hex = dechex($dec);
return str_repeat("0", 2 - Unicode::strlen($hex)) . Unicode::strtoupper($hex);
}