• 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: Why CGPathAddCurveToPoint returns to the origin?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why CGPathAddCurveToPoint returns to the origin?


  • Subject: Re: Why CGPathAddCurveToPoint returns to the origin?
  • From: Gustavo Pizano <email@hidden>
  • Date: Sat, 6 Mar 2010 09:00:34 +0100

Hello Henry thanks for the methods, definitely after this I will re-check 3 times why things don't draw as I expect.

G.

On Mar 6, 2010, at 6:54 AM, Henry McGilton wrote:

>
> On Mar 5, 2010, at 10:07 AM, Gustavo Pizano wrote:
>
>> Hello Duncan.
>>
>> I want to draw the inside of a UIButton with a gradient,  so I just place in IB a Cusotm Buttom, and in the drawRect I taking its bounds, and from there Im getting the midX,minX etc.
>> So let me see if I get this straight, and rechecking the docs,.
>>
>> OHHHHH OMG!!
>> I m such an idiot, I was using the wrong method, I needed the CGContextAddArcToPoint,...
>>
>> my mistake... sorry
>
>
> Just for laughs, I have placed a ZIP file on my web site at:
>
>        http://www.trilithon.com/download/CoreGraphicsExtras.zip
>
> which contains functions for drawing Round-Corner-Rectangles in either a CGPath or a CGContext.
>
>
>
>    Cheers,
>        . . . . . . . .    Henry
>
>        www.nonatomic-retain.com
>

_______________________________________________

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

References: 
 >Why CGPathAddCurveToPoint returns to the origin? (From: Gustavo Pizano <email@hidden>)
 >Re: Why CGPathAddCurveToPoint returns to the origin? (From: Gustavo Pizano <email@hidden>)
 >Re: Why CGPathAddCurveToPoint returns to the origin? (From: Gustavo Pizano <email@hidden>)
 >Re: Why CGPathAddCurveToPoint returns to the origin? (From: David Duncan <email@hidden>)
 >Re: Why CGPathAddCurveToPoint returns to the origin? (From: Gustavo Pizano <email@hidden>)
 >Re: Why CGPathAddCurveToPoint returns to the origin? (From: Henry McGilton <email@hidden>)

  • Prev by Date: Re: Why CGPathAddCurveToPoint returns to the origin?
  • Next by Date: Quotation marks in NSMenu
  • Previous by thread: Re: Why CGPathAddCurveToPoint returns to the origin?
  • Next by thread: Custom View in Toolbar
  • Index(es):
    • Date
    • Thread