• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/File/Image/Color.php
  • Класс: BitrixMainFileImageColor
  • Вызов: Color::toHex
public function toHex()
{
	return sprintf("#%02x%02x%02x", $this->getRed(), $this->getGreen(), $this->getBlue());
}