programmer-on-the-street

When the bomb drops, the real fun begins, so let's get to work.

Thursday, June 10, 2010

iPhone dev Stupidity 130: antialiasing on a rotated view

from stackoverflow:

For a UIImageView, add a one-pixel transparent border around the image. This will cause the edges of your image to be on the "inside", and because the inside pixels are interpolated when rotating, the borders will magically become antialiased. This also works for rotating UIButtons that have a custom image.

Posted by al_lea at 9:36 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

My photo
al_lea
i write noki, fio, grag and luabit.
View my complete profile

Blog Archive

  • ►  2011 (7)
    • ►  February (3)
    • ►  January (4)
  • ▼  2010 (20)
    • ►  November (5)
    • ▼  June (10)
      • iPhone dev Stupidity 130: antialiasing on a rotate...
      • iPhone dev Stupidity 129: -all_load -ObjC linker f...
      • iPhone dev Stupidity 128: Photo orientation issue ...
      • iPhone dev Stupidity 127: How Three20 works
      • iPhone dev Stupidity 126: private folder for images
      • iPhone dev Stupidity 125: lack of EXIF with the iP...
      • iPhone dev Stupidity 124: Rotating view around arb...
      • iPhone dev Stupidity 123: How to launch iPhone Cam...
      • iPhone dev Stupidity 122: Customize bars, buttons,...
      • iPhone dev Stupidity 121: Drawing gloss gradients ...
    • ►  March (1)
    • ►  January (4)
  • ►  2009 (126)
    • ►  December (6)
    • ►  November (18)
    • ►  October (66)
    • ►  June (16)
    • ►  May (16)
    • ►  March (4)

Labels

  • aquamacs lisp slime emacs
  • clojure
  • Lisp
  • lisp symbol
Awesome Inc. theme. Powered by Blogger.