I want to print an image from a webcam without showing a printer dialogue and the image should fit the page. (Using AIR and Flex)
There are two options: use FlexPrintJob
var printjob:FlexPrintJob = new FlexPrintJob();
printjob.start();
printjob.addObject(image as IUIComponent,FlexPrintJobScaleType.SHOW_ALL);
printjob.send();
But: this will show the printer dialogue.
use PrintJob
var printjob:PrintJob = new PrintJob();
printjob.start2();
printjob.addPage(imageSprite);
printjob.send();
But: this won't scale the image to fit the page.
Any ideas how to achieve both?
Currently I think it's only possible to use the PrintJob and scale the image to fit the page by myself.