>At least on the OS5 simulator, >BmpGetBits(WinGetBitmap(WinGetDisplayWindow())), and then >directly accessing the memory at that address works >perfectly well.
But depending on various things, the byte order you see on the screen's bitmap might not be the one you expect. Furthermore, the data might be in various different formats (e.g. not 5-6-5 bits for RGB), at different depths, different densities, etc. Depends on the hardware and low level software. So unless you're willing to implement a lot of special cases and don't mind doing frequent software updates, it is far safer to directly twiddle the bits in an offscreen window, and then copy that offscreen window to the screen with WinCopyRectangle et al. The blitter will convert it as necessary. It is supported to read or write directly the bits in a bitmap that you've created... but trying to do that with something else's bitmap won't necessarily work like you want. -David Fedor PalmSource, Inc. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
