Code: Select all
83B483B489B294AA97A49C999E8C9B8595818C7C8279777872776A7762775B775979577A567D5680578461866
B867D82847E867C887B8A7B8C7B8C7BFFFF.
Code: Select all
if ($sig != "")
{
$im = @ImageCreate (256, 256)
or die ("Cannot Initialize new GD image stream");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 0, 0, 0);
for( $i=0 ; $i<strlen($sig) ; )
{
if(substr($sig,$i,4) == "FFFF" || substr($sig,$i+4,4) == "FFFF")
$i += 4;
else
{
if(substr($sig,$i,2) != "FF")
$x1 = base_convert(substr($sig,$i,2),16,10);
if(substr($sig,$i+2,2) != "FF")
$y1 = base_convert(substr($sig,$i+2,2),16,10);
if(substr($sig,$i+4,2) != "FF")
$x2 = base_convert(substr($sig,$i+4,2),16,10);
if(substr($sig,$i+6,2) != "FF")
$y2 = base_convert(substr($sig,$i+6,2),16,10);
imageline ($im,$x1,$y1,$x2,$y2,$text_color);
$i+=4;
}
}
ImagePng ($im,"temp.png");
echo "<img src='temp.png'>";
}
Gary