Code: Select all
answer file "Select a an image:"
import paint from file it
Three questions:
1 - Where and how is the image data stored? Is it a customKey? Is it saved in the image object, or somewhere else?
2 - After the new image object is created, how do I reference it in the script, to manipulate its properties?
3 - I can resize the image proportionally by grabbing and dragging a corner while holding down the shift key. Is there an easy way to resize the image proportionally by script? (I could get the height and width of the image, do the necessary arithmetic and set new height and width, so the proportions are preserved. Is there an easier way?)
Thanks!
Tim