Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing a compressed PNG image



I have some monochrome PNG’s that are not drawing in Quartz with the correct foreground / background color orientation.  i.e. the black pixels are coming out white and the white pixels are coming out black.

 

This is only happening with PNG’s that have a clutID == 0 in the ImageDescription structure I am getting from Quicktime.  When this field is 0, it seems that the ImageDescription idSize  is 24 bytes larger to accommodate a ColorTable at the end.

 

I am creating my PNG data provider with a pointer to the image data portion of the atom, which is separate from the ImageDescription that has the color table.  It seems to draw ok except for the color inversion.  I thought that the ImageDescription part of a Quicktime atom was just a redundant extraction of information from the image data.

 

Is this possibly a bug in Quartz handling of PNG’s, or am I not supplying the right information to Quartz?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.