• 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: email@hidden
  • Date: Thu, 29 Jan 2009 11:17:40 +0100


On 29 Jan 2009, at 09:33, Rob Keniger wrote:


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.

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.


One of the problems with ... is how useless it becomes when dealing with truncating numbers (especially in table columns), or any text when the available space is very limited such that only the first character gets drawn. Using a fade can often get you another 2 or 3 useful characters drawn.


e.g 100, 123, 198 all truncate to 1...

I too have implemented a fading scheme similar to Oleg and also gave up trying to accomplish the same thing over a background that was not under the control of the text drawing code.

Another option is just to use a straight clip, instead of fade or truncate. If you resize Mail's Size column you will see that this is what it does.

Matt Gough
_______________________________________________

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


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>)
 >Re: How to draw text with fade out effect? (From: Oleg Krupnov <email@hidden>)
 >Re: How to draw text with fade out effect? (From: Rob Keniger <email@hidden>)

  • Prev by Date: NSLevelIndicator Rating with "half" stars
  • Next by Date: Re: NSLevelIndicator Rating with "half" stars
  • 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