From e794614211ca94ba71196ed5e2a12406f2bcec93 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Sun, 23 Nov 2008 03:42:51 -0500 Subject: demonstrate incorrect copyPixels behavior --- test/image/BitmapData-copyPixels-5.swf | Bin 614 -> 646 bytes test/image/BitmapData-copyPixels-5.swf.png | Bin 501 -> 476 bytes test/image/BitmapData-copyPixels-6.swf | Bin 614 -> 646 bytes test/image/BitmapData-copyPixels-6.swf.png | Bin 501 -> 476 bytes test/image/BitmapData-copyPixels-7.swf | Bin 614 -> 646 bytes test/image/BitmapData-copyPixels-7.swf.png | Bin 501 -> 476 bytes test/image/BitmapData-copyPixels-8.swf | Bin 614 -> 650 bytes test/image/BitmapData-copyPixels-8.swf.png | Bin 3087 -> 3875 bytes test/image/BitmapData-copyPixels.as | 8 +++++--- 9 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/image/BitmapData-copyPixels-5.swf b/test/image/BitmapData-copyPixels-5.swf index 853a71c9..9fa8043c 100644 Binary files a/test/image/BitmapData-copyPixels-5.swf and b/test/image/BitmapData-copyPixels-5.swf differ diff --git a/test/image/BitmapData-copyPixels-5.swf.png b/test/image/BitmapData-copyPixels-5.swf.png index 60dd59cd..e8d1b929 100644 Binary files a/test/image/BitmapData-copyPixels-5.swf.png and b/test/image/BitmapData-copyPixels-5.swf.png differ diff --git a/test/image/BitmapData-copyPixels-6.swf b/test/image/BitmapData-copyPixels-6.swf index d0beb561..48b07773 100644 Binary files a/test/image/BitmapData-copyPixels-6.swf and b/test/image/BitmapData-copyPixels-6.swf differ diff --git a/test/image/BitmapData-copyPixels-6.swf.png b/test/image/BitmapData-copyPixels-6.swf.png index 777880ae..e8d1b929 100644 Binary files a/test/image/BitmapData-copyPixels-6.swf.png and b/test/image/BitmapData-copyPixels-6.swf.png differ diff --git a/test/image/BitmapData-copyPixels-7.swf b/test/image/BitmapData-copyPixels-7.swf index 748ddda4..7040f0b7 100644 Binary files a/test/image/BitmapData-copyPixels-7.swf and b/test/image/BitmapData-copyPixels-7.swf differ diff --git a/test/image/BitmapData-copyPixels-7.swf.png b/test/image/BitmapData-copyPixels-7.swf.png index f8f4bb16..e8d1b929 100644 Binary files a/test/image/BitmapData-copyPixels-7.swf.png and b/test/image/BitmapData-copyPixels-7.swf.png differ diff --git a/test/image/BitmapData-copyPixels-8.swf b/test/image/BitmapData-copyPixels-8.swf index d1e14c3c..9f962dd3 100644 Binary files a/test/image/BitmapData-copyPixels-8.swf and b/test/image/BitmapData-copyPixels-8.swf differ diff --git a/test/image/BitmapData-copyPixels-8.swf.png b/test/image/BitmapData-copyPixels-8.swf.png index 275f35bc..7a47760b 100644 Binary files a/test/image/BitmapData-copyPixels-8.swf.png and b/test/image/BitmapData-copyPixels-8.swf.png differ diff --git a/test/image/BitmapData-copyPixels.as b/test/image/BitmapData-copyPixels.as index d71b4ffe..0e762f90 100644 --- a/test/image/BitmapData-copyPixels.as +++ b/test/image/BitmapData-copyPixels.as @@ -1,4 +1,4 @@ -// makeswf -v 7 -s 200x150 -r 1 -o BitmapData-copyPixels.swf BitmapData-copyPixels.as +// makeswf -v 7 -s 300x150 -r 1 -o BitmapData-copyPixels.swf BitmapData-copyPixels.as trans = new flash.display.BitmapData (50, 50, true, 0); for (x = 0; x < 17; x++) { @@ -33,12 +33,14 @@ for (y = 1; y < 50; y *= 2) { array = [ trans, opa, mask ]; for (y = 0; y < 3; y++) { - for (x = 0; x < 4; x++) { + for (x = 0; x < 6; x++) { bm = array[y].clone (); if (x < 2) bm.copyPixels (array[x % 2], { x: 20, y: 20, width: 20, height: 20 }, { x: 11, y: 11 }); - else + else if (x < 4) bm.copyPixels (trans, { x: 20, y: 20, width: 20, height: 20 }, { x: 11, y: 11 }, mask, { x: 0, y: 0}, x == 3); + else + bm.copyPixels (trans, { x: 20, y: 20, width: 20, height: 20 }, { x: 11, y: 11 }, null, null, x == 5); a = createEmptyMovieClip ("image" + getNextHighestDepth (), getNextHighestDepth ()); a.attachBitmap (bm, 0); a._x = x * 50; -- cgit v1.2.3