PDA

View Full Version : Printing hi-res bitmaps


Jaysin
02-28-2007, 08:36 PM
I have want to print a "page" from flash with hi-res bmps.

For example a page with some text and a photo. I want the photo to be 150 DPI (not 72). Any suggestions?

Thank you

Noct
02-28-2007, 10:17 PM
I have want to print a "page" from flash with hi-res bmps.
Do you mean you want to print a page from an existing Flash file on the web?
Or are you creating this yourself?

I want the photo to be 150 DPI (not 72)
Well...it would have to be already, it isn't like you can do that after the fact.

Here is the deal, most printers are (around) 300 - 3000 DPI, while most monitors are (around) 72 DPI. So, anyone posting images to the web is just wasting bandwith putting it up any higher then 72.

If you want images in YOUR flash file to print out that high, they need to be that high to begin with when you author the file.

Jaysin
03-01-2007, 02:29 PM
Thanks Noct

homebrew
04-07-2009, 05:57 PM
I know this is old, but here is the way I print out hi-res images for anyone that is interested:

I'm printing a 4page 11x17 brochure:

function printme(){

var pageCount:Number = 0;
var my_pj:PrintJob = new PrintJob();
if (my_pj.start()){
if (my_pj.addPage("bro1_mc",{xMin:0,xMax:1224,yMin:0,yMax:792},{printAsBitmap :false})){
pageCount++;

if (my_pj.addPage("bro2_mc",{xMin:0,xMax:1224,yMin:0,yMax:792})){
pageCount++;

if (my_pj.addPage("bro3_mc",{xMin:0,xMax:1224,yMin:0,yMax:792})){
pageCount++;

if (my_pj.addPage("bro4_mc",{xMin:0,xMax:1224,yMin:0,yMax:792})){
pageCount++;
}
}
}
}
}


// If addPage() was successful at least once, print the spooled pages.
if (pageCount > 0){
my_pj.send();
}

delete my_pj;


}

On the first page, I have an image that is 512px wide on my screen (72ppi). This means that it will print out at 7.11 inches wide. Thus, to print out at 300dpi, I need that image to be 2133.33px wide to begin with. The images I include are dynamic, so they are loaded into a movieclip and _xscale and _yscale are set to 24% (512/2133.33)


var printElevImg:String = "Houses/" + HOUSE_ID + "/print/" + _global.colorGroup + ".jpg";
loadMovie(printElevImg, "bro1_mc.print_elev_mc");

bro1_mc.print_elev_mc._xscale = 24;
bro1_mc.print_elev_mc._yscale = 24;

if (_global.horizontalFlip == "true") {
bro1_mc.print_elev_mc._xscale = -24;
bro1_mc.print_elev_mc._x = 661+512;
}


Worked great once I realized what was going on. Just thought I'd pass this along to anyone that is wanting to print hi-res from flash.

kkbbcute
04-08-2009, 06:28 AM
It could be better done with a strategically placed printscreen and a whole ton of photoshop, including the unsharp masks and Alien Skin's blowup software. And as for doing it in Flash, homebrew's method should work, his code is sound;)