CopyPixels With flip vertical and flip horizontal arguments
Posted: June 9th, 2008 | Author: Ivan Valadares | Filed under: Actionscript3, Code | 2 Comments »This function is like the copyPixels method from the bitmapdata class but let you flip horizontal and/or vertical the bitmapData.
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
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.