Article View: comp.sys.mac
Article #22178Re: PICT's in LSC
From: Raymond Lau
Date: Thu, 17 Dec 1987 03:21
Date: Thu, 17 Dec 1987 03:21
28 lines
1370 bytes
1370 bytes
The following code was extracted from StuffIt, so I know it works:
statusPict = (PicHandle)GetPicture(128);
DrawPicture(statusPict,&rect);
simple enough...
Of course, before it we have:
PicHandle statusPict;
Rect rect;
In this case, 128 is the PICT rsrc ID number.
and we've set the rect' angle appropriately.
If you want the rect to depend on the size of the picture, you can get hte
vertices of the picture rectangle with something like:
rect.top = (*statusPict)->picFrame.top;
rect.bottom = ... picFrame.bottom etc.
And the usual, make sure your drawing port is set correctly, etc
--
Raymond Lau GEnie: RayLau
100-04 70 Ave. CIS: 76174,2617
Forest Hills, NY 11375-5133 Delphi: RaymondLau
United States of America MacNET: RayLau
uucp: raylau@dasys1.UUCP (..{phri,cucard,bc-cis,mstan}!dasys1!raylau})
Technical Details
Message-ID:
<2249@dasys1.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!uwvax!oddjob!mimsy!umd5!brl-adm!cmcl2!phri!dasys1!raylauReferences:
<Hes> <a> <good> <boy!> <2592@cbdkc1.ATT.COM> <667@lsrhs.UUCP> <411@tardis.cc.umich.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!uwvax!oddjob!mimsy!umd5!brl-adm!cmcl2!phri!dasys1!raylau From: raylau@dasys1.UUCP (Raymond Lau) Newsgroups: comp.sys.mac Subject: Re: PICT's in LSC Summary: Drawing PICTs in LSC Keywords: Stress! Frustration! Message-ID: <2249@dasys1.UUCP> Date: 17 Dec 87 03:21:29 GMT References: <Hes> <a> <good> <boy!> <2592@cbdkc1.ATT.COM> <667@lsrhs.UUCP> <411@tardis.cc.umich.edu> Organization: The Big Electric Cat Lines: 28