是否可以從圖像創建光標並使其具有半透明性?從圖像創建半透明光標
我目前正在拍攝一張自定義圖像和overylaying鼠標光標圖像。如果我能做出這種半透明的,但不是必要的,那將是非常好的。銷售人員喜歡閃亮。
目前國內做這樣的事情:
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());
alt text http://members.cox.net/dustinbrooks/drag.jpg
-1並不能使它半透明。 – quantum 2012-09-22 00:37:04