|Feb 7, 2007, 05:29 AM||#1|
i am new to mac programming...i'm working my way through a couple of books.
to encourage myself to learn i have set myself 2 target applications i wish to do (it'll help me learn and be useful)
one of these projects is basically "AmbiLight" http://www.ambilight.co.uk/
basically a simple tech of making some lights behind a screen match the colour of the screen.
hardware is really simple. and the idea has been created for windows already (using directshow filters or pixel info) - google momolight.
i wish to create the same idea only for mac....i don't think this would be a terribly hard project, hence why i feel it is a good first project.
what i need is a point in the right direction. what sections of the apple docs should i investigate to get colour information from the desktop. if someone could point me to more focused info as all i know at the moment is quartz, opengl, core image, are all graphics related so its somewhere in there.
all help is much appreciated
|Feb 7, 2007, 09:26 PM||#2|
I'm pretty sure Core Graphics (aka Quartz) and OpenGL can gather pixel color from a specific area of the screen. In cocoa it's pretty simple:
NSColor* pixelColor; pixelColor = NSReadPixel( location );
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Pixel for Pixel HD Video Playback rMBP||wlossw||MacBook Pro||13||Mar 18, 2013 07:29 PM|
|Chromebook Pixel. Google-designed Chromebook Pixel with touchscreen and 2560x1700 res||ChazUK||Alternatives to iOS and iOS Devices||69||Mar 4, 2013 07:41 PM|
|Having pixel-walk||Hichisky||iPhone||0||Jan 11, 2013 03:59 PM|
|[Help] Dead Pixel or Stuck Pixel?||FireGriffin||Mac Basics and Help||1||Aug 28, 2012 12:43 PM|
|Is there a new pixel skin hd ?||richxps||iPhone Accessories||0||Jun 20, 2012 08:15 AM|
All times are GMT -5. The time now is 09:40 AM.