Path: utzoo!attcan!uunet!samsung!usc!jarthur!mwilkins From: mwilkins@jarthur.Claremont.EDU (Mark Wilkins) Newsgroups: comp.sys.mac.programmer Subject: Re: {Bit,Pix}Maps in PICT files Keywords: BitMaps PixMaps PICT Message-ID: <7450@jarthur.Claremont.EDU> Date: 8 Jun 90 23:30:54 GMT References: <2529@network.ucsd.edu> <1990Jun8.205052.16133@eng.umd.edu> Organization: Harvey Mudd College, Claremont, CA 91711 Lines: 25 In article <1990Jun8.205052.16133@eng.umd.edu> russotto@eng.umd.edu (Matthew T. Russotto) writes: >In article <2529@network.ucsd.edu> rmorgan@network.ucsd.edu (Robert Morgan) writes: >> IM V page 104 seems to say that the high bit of rowBytes tells you this, >> but in the same paragraph they say that "In general, the difference >> between version 1 and version 2 formats is that the pixMap replaces >> the bitMap..." So, can I just check the PICT version instead of >> the high bit of rowBytes ? >No, ignore that phrase. I'm pretty sure that if a copybits of a 1-bit bitmap to >a grafport is done while a picture is open, you will get a bitmap in the >picture, and not a pixmap. Even if this isn't true, its much safer to assume >it is. If when the picture is recorded the current port is a CGrafPort, then a PICT2 with a PixMap will be created, even if it is a one bit deep PixMap. If it is an old GrafPort, a PICT v. 1 with a Bitmap will be created. Therefore, a PICT2 ALWAYS contains a PixMap, but it may be 1 bit deep. -- Mark Wilkins -- "According to our contract, at precisely midnight of the night of her greatest triumph, the party of the first part, (that's you), agrees to render up her soul, now and forevermore, to the party of the second part. (That's me). Shall we go?"