On Nov 23, 2009, at 10:12 AM, R T wrote:

> I have a litho image (black & white pixels only) and I want to make all the 
> white pixels transparent. I am using Quartz 2d to display the image and I 
> have a Quartz composition containing a single .cikernel...

> Any ideas?
> 

Why not just draw it using one of the transfer modes like kCGBlendModeDarken or 
kCGBlendModeMultiply rather than generate multiple images, tweaking all their 
bits, custom kernels, etc...

Both modes should cause black pixels to be drawn as black, and white pixels to 
not change the image at all...


Glenn Andreas                      gandr...@gandreas.com 
The most merciful thing in the world ... is the inability of the human mind to 
correlate all its contents - HPL

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to