[comp.sys.mac.apps] What's wrong with this PICTure?

rsholmes@rodan.acs.syr.edu (Rich Holmes) (11/07/90)

A tragic tale of three applications: Canvas, by Deneba (a recent version);
Ultrapaint, also by Deneba (version 1.0), and GROBer, by Hewlett-Packard
(version whatever).  GROBer is probably an innocent bystander.  It takes an
image on the clipboard and writes it to a file as an HP48SX Graphics Object
(GROB), which can then be downloaded to that fine calculator.

The bug: I clipped a piece from an image using Ultrapaint and went into GROBer.
The image could be seen in the Clipboard window and it looked OK; but when I
converted it to a GROB and back again, the rightmost 15% or so was garbled.

I tried another image.  Same thing, except this time it was the *bottom*
part of the image that was garbled.  Subsequent experimentation showed the
garbling began at a place governed by the content of the image, not by the
size or the position within the image.  (A third image wasn't garbled at all).

The mystery:  I clipped the same piece from the image in Ultrapaint and pasted
it into a document in Canvas.  (It was ungarbled).  I then clipped using Canvas
and ran it through GROBer.  No garbling!

The questions: (1) How come I get different results on the "same" image
depending on which program put that image on the clipboard?  Presumably
Ultrapaint and Canvas write the image to the clipboard in different ways.
(2) Is Ultrapaint storing the image incorrectly, or is GROBer reading it
incorrectly?  (3) If the former, how come Canvas is able to paste it 
correctly?  (4) How come the image shown by GROBer in the clipboard is
correct, even when the output of GROBer is garbled?  (5) Why am I dumb
enough to use version 1.0 of anything?

I vaguely recall hearing of similar problems with graphics on the clipboard
in the past, with other applications.  Any enlightenment would be welcome.


-- 
 - Rich Holmes                                  rich@suhep.bitnet
   Syracuse U. Physics Dept.                    rich@suhep.phy.syr.edu
                                or if you must: rsholmes@rodan.acs.syr.edu