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

Re: CGImage, CIImage and NSImage


  • Subject: Re: CGImage, CIImage and NSImage
  • From: Graham Cox <email@hidden>
  • Date: Thu, 5 Aug 2010 18:05:14 +1000

On 05/08/2010, at 3:26 AM, Mas Habibi wrote:

> I have use the CGImage with this code, but there's an error when i execute it,
>
> 	CGContextDrawImage(context, imageRect, drawnImage);

Therefore the function must be broken, right? Wrong - you made a mistake. What's the error?

>
> which one is the best one to draw an image directly into NSView?


How long is a piece of string? As always, what you use depends on your needs and other tradeoffs. NSImage is probably the highest level, but not necessarily the highest performance (though it's doubtful that would be noticeable).

--Graham


_______________________________________________

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

References: 
 >CGImage, CIImage and NSImage (From: Mas Habibi <email@hidden>)

  • Prev by Date: Re: Partially release NSMutableData
  • Next by Date: Re: [Q] Enter Key & HIG
  • Previous by thread: CGImage, CIImage and NSImage
  • Next by thread: Re: CGImage, CIImage and NSImage
  • Index(es):
    • Date
    • Thread