Hello,

I'm trying to export an animation as animated gif. Adding all frames to the gif, setting loop count and writing the file works fine. But my choice if the gif should have a global colormap or not is ignored.

here the code I tried:

NSMutableDictionary *gifImageProperties = [[NSMutableDictionary dictionaryWithCapacity:2] retain];

//loop animation, 0 = indefinitly
[gifImageProperties setObject:[NSNumber numberWithFloat:0] forKey: (NSString *)kCGImagePropertyGIFLoopCount];

[gifImageProperties setObject:[NSNumber numberWithBool:useGlobalColormap] forKey:(NSString *)kCGImagePropertyGIFHasGlobalColorMap];

NSDictionary *finalGIFImageProperties = [NSDictionary dictionaryWithObject:gifImageProperties forKey:(NSString *) kCGImagePropertyGIFDictionary];

... my image creation code here ...

//set properties
CGImageDestinationSetProperties(imageDestination, (CFDictionaryRef)finalGIFImageProperties);


Am I setting something wrong for kCGImagePropertyGIFHasGlobalColorMap? This stuff is not quite well documented... For kCGImagePropertyGIFLoopCount everything works fine - even for other loop counts.

Any clues?

thanks,
    Patrick
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to