Sends the image in Rosetta's image memory buffer to the printer
Usage:
imgPrint (object me, float marginPercentage, integer position, integer displayDialog)
Parameters:
marginPercentage (float) - The amount of space on paper reserved for the margin. Valid value are between 0.0 and 1.0. A 0.0 means that no white space is reserved on the paper, and a 1.0 means that 100% of the space on the page is reserved for the margin.
position (integer) - the vertical and horizontal positioning of the image output, relative the the paper. The possible values are between 1 to 9. A value of 1 means Top-Left alignment and a value of 9 means a Bottom-Right alignment. See chart below:
Left Middle Right Top 1 2 3Middle 4 5 6Bottom 7 8 9displayDialog (boolean) - determines if the user will see a standard windows dialog box prior to printing. When parameter value is 0 (FALSE), the print job is sent to the default printer at the default orientation.
Returns:
(integer) - The success code
Example:
-- Print the contents of Director's stage
xtRose = xtra("Rosetta").new( )
xtRose.imgFromScreen( 2 )
xtRose.imgPrint( .1, 5, TRUE )
Notes:
Rosetta can provide high quality images by sending images to the printer at their default resolution.
Images are automatically scaled down proportionally to fit within 1 page if image is bigger than page size.
Images will NOT be scaled up if image size is smaller than page size.
Please note the parameter have changed starting from version 1.0.5