Can an image be "rejected" by CALayer?
Can an image be "rejected" by CALayer?
- Subject: Can an image be "rejected" by CALayer?
- From: Gabriel Zachmann <email@hidden>
- Date: Wed, 06 Apr 2011 18:44:04 +0800
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).
The funny thing, however, is that its size is smaller than what the graphics card reports it can handle as a texture.
In particular, the image is 4000x3000; and the graphics card says it can handle textures of up to 4096x4096.
Also, loading of the image seems to work just fine - I am doing quite some error checking, and nothing seems to have gone wrong.
The whole thing happens on an iMac under 10.5.8 (PPC).
The question now is: can I somehow find out whether or not the image has been ignored by CALayer?
Can I get any information as to why this might have happened?
Any insights and hints will be highly appreciated.
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