threedollarbill

Image Becomes Jagged When Scaled Down

Recommended Posts

I have a transparent image which i am adding on to the stage. The original image is crisp and smooth. However, when I scale it down, it becomes jagged.

I am scaling the image with imageSprite.scale.setTo(0.25390625);

I've already tried the following and nothing made a difference:

1.) Set the sprite's "smoothed" property to true
imageSprite.smoothed = true;

2.) Enable antialiasing
new Phaser.Game(754, 690, Phaser.CANVAS, "game_container", null, false, true);

3.) Round pixels
this.game.renderer.renderSession.roundPixels = true;

I've attached a screenshot of what I'm seeing, and the original image if anybody wants to test it on their own.

I would appreciate it if someone could give a solution for this. Thanks.

 

screenshot.png

ant.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.