Ok here's some info you can try to test and toy with...
Declare Function GetDIBits& Lib "gdi32" (ByVal aHDC as Long, ByVal hBitmap as Long, ByVal nStartScan as Long, ByVal nNumScans as Long, lpBits as Any, lpBI as BITMAPINFO, ByVal wUsage as Long)
Appleman says: This copies bis from a bitmap into a device-independent bitmap.
and
Declare Function GetBitmapBits& Lib "gdi32" (ByVal hBitmap as long, ByVal dwCount as long, lpBits as Any)
This Copies bits from a bitmap into a buffer
Thus far, I don't have the full answer, but I'm working on it!
Appleman says in Chapter Nine of his Programmers guide to the win32 api that this chapter covers "Direct manipulation (using code) of bitmap data.
Tuna (more to come) Tuna - It's fat free until you add the Mayo!