Re: Pick color value from any pixel on screen
Re: Pick color value from any pixel on screen
- Subject: Re: Pick color value from any pixel on screen
- From: Uli Kusterer <email@hidden>
- Date: Wed, 30 Nov 2005 12:42:37 +0100
Am 29.11.2005 um 21:40 schrieb Cybereer:
Hi everyone, I am new to this list, and have a naive Cocoa question
for those who know:
Since NSReadPixel doesn't seem to work across windows, what's the
official or best way to read a pixel anywhere on screen?
Furthermore, what's most efficient method for making a screenshot?
Dang, I used to know this. :-( But I jut can't remember right now.
I suppose you've already searched the Cocoa-Dev archives for info
on this? Also try Carbon-Dev. I know there used to be a way to get a
port for the entire screen whose pixels you could query using
CoreGraphics or Quickdraw.
I vaguely remember that the Cocoa way to do this had something to
do with opening a full-screen transparent window, but I'm not sure
whether that was only for getting the mouse tracking events, or
whether that also allowed you to use NSReadPixel on that window's
content view to get pixel values... (maybe you'll have to use
NSView's PDF-data-generating method instead).
Also check out all those web sites in the "Cocoa and List
Resources" post the admin does here every month or so. E.g. CocoaDev
might contain some info on screen shots.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden