Re: access to the pixel data of an image?

  • Hi Stefan,

    you should try the NSBitmapImageRepresentation class, it should
    provide you this data.

    Kind Regards
    Karsten

    Am 06.09.2007 um 21:44 schrieb Stefan Wolfrum:

    > hi all,
    >
    > for my current Cocoa project (a pure 2D graphics app) I need to look
    > at each and every pixel of a given image (mostly jpg and raw
    > formats) because I have to know their color values (preferably in
    > the HSV or HLS color space).
    >
    > do you have a pointer for me what docs I should study, which classes
    > might be helpful etc.?
    >
    > is the Cocoa wrapper for quartz 2D adequate to use? or should I
    > directly use Quartz 2D function calls?
    >
    > I had a look at NSImage and CIImage so far but couldn't find any
    > pixel data related functions such as "give me a 2D array of color
    > values that representsteh whole image".
    >
    > Excuse me if that's  a dumb question, I'm still I newbie,
    > unfortunately... :-(
    >
    > Thank you so much,
    > Stefan.
    >
    >
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today