X = ci.ptScreenPos.x - ((int)icInfo.xHotspot) If (Win32Stuff.GetIconInfo(hicon, out icInfo)) If (ci.flags = Win32Stuff.CURSOR_SHOWING) Win32Stuff.CURSORINFO ci = new Win32Stuff.CURSORINFO() static Bitmap CaptureCursor(ref int x, ref int y) NOTE: If you click on the original article someone offers a suggestion - it doesn't work.How can I capture the mouse cursor image when the image is one of these "I-beam"-type images.However, when the mouse cursor is changed to the insertion point (the "I-beam" cursor) - for example typing in NOTEPAD - then code doesn't work - the result is that I get a faint image of the cursor - like a very translucent (gray) version of it instead of the blank & white one would expect.Code works fine when the mouse cursor is the normal pointer or hand icon - the mouse is rendered correctly on the screenshot.Note that the code captures the the mouse cursor also (which is desirable for me).My code is based derived from this project:.I am writing a screen capture application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |