Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing an Image



I have been using up ink trying to get a decent quality print of an image from within ASS so I hope someone can help.

Here is an example of the code I have been trying.


So it basically

set the bounds of an Image View then loads a JPEG photo from a file into it.
JPEG files 1600 x 1200 before scaling with Image View.
The print from the call method.

It prints at the correct size but the resolution is low with jaggies.

Can anybody out there help, please.

--Terry


set tObj to image view "ImageView" of window "PrintSetup"
set tCurrentMenu to name of current menu item of popup button "SizePopUp" of window "PrintSetup"
if tCurrentMenu = "3x2" then
set tNewBounds to {0, 0, 216, 162}
else if tCurrentMenu = "5x3" then
set tNewBounds to {0, 0, 360, 270}
else if tCurrentMenu = "6x4" then
set tNewBounds to {0, 0, 432, 324}
else if tCurrentMenu = "8x6" then
set tNewBounds to {0, 0, 576, 432}
else if tCurrentMenu = "10x8" then
set tNewBounds to {0, 0, 720, 540}
end if
set bounds of tObj to tNewBounds
set tNewImage to load image item (pCurrentImage of PropLib) of (pImagePaths of PropLib)
set image of tObj to tNewImage
call method "print:" of tObj
set tOldImage to image of tObj
delete tOldImage


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.