Packageedu.stanford.covertlab.graphics.printer
Classpublic class Printer

Creates flash print job from canvas containing Degrafa surfaces.

See also

com.degrafa.Surface
flash.printing.PrintJob


Public Methods
 MethodDefined by
  
print(image:UIComponent, bounds:Rectangle = null):void
[static] BUG: node labels print with white background text in vector print mode; this is not a problem in bitmap printing mode; perhaps we want to build a sprite specifically for printing (and png, jpeg rendering) which doesn't contain degrafa raster text and will display at higher quality in vector mode; additionally we can't use degrafa GraphicText because apparently it can't be created programmatically with actionscript, only declaratively in MXML.
Printer
Method detail
print()method
public static function print(image:UIComponent, bounds:Rectangle = null):void

BUG: node labels print with white background text in vector print mode; this is not a problem in bitmap printing mode; perhaps we want to build a sprite specifically for printing (and png, jpeg rendering) which doesn't contain degrafa raster text and will display at higher quality in vector mode; additionally we can't use degrafa GraphicText because apparently it can't be created programmatically with actionscript, only declaratively in MXML. BUG: background surface sprite not scaling properly (printScale doesn't have desired effect) BUG: printing not centered on page

Parameters
image:UIComponent
 
bounds:Rectangle (default = null)