1 1-bit bilevel, stored with the leftmost pixel in the most significant bit.
0 means black, 1 means white.
1;I 1-bit bilevel, stored with the leftmost pixel in the most significant
bit. 0 means white, 1 means black.
|main = do desktop <- getDesktopWindow -- Grab the Hwnd of the desktop, GetDC 0, GetDC NULL etc all work too|
|hdc <- getWindowDC (Just desktop) -- Get the dc handle of the desktop|
|(x,y,r,b) <- getWindowRect desktop -- Find the size of the desktop so we can know which size the destination bitmap should be|
|-- (left, top, right, bottom)|
|newDC <- createCompatibleDC (Just hdc) -- Create a new DC to hold the copied image. It should be compatible with the source DC|