PDA

View Full Version : PrintJob crop



GrndMasterFlash
October 5th, 2007, 12:34 PM
yo, can anyone tell me how to crop a print image so it only shows the bounds i want it to?

i have a game where the user creates images on the stage, and sometimes the images run off of the stage, i only want it to print the image section that is viable on the screen.

i havn't done to much with PrintJob so forgive the noob question, and the "ActionScript 3.0 Cookbook" makes no mention of PrintJob.:sad:

GrndMasterFlash
October 5th, 2007, 02:49 PM
ahh, the rectangle

printThis.addPage(canvas, new Rectangle(-300, -300, 600, 600));

Rectangle(x from reg, y from reg, width, height)

good stuff, blessed be livedocs:sure: