Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!elroy.jpl.nasa.gov!decwrl!claris!outpost.UUCP!peirce From: peirce@outpost.UUCP (Michael Peirce) Newsgroups: comp.sys.mac.programmer Subject: Re: PICT into resource Message-ID: <0B010004.c8ycb4@outpost.UUCP> Date: 26 Jan 91 03:20:50 GMT Reply-To: peirce@outpost.UUCP Organization: Peirce Software Lines: 32 X-Mailer: uAccess - Mac Release: 1.0.3 In article , gb2a+@andrew.cmu.edu (George J. Baxter) writes: > > Dear World, > 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? It sound like it's drawing the Picture, just slowly, right? Make sure the bounding rectangle of the PICT matches the rectangle that your drawing into. If they're different, COPYBITS will scale the thing and that can take a far amount of time. Also, you mention calling DrawPicture. Why not just use a Picture item in the DITL. Then use the ResEdit menu item called "Use Resource Rectangle" to have it size the item rectangle to be the same as the native PICT bounds rectangle. Also, you might want to get RedEdit 2.1. It's not a beta or development version like you have and, although not bug free, is much better than the version you are using. -- michael -- Michael Peirce -- outpost!peirce@claris.com -- Peirce Software -- Suite 301, 719 Hibiscus Place -- Macintosh Programming -- San Jose, California 95117 -- & Consulting -- (408) 244-6554, AppleLink: PEIRCE