Is it possible to clear an image without creating a new one? With ‘clear’ I mean set all pixels to transparent.

Is it possible to clear an image without creating a new one? With ‘clear’ I mean set all pixels to transparent.

]]>

3 Commentsto Is it possible to clear an image without creating a new one? With ‘clear’ I mean set all pixels to transparent.

  1. Anonymous says:

    < ![CDATA[

    What about this?



    var img=i.getImage(); //or whatever


    var bit=img.getBitmap();


    bit.eraseColor(Color.TRANSPARENT);


    img.update();

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Works, thanks



    Btw: big project incoming

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Waiting for it 🙂

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *