• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to draw text with fade out effect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to draw text with fade out effect?


  • Subject: Re: How to draw text with fade out effect?
  • From: Oleg Krupnov <email@hidden>
  • Date: Thu, 29 Jan 2009 10:27:02 +0200

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 <email@hidden> wrote:
> On Wed, Jan 28, 2009 at 10:57 AM, Thomas Davie <email@hidden> 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 (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

  • Follow-Ups:
    • Re: How to draw text with fade out effect?
      • From: Ken Ferry <email@hidden>
    • Re: How to draw text with fade out effect?
      • From: Rob Keniger <email@hidden>
References: 
 >How to draw text with fade out effect? (From: Oleg Krupnov <email@hidden>)
 >Re: How to draw text with fade out effect? (From: Ricky Sharp <email@hidden>)
 >Re: How to draw text with fade out effect? (From: Thomas Davie <email@hidden>)
 >Re: How to draw text with fade out effect? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: one more NSPredicateEditor question
  • Next by Date: Re: How to draw text with fade out effect?
  • Previous by thread: Re: How to draw text with fade out effect?
  • Next by thread: Re: How to draw text with fade out effect?
  • Index(es):
    • Date
    • Thread