Printing images in Flex

Posted by TERACytE on Stack Overflow See other posts from Stack Overflow or by TERACytE
Published on 2010-03-30T04:20:48Z Indexed on 2010/03/30 4:23 UTC
Read the original article Hit count: 431

Filed under:
|
|
|

In s Flex 3 app, I have canvas with a PNG image for a background. The image is the same width & height as the canvas. I also have some other controls in the canvas:

<mx:Canvas id="form" backgroundImage="@Embed(source='images/formBkg.png')" width="640" height="480" >
    <mx:label .../>
    <mx:label .../>

I print the canvas using the following code:

var printJob:FlexPrintJob = new FlexPrintJob();

if (printJob.start())
{
    printJob.addObject(form, FlexPrintJobScaleType.SHOW_ALL);
    printJob.send();
}

On screen it looks great, but when I print it the quality of the png degrades. It is not terrible, but not as sharp as what is shown on screen.

Is there anything I can do to improve the quality of the printed png?

© Stack Overflow or respective owner

Related posts about flex

Related posts about printing