ColorCursorFromBmp

Creating a color cursor from a bitmap
Download

ColorCursorFromBmp Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Jiju George
  • Publisher web site:
  • http://www.codeproject.com/Members/Jiju-George-T
  • Operating Systems:
  • Windows All
  • File Size:
  • 20 KB

ColorCursorFromBmp Tags


ColorCursorFromBmp Description

The ColorCursorFromBmp application was developed to be a small test tool that will allow you to convert a color HBITMAP to HCURSOR.In Windows, transparency of the cursor is achieved by the use of two masks. One is called the AND mask and the other is called the XOR mask. In order to display a cursor in the screen, the system first performs a logical AND operation on the screen with the AND mask. In this process, the pixels in the screen corresponding to the 1 bits in the AND mask remains unchanged and the pixels corresponding to the 0 bits in the AND mask becomes modified. Then the system will perform a logical XOR operation on the screen with the XOR mask. In this process, the pixels in screen corresponding to the 0 bits in the XOR mask remains unchanged and the pixels corresponding to the non 0 bits gets modified. The utility class explained above will try to create the cursor in the same size of the input source bitmap. But in Windows, there are some limitations for the size of the cursor. So it is always safe to pass bitmaps having standard size. Otherwise the result may be unpredictable.


ColorCursorFromBmp Related Software