CopyPixels With flip vertical and flip horizontal arguments

This function is like the copyPixels method from the bitmapdata class but let you flip horizontal and/or vertical the bitmapData.

Example swf

Example fla

2 Responses to “CopyPixels With flip vertical and flip horizontal arguments”

  1. Andrei Thomaz Says:

    dear Ivan,

    have you made some comparison with the use of copyPixels with a matrix using a negative scale (to make the glips) and some translation (to put the flipped pixels in the right place)? Excuse me for not testing myself.

    best,
    andrei

  2. ivan valadares Says:
    Hello Andrei, no I didn’t compare with velocities of changing the matrix, using de matrix the result is the same but faster. I didn’t do that, because for the example that I was doing it would be more complicate. But thanks for the question; I will post the flip vertical and horizontal using matrix.

Leave a Reply