Jump to content

Replacing color in BitmapData does not work in IE9


Recommended Posts

Hi there,


Can't find a workaround for this : BitmapData.replaceRGB() does work in the major part or web browser, but it does not work in IE9, even with the polyfill under the Resources folder.


Example : 

this.bmdShape = game.add.bitmapData(330, 250).load('shape');this.bmdShape.replaceRGB(255, 255, 255, 255, 0, 0, 0, 0, 255);

This piece of code replaces the white color by transparent pixels. It works everywhere else apparently.


Any idea ?

Link to comment
Share on other sites


  • Recently Browsing   0 members

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