mderryberry Posted August 13, 2015 Share Posted August 13, 2015 Hi,I just started working with Pixi.js and am trying to scale down sprites without losing the resolution. For example, if I have an image of size 72x72 and apply a scale to it such as: var texture = PIXI.Texture.fromImage("image.png");var sprite = new PIXI.Sprite(texture);sprite.scale.x = 0.1;sprite.scale.x = 0.1; This scales the size down nicely, however the image becomes extremely blurry. Is there a way to fix this? I have tried using PIXI.SCALE_MODES.NEAREST but it produces the same effect Quote Link to comment Share on other sites More sharing options...
xerver Posted August 13, 2015 Share Posted August 13, 2015 IT is because it scales linearly (or bicubic if in canvas), how did you apply the nearest filter? Can you show me an example where both methods show the same result? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.