|Sep 9, 2013, 03:34 PM||#1|
Get pixel data from an image?
I'm trying to make a photomosaic generator for OSX. What I need is to be able to get direct bitmap/pixel data from images (so I can determine the average colour of a mosaic tile), but NSImage seems too high level for this. Any help please? The Apple documentation about drawing looks huge and has lots of variants (Cocoa, Quartz, OpenGL)… I'd prefer Cocoa here.
|Sep 9, 2013, 05:41 PM||#2|
Get your image as a NSBitmapImageRep then use colorAtX:y: on it.
Don't tell me Macs don't last: 2007 iMac, 2007 Mac Mini, 2008 MacBook Air, all Vintage.
(iMac obsoletion: April 28, 2015, MBA: October 14, 2015, Mac Mini: March 9, 2016)
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|iPhone 6 Camera May Feature Electronic Image Stabilization, Bigger Pixel Size||MacRumors||MacRumors.com News Discussion||158||May 6, 2014 03:07 PM|
|Copy EXIF data from one image to another||themumu||Digital Photography||3||Aug 21, 2013 01:54 PM|
|Image data from Internet||antdawe||iPhone||2||Mar 10, 2013 02:13 PM|
|Retina MacBook Pro Data - Image Retention||tom.||MacBook Pro||6||Sep 19, 2012 07:41 AM|
|image data corrupted error||hajira||iPhone||0||Aug 23, 2012 01:27 AM|
All times are GMT -5. The time now is 09:06 AM.