Skip to content

Commit 822056b

Browse files
committed
Minor test update
1 parent 36c8341 commit 822056b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: tests/test/openfl/display/BitmapDataTest.hx

+9
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,15 @@ class BitmapDataTest {
189189

190190
Assert.areEqual (hex (0xFFFF0000), hex (bitmapData.getPixel32 (0, 0)));
191191
Assert.areEqual (hex (0xFFFF0000), hex (bitmapData.getPixel32 (50, 50)));
192+
193+
var colorTransform = new ColorTransform (0, 0, 0, 1, 0x88, 0, 0, 0);
194+
195+
var bitmapData = new BitmapData (100, 100);
196+
bitmapData.__image.premultiplied = true;
197+
bitmapData.colorTransform (new Rectangle (0, 0, 50, 50), colorTransform);
198+
199+
Assert.areEqual (hex (0xFF880000), hex (bitmapData.getPixel32 (0, 0)));
200+
Assert.areEqual (hex (0xFFFFFFFF), hex (bitmapData.getPixel32 (50, 50)));
192201
#end
193202

194203
}

0 commit comments

Comments
 (0)