• 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: draw NSAttributedstring with transparency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: draw NSAttributedstring with transparency


  • Subject: Re: draw NSAttributedstring with transparency
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 23 Jul 2010 07:26:51 -0700

On Jul 23, 2010, at 4:41 AM, Andreas Mayer <email@hidden> wrote:

>
> Am 23.07.2010 um 12:53 Uhr schrieb Bernard Knaepen:
>
>> I am currently using the drawAtPoint method but I would like to specify a global opacity (transparency) to draw the string. Is there a way to do this or should I scan the whole string and make the changes to each character color individually by using the colorWithAlphaComponent method?
>
> You could draw the string to an intermediate image and composite that image with the desired opacity onto the target image.

This would prevent Quartz from being able to perform subpixel antialiasing, resulting is crummy text.

--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

References: 
 >draw NSAttributedstring with transparency (From: Bernard Knaepen <email@hidden>)
 >Re: draw NSAttributedstring with transparency (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: draw NSAttributedstring with transparency
  • Next by Date: Re: NSPropertyListSerialization and string encoding
  • Previous by thread: Re: draw NSAttributedstring with transparency
  • Next by thread: Re: draw NSAttributedstring with transparency
  • Index(es):
    • Date
    • Thread