• 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: Avoid drawing in half pixel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avoid drawing in half pixel


  • Subject: Re: Avoid drawing in half pixel
  • From: Gustavo Pizano <email@hidden>
  • Date: Wed, 5 May 2010 17:52:53 +0200

Hello Simone.

So at the beginning of my drawRect, shall I use NSIntegralRect([self bounds])?

Im gonna give a try...   most probably I need antialiasing, because Im drawing some strings also in the view, so having no AA will affect them isn't it?

G.

On May 5, 2010, at 5:46 PM, Simone Tellini wrote:

> On Wed, 05 May 2010 17:40:24 +0200, Simone Tellini
> <email@hidden>
> wrote:
>> _______________________________________________
>>
>
> ok, this weird. If I reply with Thunderbird, the body of the message gets
> eaten by the mailing list server.
>
> I was saying:
>
>> I was reading the apple docs about this topic,  and I tried at the
> beginning of my drawRect
>> method I did as in "Converting Coordinate Values" topic suggest to
> convert my starting
>> drawing point,  but that din't help. I still see the above behavior.
>
> you should probably leave the view frame alone. You could use
> NSIntegralRect() to properly adjust the coordinates of the area you draw
> in.
>
> Or you can disable anti-aliasing, if not needed. Check
> -setShouldAntialias: in NSGraphicsContext
>
> --
> Simone Tellini
> http://www.tellini.org
> _______________________________________________
>
> 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

_______________________________________________

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: Avoid drawing in half pixel
      • From: Simone Tellini <email@hidden>
References: 
 >Avoid drawing in half pixel (From: Gustavo Pizano <email@hidden>)
 >Re: Avoid drawing in half pixel (From: Simone Tellini <email@hidden>)
 >Re: Avoid drawing in half pixel (From: Gustavo Pizano <email@hidden>)
 >Re: Avoid drawing in half pixel (From: Simone Tellini <email@hidden>)
 >Re: Avoid drawing in half pixel (From: Simone Tellini <email@hidden>)

  • Prev by Date: Re: Avoid drawing in half pixel
  • Next by Date: Re: Authenticate NSFileManager Operations
  • Previous by thread: Re: Avoid drawing in half pixel
  • Next by thread: Re: Avoid drawing in half pixel
  • Index(es):
    • Date
    • Thread