🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #14763

Help wanted: appendPicture routine needed.

#14763
From: newbery
Date: Tue, 24 Feb 1987 04:12
31 lines
2054 bytes
Help. I want to know the most efficient way to do an "appendPicture".

Consider: I am accumulating a picture and decide (for example, because
of an update event) that I need to replay the picture to the screen,
and then continue where I left off. I would *like* to just disable
picture saving, by setting the picSave field to NIL, and then call
DrawPicture, passing the picture handle. I am prepared to append an
endOfPicture ($FF) pictCode and subsequently pop it off before
restoring the status quo. Alas, it does not seem to be so easy. For a
start, GetHandleSize returns a different value from the picture's
picSize field (and the picture is *not* >65536 bytes long :-)), making
one suspect that there is an unflushed buffer lurking somewhere.

I don't really want to have to call ClosePicture, then OpenPicture a
new picture and DrawPicture the old one into the new one. It is
potentially very wasteful of memory and drops one right into the TN89
(?) drawPicture bug.

Any help greatfully accepted (and if I figure it out in the meantime
I'll let the net know). Please reply directly to my e-mail address & I
will summarise to the net. *DON'T* use the path this article came from,
our USENET gateway is *NOT* our e-mail gateway and the USENET gateway
will not forward mail.

Thanks in antici.................pation

-- 
Michael Newbery

ACSnet:	newbery@vuwcomp.nz  UUCP: {ubc-vision,alberta}!calgary!vuwcomp!newbery
Une boule qui roule tue les poules.		(Landslides kill chickens)
Technical Details
Message-ID: <12632@vuwcomp.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!seismo!munnari!vuwcomp!newbery

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!seismo!munnari!vuwcomp!newbery
From: newbery@vuwcomp.UUCP
Newsgroups: comp.sys.mac
Subject: Help wanted: appendPicture routine needed.
Message-ID: <12632@vuwcomp.UUCP>
Date: Mon, 23-Feb-87 23:12:55 EST
Article-I.D.: vuwcomp.12632
Posted: Mon Feb 23 23:12:55 1987
Date-Received: Fri, 27-Feb-87 06:48:27 EST
Organization: Comp Sci, Victoria Univ., Wellington, New Zealand
Lines: 31
Keywords: QuickDraw, Pictures