Re: Drawing Text in an NSImage
Re: Drawing Text in an NSImage
- Subject: Re: Drawing Text in an NSImage
- From: Kyle Sluder <email@hidden>
- Date: Sat, 29 Aug 2009 14:42:14 -0700
On Aug 29, 2009, at 2:21 PM, Seth Willits <email@hidden> wrote:
String drawing always happens relative to the view's orientation,
not the image's. If the view is flipped and you draw into an image,
then draw that image, the string will be upside down. That's the
reason I'm assuming they say not to do it.
Sounds like a misunderstanding about image flippedness. Check the 10.6
AppKit release notes and you'll see they have removed the flipped
property altogether.
Also, the release notes indicate that drawing will not always happen
in a window or view. You will always have a graphics context, though,
so start thinking in terms of the context's Current Transformation
Matrix.
--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