Article View: comp.sys.amiga.tech
Article #9093Re: bitmaps with intuition...
From: blandy
Date: Wed, 15 Jun 1988 14:06
Date: Wed, 15 Jun 1988 14:06
20 lines
1593 bytes
1593 bytes
In article <211@hor-res.UUCP> berry@hor-res.UUCP (No comment) writes: >this case) x,y pixel value. The planes are stored sequentially in memory. >Plane 1 first (8K), then plane 2 (8K more) and then plane three. So for >our example, to display pixel 0,0 you would start at bitmap[0] combine it >with the pixel 8,000 bytes away at bitmap[8000] and then finally with >bitmap[16000]. This would get you the Value of the color register that >will be displayed as the pixel color when the Amiga displays this pixel. Uh, I may be wrong, but are the bitmaps GUARANTEED to be stored one after the other in memory??? If you're lucky in allocation, they might be. The BitMap structure contains an array of pointers to the tops of the bitplanes; if b is a BitMap, b.Planes[0] points to the first bitplane, b.Planes[1] to the second, etc. I think you'd be better off using that... Or am I wrong? -- Jim Blandy - blandy@crnlcs.bitnet "insects were insects when man was just a burbling whatsit." - archie How necessary ARE disclaimers, anyway?
Technical Details
Message-ID:
<18336@cornell.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!andante!princeton!udel!rochester!cornell!blandyReferences:
<4370@gryphon.CTS.COM> <3170@charon.unm.edu> <211@hor-res.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!andante!princeton!udel!rochester!cornell!blandy From: blandy@cornell.UUCP Newsgroups: comp.sys.amiga.tech Subject: Re: bitmaps with intuition... Summary: Bitmaps aren't necessarily consecutive Message-ID: <18336@cornell.UUCP> Date: 15 Jun 88 14:06:08 GMT References: <4370@gryphon.CTS.COM> <3170@charon.unm.edu> <211@hor-res.UUCP> Sender: nobody@cornell.UUCP Reply-To: blandy@marduk (Jim Blandy) Organization: Cornell Univ. CS Dept, Ithaca NY Lines: 20