| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Mar 20, 2008, at 2:03 PM, James Walker wrote:
I want to create a 1-bit mask from an image file. I can create a CGImageRef from the file, but then what? CGImageMaskCreate wants the bitmap in memory, but apparently CGBitmapContextCreate cannot create a 1 bit per component bitmap context.
Create an 8 bit per component grayscale bitmap context and draw the image into that. Then create the mask from the grayscale image data.
| References: | |
| >image file as 1-bit mask (From: James Walker <email@hidden>) | |
| >Re: image file as 1-bit mask (From: Scott Thompson <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.