• 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: NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage


  • Subject: Re: NSImage
  • From: David Blanton <email@hidden>
  • Date: Thu, 31 Dec 2009 16:21:11 -0700

Yeah, I was doing it with CGBitmapContextCreate followed by CGBitmapContextCreateImage but that ends up as a CGImageRef.

I want NSImage so I can put an NSImageCell in an NSOutlineView and walk away !


Happy New Year !

I have 15 year old scotch to crack with a 28 year Apple Employee this evening !


On Dec 31, 2009, at 3:54 PM, Henry McGilton (Boulevardier) wrote:


On Dec 31, 2009, at 2:26 PM, David Blanton wrote:

Given an array of color data (a generic bitmap) what is the best / fastest / recommended method to convert this to an NSImage?

Load your data into memory, create an NSBitmapImageRep from that pile of
data, then make an NSImage from the NSBitmapImageRep . . .


    Cheers,
        . . . . . . . .    Henry



=================================================
iPhone App Development and Developer Education . . .
        Visit  www.nonatomic-retain.com

Mac OSX Application Development, Plus a Great Deal More . . .
        Visit  www.trilithon.com


_______________________________________________

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: NSImage
      • From: Quincey Morris <email@hidden>
References: 
 >NSImage (From: David Blanton <email@hidden>)
 >Re: NSImage (From: "Henry McGilton (Boulevardier)" <email@hidden>)

  • Prev by Date: Re: NSImage
  • Next by Date: Re: NSImage
  • Previous by thread: Re: NSImage
  • Next by thread: Re: NSImage
  • Index(es):
    • Date
    • Thread