• 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: NSBezierCurve and Line Width
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierCurve and Line Width


  • Subject: Re: NSBezierCurve and Line Width
  • From: Ricky Sharp <email@hidden>
  • Date: Fri, 03 Dec 2004 09:46:43 -0600

On Friday, December 03, 2004, at 04:39AM, Jeff LaMarche <email@hidden> wrote:

>I'm drawing a line segment with rounded end caps by stroking an
>NSBezierCurve I've defined. Right now, the line has a uniform
>thickness, but what I'd like to be able to do is to have the line width
>change from point A to point B. So, for example, instead of a 4px line
>all the way, I'd like it to start at 6px at point A, and end up as 3 px
>in width by point B.
>
>Is there an easy way to do this? The code to create this using polygons
>is a little daunting, so I don't want to tackle it unless absolutely
>necessary.

It may be possible to produce the effect you're after using a transformation matrix (e.g. a "distort" transform).  Not sure though if that would be more difficult than using your polygon approach.

--
Rick Sharp
Instant Interactive(tm)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSBezierCurve and Line Width
      • From: "R. Scott Thompson" <email@hidden>
References: 
 >NSBezierCurve and Line Width (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: NSKernAttributeName ???
  • Next by Date: Re: SuperScript to baseline offset
  • Previous by thread: Re: NSBezierCurve and Line Width
  • Next by thread: Re: NSBezierCurve and Line Width
  • Index(es):
    • Date
    • Thread