Why does this not work? When the bitblit writes back into the picture1 picbox it is just toally black?
btmp = CreateBitmapForm1.Picture1.ScaleWidth,Form1.Picture1.ScaleHeight, 1, 1, 0&)
chdc = CreateCompatibleDC(Form1.Picture1.hDC)
x = SelectObject(chdc, btmp)
'store bitmap to DC and then back to picture box this should convert bmp to monochrome format.
'tyr this:
'btmp=CreateCompatibleBitmap(.......)
'don't select an exist bitmap which belong to another DC into a CompatibleDC
chdc = CreateCompatibleDC(Form1.Picture1.hDC)
x = SelectObject(chdc, btmp)
'store bitmap to DC and then back to picture box this should convert bmp to monochrome format.