draw NSAttributedstring with transparency
draw NSAttributedstring with transparency
- Subject: draw NSAttributedstring with transparency
- From: Bernard Knaepen <email@hidden>
- Date: Fri, 23 Jul 2010 12:53:04 +0200
Hello,
I need to draw an NSAttributedString over an image. The characters of the string might have different sizes, fonts and colors.
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?
Thanks,
Bernard.
_______________________________________________
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