I want to temporarily distort the area under the mouse using a CIBumpDistortion
to increase the visibility of the mouse pointer.
At the moment, I have a transparent-background NSWindow
that floats around under the pointer and shows a cross-hair that fades in when you move the mouse, and out when you stop. This is working okay, but a Bump Distortion would make my app awesome instead of good enough.
I tried to use CGDisplayCaptureWithOptions(display, kCGCaptureNoFill)
, but that reduces the performance to a crawl and makes the mouse pointer stutter.
Here's an image of approximately what I'm trying to achieve.
Note, the area I want to distort is not inside my own NSWindow
, so I don't think I can just apply a transformation to a CIImage
and display that (unless one of you clever folks shows me that you can copy a bitmap from an arbitrary area of the screen?)
Thanks in advance!