Jim... Thanks again for your help. Here is the script that seems to work.
Setting the rect of image whatPosition seemed to do the trick. I put back
the set icon statement to the short id of the image...
set the showName of button whatPosition to false
set the style of button whatPosition to tr
Jim,
I had to look at this for a while... And again the docs come to the
rescue And the fact that imageData needs to go into the same size image
as the "reshaped original" or the pixel count doesn't work... Which can lead
to all sorts of weird things. So... Make sure your sizes work out.
Then
Thanks, Jim. I tried what you suggested and got two anomalies - first image
whatPosition was still the large size and it and the icon of the button were
both totally black... Jim
Here is my modified script...
set the showName of button whatPosition to false
set the style of button whatPositio
Well, if it's not working from the script you could always try exporting the
"resized" version of your image to a seperate "temporary" file. Then have your
script re-open the "temporary" image and set the button icon to it.
Derek Bump
Dreamscape Software
__
Jim,
I ran into the same thing long ago.. And haven't gotten back to it as other
priorities have taken hold ($$) but.
Look at the imageData property. Use it when you want to capture a
"processed" image.
>From 2.2. docs:
= = = = = = = = = = = =
The imageData, unlike the contents of the image cont
Hi Folks... I'm still going nuts trying to figure out the nuances of images.
The docs say that when you put an image into an image container, the image
contain takes the rect of the image as it's own rect. I'm creating a
thumbnail of an image and setting the icon of a button to the thumbnail
image