Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!dmac From: dmac@athena.mit.edu (David S. McCormick) Newsgroups: comp.sys.mac.programmer Subject: Re: PICT into resource Message-ID: <1991Jan31.212601.23127@athena.mit.edu> Date: 31 Jan 91 21:26:01 GMT References: Sender: news@athena.mit.edu (News system) Organization: MIT-EAPS Geology Lines: 23 In article gb2a+@andrew.cmu.edu (George J. Baxter) writes: > I'm trying to load a somewhat complicated (though I believe less > than 32K) PICT image into a PICT resource to use in a modeless dialog. > How the begeebers to I pull it off? I have managed to do the cut and > paste routine with PixelPaint Pro. and ResEdit 2.0d3, but it makes it a > bitmap, and is _VERY_ slow when I call 'DrawPicture'. So I tried to do > a cut from MacDraw and paste into ResEdit, but it wouldn't go, same > result with SuperPaint. Any suggestions? I created a PICT in Canvas, copied the pict to the scrap, then pasted it back in via Paste Pict or Paste Special, then used the Object... dialog to change the thing to a bitmap. This solved several problems: (1) the PICT was then very small in size, (2) there was no dependence of the image on the systems for fonts being present. The image was then pasted into a PICT resource via ResEdit, and the thing worked like a charm. You may be able to toggle PICT's from pure Pictures (i.e. sequence of drawing commands) into a PICT bitmap in other programs. Try it. I hope this is helpful. David McCormick MIT-EAPS Geology dmac@athena.mit.edu