Jump to content

Image Becomes Jagged When Scaled Down


threedollarbill
 Share

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

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...