Is it possible to create a cursor from an image and have it be semi-transparent?
I'm currently taking a custom image and overylaying the mouse cursor image. It would be great if I could make this semi-transparent, but not necessary. The sales guys love shiny.
Currently doing something like this:
Image cursorImage = customImage.GetThumbnailImage(300, 100, null, IntPtr.Zero); cursorImage.SetResolution(96.0F, 96.0F); int midPointX = cursorImage.Width / 2; int midPointY = cursorImage.Height / 2; Bitmap cursorMouse = GetCursorImage(cursorOverlay); Graphics cursorGfx = Graphics.FromImage(cursorImageCopy); cursorGfx.DrawImageUnscaled(cursorMouse, midPointX, midPointY); Cursor tmp = new Cursor(cursorImage.GetHicon());