Re: How to create an indexed color PNG file
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