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

UIView antialiasing


  • Subject: UIView antialiasing
  • From: Conrad Shultz <email@hidden>
  • Date: Thu, 19 Aug 2010 13:21:48 -0700

Hi all,

I have what I feel should be a stupidly simple question but the answer is eluding me.

I have a custom UIView (actually, UIControl) that uses Core Graphics to draw its content. This works fine. I then rotate the UIView (using the transform property of the view), which gives a rotated view but with edge aliasing.

This is my problem: how do I properly antialias a rotated UIView? I naively tried calling in the drawing code what I would think are the relevant functions (e.g. CGContextSetAllowsAntialiasing and CGContextSetShouldAntialias) but they have no effect.

This matter has been discussed somewhat online (e.g. http://stackoverflow.com/questions/2465645/how-to-anti-alias-layers-in-iphoneos) but the proposed solution - adding a one pixel transparent border - seems clumsy and inelegant, which makes me wonder if there's a better way.

Any ideas?

Thanks in advance.

(P.S.- I apologize if this has been discussed here before; Apple's list archive search is being unresponsive for me.)

--
Conrad Shultz
www.synthetiqsolutions.com_______________________________________________

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: UIView antialiasing
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: NSImageView and ZoomFactors
  • Next by Date: Re: UIView antialiasing
  • Previous by thread: NSTextView rotation issues
  • Next by thread: Re: UIView antialiasing
  • Index(es):
    • Date
    • Thread