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

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

  • Follow-Ups:
    • Re: Can an image be "rejected" by CALayer?
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: ScrollView Programming
  • Next by Date: Internet Plug-In to not load in certain web browsers
  • Previous by thread: Re: ScrollView Programming
  • Next by thread: Re: Can an image be "rejected" by CALayer?
  • Index(es):
    • Date
    • Thread