Moving image contents

J. Landman Gay jacque at hyperactivesw.com
Tue Jul 8 18:00:01 EDT 2003


On 7/8/03 4:01 PM, Yennie at aol.com wrote:

> I can confirm that "put image 1 into image 2" doesn't work here on OS X. I've 
> tried JPEG and GIF images, nothing unusual about them (as far as I know). I 
> just get an empty image.
> 
> ImageData works well in my tests.

ImageData is working for me too now, I must have screwed up my intial tests.

I think I've got the rest of it figured out too, after a clue from Scott 
Raney. It all depends on the paintCompression property, which is both a 
global property and an image property. The default is "rle", which 
doesn't work with "put img 1 into img 2". Putting an image's contents 
into another image only works with jpeg, gif, or png images ("streaming 
image formats".) So, the following does NOT work:

1. Take a snapshot. -- this img is in "rle" format by default
2. Create an empty image
3. Issue: put img 1 into img 2 -- fails, because the paintcompression is 
"rle"

However, for imported images, MC retains the native compression format. 
If I import a gif, the image's paintcompression remains "gif" even 
though the global property is still "rle". If I set the global property 
to "gif" as well, a new, empty image will also be in "gif" format. This 
DOES work:

1. Use the "import paint" command to import a gif image -- or jpeg or png
2. Issue: set the paintcompression to "gif" -- sets the global storage 
format; this is the key
3. Create an empty image -- which now will also be in "gif" format
4. Issue: put img 1 into img 2 -- WORKS


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the metacard mailing list