Jump to content

PhaserJS - save image with pixi filter to cache


Preen
 Share

Recommended Posts

Is it possible to save a image that I've applied certains filters on?

 

colorMatrix = new PIXI.ColorMatrixFilter();

colorMatrix.matrix = [0,0.0,0.5,-0.2, 0,0,1.0,-0.2, 0.0,0.0,0.5,-0.2, 0.0,0.0,0.0,1]

image = game.make.bitmapData()

image.load("testpicture")

image.filters = [colorMatrix]

game.cache.addBitmapData("testImageWithFilter", image);

 

When I pick this up it doesn't have the filter applied abowe. Is this not possible?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...