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: CGImageCreate providers invoking




On Jun 24, 2005, at 9:53 AM, Tor Langballe wrote:

I'm creating a cgimage with CGImageCreate() using the simple provider:

provider = ::CGDataProviderCreateWithData(NULL, data, <size>, NULL);

which I release after calling CGImageCreate()


What I can't seem to find adequate documentation for is: Is the provider used (once only) during CGImageCreate?

If not I have to keep my data lying around, which is a pain, so I wonder if there's a way to flush it.

Or is the provider something that randomly might get called if the graphics card gets full and I has to re-load the bitmap or something?

The data provider will be used for the life of the image. That's what the last parameter (the one you're setting to NULL) is for. It can be used to release the memory when the image has finished with it.


Scott

_______________________________________________
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: 
 >CGImageCreate providers invoking (From: Tor Langballe <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.