Re: non-uniform scaled NSBezierPath
Re: non-uniform scaled NSBezierPath
- Subject: Re: non-uniform scaled NSBezierPath
- From: Glenn Andreas <email@hidden>
- Date: Wed, 21 Apr 2004 16:52:19 -0500
At 11:21 PM +0200 4/21/04, Gerriet M. Denkmann wrote:
I have a NSBezierPath which is scaled differently in x and y. This
makes vertical lines much thicker than horizontal ones. Which looks
silly.
In the good old days of Display Postscript I used to do some magic like:
DPSDoUserPath( ...., dps_uappend ) ;
// trick to ensure line width is independent of zoom:
PSgsave();
PSmatrix();
PSdefaultmatrix();
PSsetmatrix();
PSstroke();
PSgrestore();
Is there any way to do the same with NSBezierPath?
How about NSAffineTransformation transformBezierPath: to get a new
path which is scaled like you want? (rather than transforming the
drawing which scales the pen)
--
Glenn Andreas email@hidden
mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
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.