• 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: NSBezierPath linewidth not correct
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierPath linewidth not correct


  • Subject: Re: NSBezierPath linewidth not correct
  • From: Gustavo Pizano <email@hidden>
  • Date: Sat, 2 Jan 2010 11:58:57 +0100

No worries, I modify it and in fact it does work, but the background images will display a .5 gap between along the horizon between the images that conform the background, so I will put just a .5 to everywhere I need instead...


Gustavo


On Jan 2, 2010, at 11:43 AM, Gustavo Pizano wrote:

> Forgot to mention... or ask.
>
>
> I guess this come from where the view its positioned.. so If I want to draw anything I will have to do it at .5 on each point, shall I change instead the y origin to a .5 coordinate so I will don't don't put .5 on each drawing I make in the view? or the mistake comes from far more other place?
>
> Thanks
>
> Gustavo
>
> On Jan 2, 2010, at 11:37 AM, Graham Cox wrote:
>
>>
>> On 02/01/2010, at 9:29 PM, Gustavo Pizano wrote:
>>
>>> but nothing seems to work... what am I missing here?
>>
>>
>> You're drawing the line at an integer coordinate. That places it exactly between the pixels on the screen, so to anti-alias the line, it gets drawn on both sides at half brightness. Adding 0.5 to the x, y coordinates will draw a crisp 1 pixel wide line.
>>
>> --Graham
>>
>>
>

_______________________________________________

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

  • Follow-Ups:
    • Re: NSBezierPath linewidth not correct
      • From: Rob Keniger <email@hidden>
References: 
 >NSBezierPath linewidth not correct (From: Gustavo Pizano <email@hidden>)
 >Re: NSBezierPath linewidth not correct (From: Graham Cox <email@hidden>)
 >Re: NSBezierPath linewidth not correct (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: NSBezierPath linewidth not correct
  • Next by Date: Re: Setting the Line Height/ Line Spacing in an NSTextView.
  • Previous by thread: Re: NSBezierPath linewidth not correct
  • Next by thread: Re: NSBezierPath linewidth not correct
  • Index(es):
    • Date
    • Thread