• 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: Simone Tellini <email@hidden>
  • Date: Wed, 05 May 2010 18:01:43 +0200

On Wed, 5 May 2010 17:52:53 +0200, Gustavo Pizano
<email@hidden> wrote:

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

yes, and use the resulting rect's origin as reference point for your
drawing.

> 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?

you can turn it on/off according to your needs: ie. turn it off, draw
vertical/horizontal lines that you don't want to become blurry, turn it on
and draw the rest.

--
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

  • Follow-Ups:
    • Re: Avoid drawing in half pixel
      • From: Alastair Houghton <email@hidden>
    • Re: Avoid drawing in half pixel
      • From: Gustavo Pizano <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>)
 >Re: Avoid drawing in half pixel (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: Avoid drawing in half pixel
  • Next by Date: Re: Weird "iPhone OS 4.0 Library" dialog popping up
  • Previous by thread: Re: Avoid drawing in half pixel
  • Next by thread: Re: Avoid drawing in half pixel
  • Index(es):
    • Date
    • Thread