Re: Possible to draw an NSMutableAttributedString into a CGContextRef?
Re: Possible to draw an NSMutableAttributedString into a CGContextRef?
- Subject: Re: Possible to draw an NSMutableAttributedString into a CGContextRef?
- From: Scott Ribe <email@hidden>
- Date: Fri, 13 Apr 2007 12:28:20 -0600
- Thread-topic: Possible to draw an NSMutableAttributedString into a CGContextRef?
> You could create an NSGraphicsContext with
> +graphicsContextWithGraphicsPort and then render the string into it.
You might also have to flip it, translate it, rotate it to get it oriented
and drawn properly into the context (use NSAffineTransform). My most recent
experience was with a context for printing, in landscape, and I got a pretty
serious headache trying to make the text come out with the letters right
side up & not mirrored, and drawn left to right & top to bottom, all at the
same time. But it does work.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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