Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
anti-aliasing doesn't work when scaling a sprite down. — Gideros Forum

anti-aliasing doesn't work when scaling a sprite down.

RogerTRogerT Member
edited May 2013 in General questions
Hi guys,
I am trying to draw my bitmaps on a sprite and then scale it accordingly to phone screen size.

background1 = Bitmap.new(Texture.new("kuzgfx/background1.png"),true)
stgSprite = Sprite.new()
stgSprite:addChild(background1)
stgSprite:setScale(0.75)
stage:addChild(stgSprite)

it does scale down, yet the edges are jagged. any ideas what I did wrong?

Thanks! )

Comments

  • ar2rsawseenar2rsawseen Maintainer
    Accepted Answer
    @RogerT true parameter should be passed to texture and not Bitmap, like this:
    background1 = Bitmap.new(Texture.new("kuzgfx/background1.png", true))

    Likes: RogerT

    +1 -1 (+1 / -0 )Share on Facebook
  • RogerTRogerT Member
    Thanks! works. )))
Sign In or Register to comment.