Re: How to draw text with fade out effect?
Re: How to draw text with fade out effect?
- Subject: Re: How to draw text with fade out effect?
- From: Rob Keniger <email@hidden>
- Date: Thu, 29 Jan 2009 18:33:43 +1000
On 29/01/2009, at 6:27 PM, Oleg Krupnov wrote:
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?
Yes, Core Image. But you should read Quincey's post, which I agree
with. Unless you have a very good reason to do otherwise, you should
just use the standard text truncation options.
--
Rob Keniger
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden