• 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
Which properties are required for creating a GIF representation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Which properties are required for creating a GIF representation?


  • Subject: Which properties are required for creating a GIF representation?
  • From: John Blackburn <email@hidden>
  • Date: Mon, 18 Feb 2002 13:34:46 -0800

I have a NSBitmapImageRep; I want a GIF. Which properties must be
specified when creating GIF representations from an NSBitmapImageRep?

Specifying no properties at all results in an intelligible but
garbage-filled image:

data = [rep representationUsingType:NSGIFFileType
properties:nil];

Specifying transparency improves things a bit, but there's still
something clearly off:

data = [rep representationUsingType:NSGIFFileType
properties:[NSDictionary
dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES],
NSImageDitherTransparency, NULL]];

Are there any other properties which must be specified? I've searched
the usual sites for information and have seen this mentioned
tangentially, but never definitively.

Thanks,
John Blackburn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: How do you specify the compression amount for an image representation?
  • Next by Date: Re: Doc for IconComposer?
  • Previous by thread: How do you specify the compression amount for an image representation?
  • Next by thread: Re: Doc for IconComposer?
  • Index(es):
    • Date
    • Thread