“Be inspired, enjoy your work, keep learning and never forget to play.” — gskinner

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.

Example swf

Example fla


2 Comments on “CopyPixels With flip vertical and flip horizontal arguments”

  1. 1 Andrei Thomaz said at 9:23 pm on June 9th, 2008:

    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. 2 ivan valadares said at 7:57 pm on June 10th, 2008:

    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