mRax Posted May 28, 2018 Share Posted May 28, 2018 So, my code: // create app like new PIXI.Application({ width: 1024, height: 540, // ... // to do something // ... renderer.resize(4096,2056) // then replace textures to hi-res , etc // and try to get png file from canvas var data = renderer.extract.base64() and... data is 1024 x 540 ... How to get data with new (resized) resolutions? Tnx Quote Link to comment Share on other sites More sharing options...
mRax Posted May 29, 2018 Author Share Posted May 29, 2018 I used renderer.width = 4096; renderer.height = 2056; its seems works but i`ve another problem... its work just if i use some delay before extract like setTimeout(function(){ //.... var data = renderer.extract.base64() /// }, 3000) have any best practices for this situation? 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.