You are here

function BARCODE::setHexColor in Barcode 6

1 call to BARCODE::setHexColor()
BARCODE::BARCODE in ./barcode.inc.php

File

./barcode.inc.php, line 80

Class

BARCODE

Code

function setHexColor($color, $bgcolor) {
  $this
    ->setColor(hexdec(substr($color, 1, 2)), hexdec(substr($color, 3, 2)), hexdec(substr($color, 5, 2)));
  $this
    ->setBGColor(hexdec(substr($bgcolor, 1, 2)), hexdec(substr($bgcolor, 3, 2)), hexdec(substr($bgcolor, 5, 2)));
}