Is disabling global colormap for animated gif ignored?
Is disabling global colormap for animated gif ignored?
- Subject: Is disabling global colormap for animated gif ignored?
- From: Patrick Haruksteiner <email@hidden>
- Date: Thu, 8 Jan 2009 17:31:26 +0100
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 (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