htdocs/modules/system/class/thumbs/phpthumb.functions.php 1 location
|
@@ 215-222 (lines=8) @@
|
| 212 |
|
return array($newwidth, $newheight); |
| 213 |
|
} |
| 214 |
|
|
| 215 |
|
static function HexCharDisplay($string) { |
| 216 |
|
$len = strlen($string); |
| 217 |
|
$output = ''; |
| 218 |
|
for ($i = 0; $i < $len; $i++) { |
| 219 |
|
$output .= ' 0x'.str_pad(dechex(ord($string{$i})), 2, '0', STR_PAD_LEFT); |
| 220 |
|
} |
| 221 |
|
return $output; |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
|
| 225 |
|
static function IsHexColor($HexColorString) { |
htdocs/modules/system/class/thumbs/phpthumb.bmp.php 1 location
|
@@ 826-833 (lines=8) @@
|
| 823 |
|
return $this->LittleEndian2Int(strrev($byteword)); |
| 824 |
|
} |
| 825 |
|
|
| 826 |
|
function BigEndian2Bin($byteword) { |
| 827 |
|
$binvalue = ''; |
| 828 |
|
$bytewordlen = strlen($byteword); |
| 829 |
|
for ($i = 0; $i < $bytewordlen; $i++) { |
| 830 |
|
$binvalue .= str_pad(decbin(ord($byteword{$i})), 8, '0', STR_PAD_LEFT); |
| 831 |
|
} |
| 832 |
|
return $binvalue; |
| 833 |
|
} |
| 834 |
|
|
| 835 |
|
function FixedPoint2_30($rawdata) { |
| 836 |
|
$binarystring = $this->BigEndian2Bin($rawdata); |