Resize PNG

Indsh

Veteran
Veteran
Joined
Oct 11, 2015
Messages
225
Reaction score
65
First Language
English
Primarily Uses
N/A
I have managed to create a system that copy and pastes PNGs whist the game is running for effects I have coded successfully,
now what I would now like to do is resize those PNGs.

Any advise between Canvus and Pixi to make this happen?
 

standardplayer

Keeper of Kitties
Veteran
Joined
Apr 6, 2016
Messages
698
Reaction score
3,450
First Language
English
Primarily Uses
N/A
What do you mean by added PNG's?
Are you loading the PNG as a texture into a pixi object?
If so, the PIXI.Graphics object you create will have
.scale.set(x, y) function.
 

Indsh

Veteran
Veteran
Joined
Oct 11, 2015
Messages
225
Reaction score
65
First Language
English
Primarily Uses
N/A
@standardplayer well original no I wasn't using this method, I did try it at one point but then couldn't convert the pixi object back into a PNG. Do you know how to do that?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
@Indsh I suggest you study some of the mapshot plugins that create a picture from the map data.
those have to write the data as png files to the HDD, and that means they contain functions on how to create a PNG from data.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,855
Messages
1,017,007
Members
137,563
Latest member
MinyakaAeon
Top