Yeah, the question is however how do I technically (e.g. in Cocoa)
composite the "appropriate alpha" with an image, whether the
background image, as you suggest, or with text image, as Ricky
suggested.

AFAIU, there is not such NSCompositingOperation to do this trick. It
appears that I need to iterate all pixels of the intermediate bitmap,
and multiply the transparency value by the mask. This is quite
low-level, is there a better way?


On Thu, Jan 29, 2009 at 8:32 AM, Kyle Sluder <kyle.slu...@gmail.com> wrote:
> On Wed, Jan 28, 2009 at 10:57 AM, Thomas Davie <tom.da...@gmail.com> wrote:
>> This solution will also throw sub-pixel anti-aliasing in the bin.
>
> Perhaps the better solution is to draw the text as normal and then
> re-draw the background with the appropriate alpha on top.
>
> --Kyle Sluder
>
_______________________________________________

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