Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!gumby!bezanson From: bezanson@gumby.WISC.EDU (Brian Bezanson) Newsgroups: net.micro.mac Subject: Re: Converting MacPaint into a Resource file. Message-ID: <404@gumby.WISC.EDU> Date: Wed, 24-Sep-86 22:12:00 EDT Article-I.D.: gumby.404 Posted: Wed Sep 24 22:12:00 1986 Date-Received: Thu, 25-Sep-86 03:30:22 EDT References: <232@hao.UUCP> Organization: Manta Software Corporation Lines: 38 Keywords: ResEdit1.0D12, REdit Summary: One method for putting PICTs in your program. In article <232@hao.UUCP>, bill@hao.UUCP (Bill Roberts) writes: > So, the questions remain: > A) How does one convert a MacPaint file into a PICT resource so that > the MacPaint file can be displayed in a window (in an application) > at runtime? > B) Where can I find out how to use ResEdit1.0D12? Which software > supplement documents it? And what is the general address to write > too to get the various software supplements? > C) Or, do I have to right an application to convert MacPaint into a > PICT resource file (or better yet, a bmap resource)? Bill The way I've heard people describe the procedure (haven't done it yet, but will in a future application), is to 1) Copy your paint picture to the clipboard using the program of your choice (Paint Cutter, Artisto, MacPaint, etc...). Then open the clipboard and paste in your new picture. You will not be able to see the entire PICT in the scrapbook since it only shows you part of a PICT. Now go into ResEdit 1.D12 and open up the scrapbook file. Look for your PICT and cut/copy it. Then open up your Application or the Applications Resource file (not the RMaker file), and paste it in. You can use the nfo command to change the PICTs ID number, etc... Then all you do is use the appropriate Toolbox routines to Get/Open the PICT and display it in your window (don't have the exact toolbox routine names in my mind right now). The error you got in REdit was because it only decompiles some resources, and it doesn't support decompiling PICTs at the moment. Hope this helps in your programming quest. In answer to your plea for help on ResEdit documentation. You can get that in the third supplement (Volume I, Issue 3). You can now obtain these through APDA (Apple Programmer's and Developer's Association) and they used to be available from Apple Mailing Facility (these may have been entirely moved to APDA by now). Hope all this has helped. -- Brian Bezanson {seismo,ihnp4,allegra,topaz,harvard}!uwvax!gumby!bezanson Manta Software Corp. bezanson@gumby.wisc.edu