• 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: CALayer and pixel alignment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer and pixel alignment


  • Subject: Re: CALayer and pixel alignment
  • From: Seth Willits <email@hidden>
  • Date: Tue, 21 Dec 2010 22:25:04 -0800

On Dec 21, 2010, at 4:09 PM, Gideon King wrote:

> When I draw it in my CALayer drawing code, it's not always pixel aligned.

You need to make sure the layer is aligned correctly too. The anchor point by default is {0.5, 0.5}. If you place an oddly-sized layer on X.0 coordinate, it'll be unaligned. Same with an even sized layer on a X.5 coordinate.


--
Seth Willits



_______________________________________________

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: CALayer and pixel alignment
      • From: Gideon King <email@hidden>
References: 
 >CALayer and pixel alignment (From: Gideon King <email@hidden>)

  • Prev by Date: Re: Exception Location
  • Next by Date: Re: CALayer and pixel alignment
  • Previous by thread: CALayer and pixel alignment
  • Next by thread: Re: CALayer and pixel alignment
  • Index(es):
    • Date
    • Thread