Thread View: borland.public.jbuilder.java.swing
1 messages
1 total messages
Started by abirbasak
Fri, 25 Aug 2006 08:04
how to get mouse resolution?
Author: abirbasak
Date: Fri, 25 Aug 2006 08:04
Date: Fri, 25 Aug 2006 08:04
20 lines
2121 bytes
2121 bytes
Hi, Usually mouse resolution is higher than screen resolution. How to get mouse resolution from Java? How to move mouse to a different screen location using mouse resolution? Also it seems, mouseMove event is generated only when mouse moves on screen (may be a few pixels). How to get a mouseMove when mouse is moved, but pointer in screen is not mived (as screen resolution is less than mouse resolution, mostly 72dpi)? I am trying to have a scribble application, where user draws something with mouse in the panel. But, as mouseMove is mapping mouse into screen coordinate (may be a with a few pixel quantization also) I am loosing some minute detail in the coordinate value, which might be present in the drawing. Later I want to get the exact image at the subpixel level without loosing detail, while zooming. So basically, I want to capture mouse movement, and mouse position wrt some reference at mouse resolution, rather than screen resolution. Any possible solution? Any help is appreciated. abir
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads