CORE POS - IS4C
The CORE POS front end
Public Member Functions | List of all members
SigCapturePage Class Reference
Inheritance diagram for SigCapturePage:
BasicPage

Public Member Functions

 head_content ()
 
 preprocess ()
 
 body_content ()
 
- Public Member Functions inherited from BasicPage
 __construct ()
 
 head_content ()
 
 body_content ()
 
 preprocess ()
 
 print_page ()
 
 add_onload_command ($str)
 
 hide_input ($bool)
 
 input_header ($action="")
 
 noinput_header ()
 
 scale_box ()
 
 scanner_scale_polling ($include_scans=true)
 
 footer ()
 
 change_page ($url)
 
 default_parsewrapper_js ($input="reginput", $form="formlocal")
 
 noscan_parsewrapper_js ()
 

Additional Inherited Members

- Protected Attributes inherited from BasicPage
 $onload_commands
 
 $page_url
 
 $body_class ='mainBGimage'
 
 $mask_input = False
 

Member Function Documentation

SigCapturePage::preprocess ( )

Idea: convert image to PNG if GD functions are available. It would reduce storage size but also make printing the image more complicated since it would need to be converted back to a bitmap. Undecided whether to use this. Maybe reformatting happens server-side for long term storage.

Update: does not work with GD. That extension does not understand bitmaps. Same idea may work with a different library like ImageMagick. if (function_exists('imagecreatefromstring')) { $image = imagecreatefromstring($bmp); if ($image !== false) { ob_start(); $success = imagepng($image); $png_content = ob_get_clean(); if ($success) { $format = 'PNG'; $img_content = $png_content; } } }


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