Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!dlyons From: dlyons@Apple.COM (David Lyons) Newsgroups: comp.sys.apple Subject: Re: custom icons question Message-ID: <32176@apple.Apple.COM> Date: 1 Jun 89 19:50:59 GMT References: <9134@boulder.Colorado.EDU> Distribution: na Organization: Apple Computer Inc, Cupertino, CA Lines: 24 In article <9134@boulder.Colorado.EDU> hartkopf@tramp.Colorado.EDU (HARTKOPF JEFFREY M) writes: >[..] How does one generate and use >custom icons in a program? I have some fairly small (maybe 15 by 25 pixels) >shapes that I want to draw in a desktop program. I tried plotting them point >by point but that is much too slow, so I guess using icons would probably be >the fastest way. What I need to know is, after I generate the hex >representation, (from the icon editor IconEd), how do I actually make an icon >out of it, and then how do I print that icon on the screen? [...] The DrawIcon function in the QuickDraw Auxiliary toolset is one way. I'm not familiar with the output ("Save as Source"?) from IconEd, but DrawIcon takes a pointer to the icon data, an x and y location, and a code specifying how to color the icon & how to draw it (8 choices, corresponding to what the Finder displays for selected/not selected, online/offline, and open/closed, in all combinations). --Dave Lyons, Apple Computer, Inc. | DAL Systems AppleLink--Apple Edition: DAVE.LYONS | P.O. Box 875 AppleLink--Personal Edition: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.