• 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 unwanted blurring
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer unwanted blurring


  • Subject: Re: CALayer unwanted blurring
  • From: Gustavo Pizano <email@hidden>
  • Date: Mon, 19 Jan 2009 20:45:26 +0100

Hello, I had similar problem when making a layer rotation over the z axis, so if I understood good, if I Have an even Width/Height of the layer, I should reposition it after the rotation on a pixel, and if I have an odd Width/Height, then in a half pixel?. Am I right, maybe I can apply this theory to my problem when rotating the layer, which in fact would be simply modifying the layer by +/- 1 pixel to make it even in both dimensions.


Gustavo


On 19.1.2009, at 19:21, David Duncan wrote:

On Jan 17, 2009, at 4:30 PM, Joe Wildish wrote:

Anyway, I did find a post on this list that mentions a similar problem (http://www.cocoabuilder.com/archive/message/cocoa/2008/12/13/225352 ). However, in my case I am not applying any transforms to the layer hierarchy, and I am also ensuring that the frame origin of each object is drawn at a "whole number" point (both of these things are mentioned as potential causes in that thread).


Your suffering from the same problem as above. The frame origin is not what matters, but rather the layer's position (all aspects of the frame are synthesized from other properties of the layer). Depending on if your layer's dimensions are odd or even the position should be on the pixel or on the half pixel to avoid antialiasing like this.
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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


References: 
 >CALayer unwanted blurring (From: Joe Wildish <email@hidden>)
 >Re: CALayer unwanted blurring (From: David Duncan <email@hidden>)

  • Prev by Date: Re: "Cocoa Fundamentals Guide" Clarification
  • Next by Date: Re: NSOutlineView, tracking in a custom NSTextFieldCell, & Shift&Cmd Keys
  • Previous by thread: Re: CALayer unwanted blurring
  • Next by thread: Re: CALayer unwanted blurring
  • Index(es):
    • Date
    • Thread