Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!gatech!ncsuvx!ecemwl!jnh From: jnh@ecemwl.ncsu.edu (Joseph N. Hall) Newsgroups: comp.sys.mac.programmer Subject: Aligining bitmaps? Message-ID: <3791@ncsuvx.ncsu.edu> Date: 28 Aug 89 20:41:40 GMT Sender: news@ncsuvx.ncsu.edu Reply-To: jnh@ecemwl.UUCP (Joseph N. Hall) Organization: North Carolina State University Lines: 17 What is the most straightforward procedure for ensuring that a window's portBits begin on a word boundary? What I would like to do is check after the user creates or resizes a graphics window and shift the window horizontally (if necessary) so that it will be aligned for later updates from an offscreen bitmap. Also, how much speed difference is there between an aligned and unaligned one-to-one CopyBits? I assume that performance is no better for an odd-byte-aligned bitmap than it is for a totally unaligned bitmap, right? I'm only messing with b/w bitmaps now, but I'd appreciate hearing the answer for both classic and color QuickDraw ... v v sssss|| joseph hall || 4116 Brewster Drive v v s s || jnh@ecemwl.ncsu.edu (Internet) || Raleigh, NC 27606 v sss || SP Software/CAD Tool Developer, Mac Hacker and Keyboardist -----------|| Disclaimer: NCSU may not share my views, but is welcome to.