Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cwjcc!gatech!rutgers!cbmvax!vu-vlsi!swatsun!jackiw From: jackiw@cs.swarthmore.edu (Nick Jackiw) Newsgroups: comp.sys.mac.programmer Subject: Re: Drawing PICT resources Message-ID: <2377@ilium.cs.swarthmore.edu> Date: 30 Jan 89 15:52:42 GMT References: <2187@puff.cs.wisc.edu> Reply-To: jackiw@ilium.UUCP (Nick Jackiw) Distribution: usa Organization: Visual Geometry Project, Swarthmore College, PA Lines: 28 In article <2187@puff.cs.wisc.edu> drew@cat19.CS.WISC.EDU (Shawn Drew) writes: > This may sound like a pretty stupid question, but how can I take a PICT > resource from a file and then draw it to the screen? > [Deletions] > I can't find any info on using SICN resources. > > drew@cat18.cs.wisc.edu shawn@h8001.cae.wisc.edu PICT's are resources containing normal Quickdraw Pictures. If your resource ID is #129, and myRect contains the rectangle in which you wish to draw it, (local coordinates of current grafport), then var myPic:PicHandle; begin myPic:=GetPicture(129); DrawPicture(myPic, myRect) end; will draw it. SICNs are 'small icons.' Their format is a 16x16 bit array, you have to provide the BitMap structure to plot it with CopyBits. -Nick. -- +-------------------+-jackiw@cs.swarthmore.edu / !rutgers!bpa!swatsun!jackiw-+ | nicholas jackiw | jackiw%campus.swarthmore.edu@swarthmr.bitnet | +-------------------+-VGP/MathDept/Swarthmore College, Swarthmore, PA 19081--+ "Big tough man. Big tough plan. Spend my life. With a big tough wife." - Ant