Sign in to follow this  
mRax

Export after resize...

Recommended Posts

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

Share this post


Link to post
Share on other sites

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?

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.