Re: Drawing strings and line heights off (NSTextView)
Re: Drawing strings and line heights off (NSTextView)
- Subject: Re: Drawing strings and line heights off (NSTextView)
- From: John Randolph <email@hidden>
- Date: Mon, 26 Jan 2004 14:39:23 -0800
On Jan 24, 2004, at 2:57 AM, Francisco Tolmasky wrote:
Does drawInRect: do something differently?
-compositeToPoint:... and -drawInRect:... methods of NSImage do behave
differently. -compositeToPoint: is faster, since it doesn't honor the
current transformation matrix when rendering the image.[1] -drawInRect
will take into account any scaling, rotation, etc.
-jcr
[1] to be precise: -compositeToPoint:.. methods will figure out where
the point is in the current coordinate space, and will composite the
image at that point without rotation or scaling.
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.