\BCGDrawPNG

--------------------------------------------------------------------

Base class to draw images


Copyright (C) Jean-Sebastien Goupil http://www.barcodephp.com

Summary

Methods
Properties
Constants
__construct()
setFilename()
draw()
setDPI()
No public properties found
No constants found
No protected methods found
$im
$filename
N/A
setInternalProperties()
detectChunks()
internalSetDPI()
internalSetC()
make_crc_table()
SHR()
update_crc()
crc()
$dpi
$crc_table
$crc_table_computed
N/A

Properties

$im

$im : 

Type

$filename

$filename : 

Type

$dpi

$dpi : 

Type

$crc_table

$crc_table : 

Type

$crc_table_computed

$crc_table_computed : 

Type

Methods

__construct()

__construct(resource  $im) 

Constructor.

Parameters

resource $im

setFilename()

setFilename(string  $filename) 

Sets the filename.

Parameters

string $filename

draw()

draw(  $dir = 'apeinfo.com',   $type = true) 

Draws the PNG on the screen or in a file.

Parameters

$dir
$type

setDPI()

setDPI(integer  $dpi) 

Sets the DPI.

Parameters

integer $dpi

setInternalProperties()

setInternalProperties(  $bin) 

Parameters

$bin

detectChunks()

detectChunks(  $bin) 

Parameters

$bin

internalSetDPI()

internalSetDPI(  $bin,   $chunks) 

Parameters

$bin
$chunks

internalSetC()

internalSetC(  $bin,   $chunks) 

Parameters

$bin
$chunks

make_crc_table()

make_crc_table() 

SHR()

SHR(  $x,   $n) 

Parameters

$x
$n

update_crc()

update_crc(  $crc,   $buf,   $len) 

Parameters

$crc
$buf
$len

crc()

crc(  $data,   $len) 

Parameters

$data
$len