Sara Posted August 10, 2023 Share Posted August 10, 2023 I load a photo in zoom 3, but the image quality is very low. In zoom 1, it is good, but when I zoom in higher, the image is not sharp. The code I use is like this, I am working with version 7 of pixi and it is the latest version from pixi-viewport const texture = await Assets.load(url); const image = Sprite.from(texture, { resolution: 1, scaleMode: PIXI.SCALE_MODES.NEAREST, resourceOptions: { scale: viewport.scaled, autoLoad: true, MimeType: 'image/svg+xml' } } ); viewport.addChild(image); 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.