Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site harvard.ARPA Path: utzoo!linus!philabs!cmcl2!harvard!stew From: stew@harvard.ARPA (Stew Rubenstein) Newsgroups: net.micro.mac Subject: Re: graphics query Message-ID: <369@harvard.ARPA> Date: Sat, 21-Sep-85 04:38:20 EDT Article-I.D.: harvard.369 Posted: Sat Sep 21 04:38:20 1985 Date-Received: Wed, 25-Sep-85 05:41:32 EDT References: <11747@rochester.UUCP> Reply-To: stew@harvard.UUCP (Stew Rubenstein) Organization: Aiken Computation Laboratory, Harvard Lines: 20 Summary: In article <11747@rochester.UUCP> henry@rochester.UUCP writes: >I am starting to program my mac, and would like some advice about how >to generate and include graphic objects as resources. Icons and fonts >are straightforward, but how do you create a PICT resource? The easiest way to do this is to create the picture in MacDraw or MacPaint or whatever, Cut it, and Paste it into the ScrapBook. The ScrapBook File is nothing but a bunch of PICT or TEXT resources (and an SMAP used internally). Then use the Resource Editor to move it into your resource file. >What about a bitmap? (Is there even a resource type for bitmap)? No, not an Apple-defined one, anyway. Pictures can be converted to BitMaps by drawing them into an offscreen GrafPort. BitMaps can be converted to Pictures by an OpenPicture, CopyBits, ClosePicture sequence. Stew {seismo, ut-sally} ! harvard ! stew