[comp.sys.mac] Resedit PICT question.

eckert@lll-lcc.UUCP (04/02/87)

When using Resedit, I sometimes happen across some very interesting PICT
resources within applications.  Is there anyway that I can pull this data
out and make a file that either Macpaint or Fullpaint can look at ?

And while I'm on the subject, is there a way I can pull out the sound data
from applications and save it to be played with one of the sound players ?

Any help appreciated.  Thank you.

sdh@thumper.UUCP (04/02/87)

> When using Resedit, I sometimes happen across some very interesting PICT
> resources within applications.  Is there anyway that I can pull this data
> out and make a file that either Macpaint or Fullpaint can look at ?
>
	The data from any resource can be put into the clipboard via cut or
copy.  Since ResEdit recognizes the PICT resource type as special, it will
put it in the clipboard as a picture, and not text (data).  The transition
to Macpaint is easy.
Here are steps:
	in ResEdit:
		1) open the PICT resource file you are interested in.
		2) select the specific PICT you want by single clicking on
			it (a rectangle should appear around it).
		3) select Copy from the Edit menu (clover-c)
		4) open the scrapbook Desk Accessory.
		5) Select Paste from the Edit menu (clover-v)
That puts the picture in the scrapbook.  If you have trouble putting it in
the scrapbook, paste the PICT instead into the PICT resource in the file
"Scrapbook File".  The is effective the same as pasting into the Scrapbook.
Now it is a matter of getting them into Macpaint.
	in MacPaint:
		1) open the Scrapbook DA.
		2) Select the PICT you want.
		3) Select Copy from the Edit menu (clover-c)
		4) Close the Scrapbook
		5) select Paste from the Edit menu (clover-v)
That's it.
The process will also go in reverse.
A few Caveats for going in reverse:
Make sure the dimensions of the pictures are the same!  Some programs will
bomb if they aren't.
When pasting a resource in ResEdit, ResEdit will choose a unique resource
ID.  You must change the this ID to what the old resource was.  The steps
are simply: remove old resource.  Paste in new one.  Alter ID so that it is
correct. 
> And while I'm on the subject, is there a way I can pull out the sound data
> from applications and save it to be played with one of the sound players ?
>
	Probably, but you'd have to know where the data is to get at it.

Steve "Retief of the CDT" Hawley
(decvax, ucbvax)!bellcore!sdh