CORE POS - IS4C
The CORE POS front end
Public Member Functions | Public Attributes | List of all members
COREPOS\pos\lib\Bitmap Class Reference

Public Member Functions

 load ($filename, $filedata=null)
 
 __construct ($width=1, $height=1, $bpp=1, $dpi=72)
 
 save ($filename)
 
 getWidth ()
 
 getHeight ()
 
 drawLine ($pt1, $pt2, $val)
 
 getRawData ()
 
 barGraph ($percent, $width=200, $height=40)
 

Public Attributes

 $DIB1
 
 $DIB2
 
 $DIB3
 
 $DIB4
 
 $DIB5
 
 $error
 
 $magic
 
 $dibVersion
 
 $width
 
 $height
 
 $bpp
 
 $hppm
 
 $vppm
 
 $palSize
 
 $palSizeImp
 
 $palette
 
 $image
 
 $rowBytes
 

Member Function Documentation

COREPOS\pos\lib\Bitmap::barGraph (   $percent,
  $width = 200,
  $height = 40 
)

Generate a bar graph bitmap

Parameters
$percent(0.05 and 5 both represent 5%)
$widthdefault 200
$heightdefault 40
Returns
Bitmap object
COREPOS\pos\lib\Bitmap::load (   $filename,
  $filedata = null 
)

modification by Andy 09Aug13 I think this makes more sense and it's incorrect to assume all zero bytes at the end of the image are padding


The documentation for this class was generated from the following file: