Took me a while to see the difference in your code. One letter made all the difference. It now works like a charm.
Thanks a lot.
Dave
Announcement
Collapse
No announcement yet.
CreateCompatibleBitmap
Collapse
X
-
Guest replied
-
bhdc = CreateCompatibleDC(hdc)
bitmaphand= CreateCompatibleBitmap ( hdc,100,100 )
---
SelectObject bhdc, bitmaphand
Leave a comment:
-
Guest replied
dim kk as bitmap
msgbox(str$(getobject(bitmaphand,sizeof(kk),kk)))
msgbox(str$(kk.bmBitsPixel))
This shows the bmBitsPixel is 1.
Leave a comment:
-
Guest repliedYes. I'm using %srccopy.
Dave
Leave a comment:
-
CreateCompatibleBitmap
bhdc = CreateCompatibleDC(hdc)
bitmaphand= CreateCompatibleBitmap ( bhdc,100,100 )
SelectObject bhdc, bitmaphand
I am using the above statements to generate a bitmap. I can bitblt data between my window and the bitmap, draw on the bitmap but for some reason I cannot use color. The bitmap seems to be monochrome.
Any ideas how I can use color.
DaveTags: None
Leave a comment: