|Feb 7, 2007, 06: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, 10: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|
|Pixelated iTunes video playback — but only on newer MacBook Pro||kuwisdelu||Mac Applications and Mac App Store||3||Sep 30, 2011 09:46 AM|
|Any information about next MBP? en release?||Ulf1103||MacBook Pro||17||Aug 17, 2011 08:39 PM|
|How do I take screenshots at my displays native pixel density? ...NOT 72 PPI!||lonesdav000||Design and Graphics||23||Jul 12, 2011 06:11 PM|
|Pixel collision detection?||dutchchilly||iPhone/iPad Programming||7||Apr 17, 2011 01:38 PM|
|OSX Pixel Art Application (like "Sprite Something")?||Megadooomer||Design and Graphics||3||Jan 14, 2011 04:09 PM|
All times are GMT -5. The time now is 01:03 AM.