Version: 1.0

Posted: 2003-07-16

Build Requirements: N/A

Runtime Requirements: Mac OS X Mac OS X 10.2

View Source Code:

Download Sample (“Monochrome_Image.zip”, 456.5K)
Download Sample (“Monochrome_Image.dmg”, 520.0K)



Description

This example shows how to convert an NSImage instance to monochrome, by applying the NTSC color weighting formula. Please note that this is not the fastest way to perform this conversion, but it shoud generate results that are pretty accurate. Requirements: Mac OS X 10.2 Keywords: monochrome NSImage NSBitmapImageRep

Document Revision History

Date Notes
2003-07-16Applies the NTSC color weighting formula to an image to generate a monochrome version of the image.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.