Another MC-Rev anomaly: "text of image" property

Wilhelm Sanke sanke at hrz.uni-kassel.de
Wed Nov 8 10:53:05 CST 2006


On Tue, 07 Nov 2006, Chipp Walters wrote:

Hi Wilhelm,

Then, if I am correct, setting the global paintcompression to RLE then 
'touching' a PNG image (getting and setting both the imageData and 
alphaData) will now set the image to RLE instead of the original PNG. Is 
this your understanding as well?

Yes.

===============================

Another interesting difference between imagedata and text of image:

As we know, getting and setting the imagedata will result in a new 
formattedwidth and - height defined by the size of the current rect of 
the image, meaning at least two things:

- if you change the size of the rect after you have retrieved the 
imagedata, then when you set the resized image to the retrieved 
imagedata you will get a distorted image at best,

- if you get and set the imagedata without changing the rect, this image 
size is now defined as having the optimal quality, i.e. when you now 
change the rect you will loose quality when you enlarge the image.

This is apparently not the case with text-of-image. The retrieved 
text-of-image data will fit into any rect without loss of quality, 
unless of course you expand the image beyond its original size 
("original" at the time the image was imported).

Regards,

Wilhelm Sanke




More information about the metacard mailing list