Oct 5, 2009 12:05 PM
Transparency of graphics in PrintJob
-
Like (0)
Am I missing some crucial documentation or switch that causes elements that are rendered with transparency intact on a screen, but when the sprite is then sent to a PrintJob, those elements are rendered completely opaque.
For instance, if I have two overlaping ellipses
with(es.graphics)
{
beginFill(0x6b7ad1, .5);
drawEllipse(0, 70, 440, 400);
endFill();
beginFill(0xb29ed1, .5);
drawEllipse(220, 70, 440, 400);
endFill();
}
There of course is no blended region, the second fill is entirely opaque.
I've messed with the Print As Bitmap stuffies to no avail.
While on that subject, a PNG included in that printjob looks like garbage, even if there is no alpha/transparency.
I am checking with the team on this.
Rob Christensen
Adobe AIR Team
Thank you. I should also mention that I've had no luck including the CheckBox component without it totally screwing up my layouts, but that may be my ineptness. (I don't think so however, as I'm fairly accomplished and use this and other components using AS3 only all the time).
I should also give more info on the PNG thing I mentioned... It matters not at all what format or format specific details I use, alpha, interlacing, compression, etc or what publishing settings I use regarding quality and format... I've tried them all (excepting bitmap, I'll have to try that, but this program is far too big as it is)... PNG, JPG, GIF. The quality is just awful regardless.
I'm not certain, but IIRC, I've submitted a bug report on one or both of these issues and a feature request to allow programatically changing of the suggested filename when printing to file or pdf... right now it's Flash.pdf and I've documented way to change it.
Cheers!
Or color gamut or number of colors (8 bit, 24, etc).
I am also not resizing the image in any way.
Any traction on this? Thanks!
Bump.. I'm going to repost and see if someone doesn't have some ideas... it's not just alpha, it's also filters failing to render and poor bitmap quality when printing.
Sorry, I have had trouble tracking down this issue, but I am giving it another go. Thank you for your patience.
Goodness, I'm grateful. Thank you!
I have been able to follow-up and get some answers. Thank you for your patience.
Vector PrintJob rendering transparency as opaque:
This is a permanent design limitation. The alternative is to use bitmap printing, which will be much better in the next release of AIR. The upcoming AIR 2 beta will include a number of significant enhancements to printing beyond this as well.
Filter effects not rendering:
We do not have a workaround for this issue and I have confirmed that this issue is not going to be addressed in AIR 2 or Player 10.1. How critical is this to your application?
PNG looks like garbage:
Can you please provide a sample file? We believe we have addressed this in AIR 2, but we would like to verify.
Default file name:
This is addressed indirectly in AIR 2. You will be able to set the name of the print job. For example:
var job:PrintJob = new PrintJob();
job.jobName = "Your name here";
Most drivers will base the Save As File name on the job name.
Copyright © 2011 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).