• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 2D grayscale image from an array of floats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2D grayscale image from an array of floats


  • Subject: Re: 2D grayscale image from an array of floats
  • From: douglas welton <email@hidden>
  • Date: Fri, 18 Dec 2009 12:55:13 -0500

Martin,

Have you looked at the API for CGImage?  If not, this may be helpful as well.

regards,

douglas

On Dec 17, 2009, at 9:25 AM, Martin Beroiz wrote:

>
> On Dec 17, 2009, at 6:17 AM, Graham Cox wrote:
>
>>
>> On 17/12/2009, at 5:32 AM, Martin Beroiz wrote:
>>
>>> Can anyone please give me any hint on what would be the best approach to this problem? or may be point me some relevant documentation I might read? I know nothing about bitmap image representation, so any pointer on that would appreciated too.
>>
>>
>> I'd say that's exactly what you want - NSBitmapImageRep. You can use its setPixelAtX:y: method to set each pixel individually, provided that ultra-high performance isn't a key requirement. The rep can be drawn directly into a view or wrapped with an NSImage and drawn using that.
>>
>> Look up that class in the docs and it also links to other relevant docs and samples.
>>
>> --Graham
>>
>>
>
>
> Thanks, I'm trying that already. I don't need high performance right now, but just out of curiosity, what would I use if I wanted ultra high performance?

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: 2D grayscale image from an array of floats
      • From: Scott Ribe <email@hidden>
References: 
 >Question in regards to .ics files (From: "Eric E. Dolecki" <email@hidden>)
 >2D grayscale image from an array of floats (From: Martin Beroiz <email@hidden>)
 >Re: 2D grayscale image from an array of floats (From: Graham Cox <email@hidden>)
 >Re: 2D grayscale image from an array of floats (From: Martin Beroiz <email@hidden>)

  • Prev by Date: Re: Core Video - Getting Started
  • Next by Date: Re: NSUndoManager auto-grouping?
  • Previous by thread: Re: 2D grayscale image from an array of floats
  • Next by thread: Re: 2D grayscale image from an array of floats
  • Index(es):
    • Date
    • Thread