• 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
CoreAnimation: image is too large
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreAnimation: image is too large


  • Subject: CoreAnimation: image is too large
  • From: Gabriel Zachmann <email@hidden>
  • Date: Thu, 1 Oct 2009 22:55:56 +0200


I am using Core Animation to display some images.

Is there an easy way to find out the following information?

1.
Query the properties GL_MAX_TEXTURE_SIZE and GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB from the current OpenGL context that Core Animation
must have acquired somewhere.
Well, it would suffice if I could get CA's current OpenGL context.


2. Find out the dimensions of an image on the disk, *before* actually loading it into memory.

The reason is that I occasionally get an error message saying
"CoreAnimation: X by Y image is too large for GPU, ignoring".

So I'd rather like my app to not load these images in the first place.

If #1 is not easily achievable, then I guess I could hard-wire the size to 2048x2048 for the moment. It's just not elegant.

I understand there is also a CATiledLayer, but if I skip a few images it doesn't really hurt.

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: CoreAnimation: image is too large
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Making a opaque copy of an NSImage
  • Next by Date: IB webview oddity/question...
  • Previous by thread: Re: Making a opaque copy of an NSImage
  • Next by thread: Re: CoreAnimation: image is too large
  • Index(es):
    • Date
    • Thread