• 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
Re: How to create an indexed color PNG file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create an indexed color PNG file


  • Subject: Re: How to create an indexed color PNG file
  • From: Scott Thompson <email@hidden>
  • Date: Tue, 18 Oct 2005 14:29:20 -0500


On Oct 14, 2005, at 6:16 PM, Martin Simoneau wrote:

Hi,

I'm new to Cocoa programming. I need to draw some text inside an image and save it as an indexed color PNG file with only 2 colors.

<code omitted>

The saved PNG file has the following characteristics:
    Color Model: RGB
    Depth: 8
    Has Alpha: 1
    Pixel Height: 480
    Pixel Width: 720
    Profile Name: 787LE

Is there a way to force an image to use an indexed color model and used a special color table? Can you suggest me some approaches to do it.

I don't believe there is any way to do what you wish with Quartz. Certainly it is the case that Quartz does not support indexed color spaces in general. You might need to look at linking libPNG into your application.


Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >How to create an indexed color PNG file (From: Martin Simoneau <email@hidden>)

  • Prev by Date: Re: Can you float a window above iPhoto slide show?
  • Next by Date: Re: Issue with NSXMLDocument and bad HTML
  • Previous by thread: How to create an indexed color PNG file
  • Next by thread: UInt8 * to NSString
  • Index(es):
    • Date
    • Thread