• 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: Putting an image on a CALayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Putting an image on a CALayer


  • Subject: Re: Putting an image on a CALayer
  • From: Alex Heinz <email@hidden>
  • Date: Tue, 21 Oct 2008 11:51:19 -0400

You could use [[NSImage alloc] initWithContentsOfFile:], and then draw the NSImage to the CALayer.

HTH,
Alex

On Oct 21, 2008, at 11:46 AM, DKJ wrote:

I'd like to put an image stored in a JPEG file onto a CALayer. It seems that I do this by assigning a CGImageRef to its contents property. But how do I get a CGImageRef from a file? Do I make an NSData object from the file and do something with that?

dkj
_______________________________________________

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
_______________________________________________

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: Putting an image on a CALayer
      • From: DKJ <email@hidden>
References: 
 >Putting an image on a CALayer (From: DKJ <email@hidden>)

  • Prev by Date: Re: @property and HeaderDoc
  • Next by Date: Re: Putting an image on a CALayer
  • Previous by thread: Putting an image on a CALayer
  • Next by thread: Re: Putting an image on a CALayer
  • Index(es):
    • Date
    • Thread