• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: non-uniform scaled NSBezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >non-uniform scaled NSBezierPath (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Miniature view
  • Next by Date: Re: CFStringRef == NSString* ?
  • Previous by thread: non-uniform scaled NSBezierPath
  • Next by thread: RE: PrintInfo and page margins
  • Index(es):
    • Date
    • Thread