• 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: Can an image be "rejected" by CALayer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can an image be "rejected" by CALayer?


  • Subject: Re: Can an image be "rejected" by CALayer?
  • From: Gabriel Zachmann <email@hidden>
  • Date: Sun, 10 Apr 2011 22:29:55 +0200

>> I am creating CA layers like so:
>>
>>   CALayer * imgLayer		= [CALayer layer];
>>   imgLayer.contents		= (id) image;
>>   imgLayer.contentsGravity	= kCAGravityResizeAspect;
>>   imgLayer.delegate		= nil;
>>   imgLayer.opacity		= 1.0;
>>   imgLayer.position		= CGPointMake( drawRect_.size.width/2.0, drawRect_.size.height/2.0 );
>>   imgLayer.anchorPoint	= CGPointMake( 0.5, 0.5 );
>>   imgLayer.zPosition		= -1.0;
>>
>> Now, sometimes, the image does not get displayed (most images do get displayed).=
>
> What is "image"?

Sorry for forgetting to tell:  'image' is a CGImageRef, which I create like so:

	CGImageRef imageRef = CGImageSourceCreateImageAtIndex( sourceRef, 0, NULL );

Any ideas what might go wrong?

Best regards,
Gabriel.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Re: Can an image be "rejected" by CALayer? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Mac App Store requirements
  • Next by Date: Re: Mac App Store requirements
  • Previous by thread: Re: Can an image be "rejected" by CALayer?
  • Next by thread: Re: Can an image be "rejected" by CALayer?
  • Index(es):
    • Date
    • Thread