Property | Type | Description | |
---|---|---|---|
$encoded | string | The ASCII hexadecimal encoded image data. | |
$height | integer | The image height in pixels. | |
$image | resource | The GD image resource. | |
$width | integer | The image width in pixels. |
Method | Description | |
---|---|---|
__construct ( string $data ) | Create an instance. | |
__destruct ( ) | Destroy an instance. | |
height ( ) : integer | ||
toAscii ( ) : string | ||
width ( ) : integer |
Method | Description | |
---|---|---|
compress ( string $row, string $lastRow ) : string | Compress a row of ASCII hexadecimal data. | |
compressRepeatingCharacters ( string $row ) : string | Compress characters which repeat. | |
compressTrailingZerosOrOnes ( string $row ) : string | Replace trailing zeros or ones with a comma (,) or exclamation (!) respectively. | |
create ( $data ) : resource | Create a new GD image from the supplied string. | |
encode ( ) : string | Encode the image in ASCII hexadecimal by looping over every pixel. |
protected compressRepeatingCharacters ( string $row ) : string | ||
$row | string | |
return | string |
protected compressTrailingZerosOrOnes ( string $row ) : string | ||
$row | string | |
return | string |
protected create ( $data ) : resource | ||
$data | ||
return | resource |
protected string $encoded | ||
return | string |