• 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: How to draw a CGImage object to a NSView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to draw a CGImage object to a NSView?


  • Subject: Re: How to draw a CGImage object to a NSView?
  • From: j o a r <email@hidden>
  • Date: Thu, 21 Feb 2008 00:04:11 +0100


On Feb 20, 2008, at 11:34 PM, Ken Ferry wrote:

..not that you need to do this if you already have a custom view
subclass.  Then you should just draw the CGImage from within drawRect,
as glenn described.


...but if the only reason for your subclass is to be able to draw a CGImage without costly conversions, then I think that you should consider using [CGImage -> NSBitmapImageRep -> NSImageView], or IKImageView.

j o a r


_______________________________________________

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: 
 >How to draw a CGImage object to a NSView? (From: Leopard x86 <email@hidden>)
 >Re: How to draw a CGImage object to a NSView? (From: "Ken Ferry" <email@hidden>)
 >Re: How to draw a CGImage object to a NSView? (From: "Ken Ferry" <email@hidden>)

  • Prev by Date: Re: Singleton as a common area?
  • Next by Date: Re: Rotated NSImage drawAtPoint:... slow (*$?! photoshop)
  • Previous by thread: Re: How to draw a CGImage object to a NSView?
  • Next by thread: Re: How to draw a CGImage object to a NSView?
  • Index(es):
    • Date
    • Thread