Re: Can an image be "rejected" by CALayer?
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