Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions about CGImage




On Feb 11, 2005, at 7:35 AM, Scott Thompson wrote:


On Feb 11, 2005, at 8:54 AM, Michael Becker wrote:

Am 11.02.2005 um 15:29 schrieb Scott Thompson:
One way to do that would be to create an offscreen bitmap and draw the image from the JPEG into the offscreen bitmap context. Then you can create another CGImage from the pixels of the offscreen context and use it.

Phew, sounds easy to you, probably ;-)
Could you maybe provide some pseudo-code or just something for me to hang on to? I understand what you are saying but I have not the slightest clue as of how to get there...


Any kind of pseudo-code-skeleton or something would be great!!

If I had to guess, I would say that iPhoto is not using Quartz to draw it's image thumbnails. I suspect that, instead, they are probably using OpenGL and textured quads to get the absolute best performance. Still, you could try the code above and see if it improves the drawing speed of your application enough that you are happy with it.

No iPhoto uses Core Graphic not OpenGL (at least in last version, haven't look at the latest). Shark it.


-Shawn

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden
References: 
 >Questions about CGImage (From: Michael Becker <email@hidden>)
 >Re: Questions about CGImage (From: Scott Thompson <email@hidden>)
 >Re: Questions about CGImage (From: Michael Becker <email@hidden>)
 >Re: Questions about CGImage (From: Scott Thompson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.