How does Pixie work?
How does Pixie work?
- Subject: How does Pixie work?
- From: Stonewall Ballard <email@hidden>
- Date: Wed, 03 Jul 2002 19:32:02 -0400
How does Pixie get the screen bits under the cursor?
I was told that you could use an invisible window to read the screen,
presumably by calling something like:
[[NSBitmapImageRep alloc] initWithFocusedViewRect: myFrame]
I've made a very nice transparent window by setting its opacity to NO, and
filling its content view with clearColor, but the image I get from the above
operation is just gray.
Strangely, some other code I've seen for grabbing the screen by covering it
with a large transparent window and doing the above operation doesn't work
on my Macs.
For example, see <
http://borkware.com/quickies/one?topic=Graphics>. This
produces a "background pinstripe" image on my TiBook and my desktop G4, but
apparently, it works on other systems. Is this related?
TIA for any help, esp. pointers to sample code.
- Stoney
--
Stonewall Ballard
email@hidden
http://www.sb.org/stoney/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.