Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Feb 7, 2007, 05:29 AM   #1
macrumors newbie
Join Date: Feb 2007
pixel information?

hi guys

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
timprogrammer is offline   0 Reply With Quote
Old Feb 7, 2007, 09:26 PM   #2
macrumors regular
Join Date: Nov 2006
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 );
My guess is that this function wraps around Quartz.
bronxbomber92 is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
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

Forum Jump

All times are GMT -5. The time now is 12:55 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC