A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] Sharper Smoothed Bitmaps

  1. #1
    Junior Member
    Join Date
    Nov 2004
    Posts
    17

    resolved [RESOLVED] Sharper Smoothed Bitmaps

    Is there any way to get smoothed bitmaps that aren't quite as blurred?

    I'm building a 2D wheel of icons, each of which is a dynamically loaded png.

    I was hoping that if I imported crisp 100px by 100px .pngs into container clips that were scaled down to 50px-by-50px, they would be pretty clear when they were z-rotated. But I found that they were terribly aliased.

    So then I was hoping for crisp anti-aliased icons by loading the large .pngs into Bitmap objects with smoothing=true, then adding those Bitmaps to container clips which were scaled to 50%. I was expecting the bitmaps would be smoothed first, and then the blurryness would be reduced when the clips were shrunk. It looks though like the clips are smoothed after transformation, and they're noticeably blurry.

    Is there any way to achieve something in between, so the rotated images appear clearly?

  2. #2
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    smoothing is really only beneficial when scaling above 100%. Try messing with pixelSnapping.

  3. #3
    Junior Member
    Join Date
    Nov 2004
    Posts
    17
    Quote Originally Posted by jAQUAN View Post
    smoothing is really only beneficial when scaling above 100%. Try messing with pixelSnapping.
    Thanks for the reply! I can't agree that smoothing is not beneficial for unscaled or scaled down bitmaps if they are rotated. However, your pixelSnapping suggestion made me think to check that my wheel was centered on whole pixels. After removing the decimal from my wheel's x and y coordinates, the icons appear less blurry.

    I'll be animating my wheel so the icons revolve around the center point and I'm concerned that pixelSnapping may make their motion less fluid. But I may check it out anyway.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center