gdiplus: Add tests for drawing recorded metafiles.
This commit is contained in:
parent
a19fb6086b
commit
954b49382f
|
@ -426,6 +426,21 @@ static void test_getdc(void)
|
|||
expect(Ok, stat);
|
||||
expect(0, color);
|
||||
|
||||
stat = GdipBitmapSetPixel(bitmap, 15, 15, 0);
|
||||
expect(Ok, stat);
|
||||
|
||||
stat = GdipDrawImagePointsRect(graphics, (GpImage*)metafile, dst_points, 3,
|
||||
0.0, 0.0, 100.0, 100.0, UnitPixel, NULL, NULL, NULL);
|
||||
todo_wine expect(Ok, stat);
|
||||
|
||||
stat = GdipBitmapGetPixel(bitmap, 15, 15, &color);
|
||||
expect(Ok, stat);
|
||||
expect(0, color);
|
||||
|
||||
stat = GdipBitmapGetPixel(bitmap, 50, 50, &color);
|
||||
expect(Ok, stat);
|
||||
todo_wine expect(0xff0000ff, color);
|
||||
|
||||
stat = GdipDeleteGraphics(graphics);
|
||||
expect(Ok, stat);
|
||||
|
||||
|
@ -530,6 +545,21 @@ static void test_emfonly(void)
|
|||
expect(Ok, stat);
|
||||
expect(0xff0000ff, color);
|
||||
|
||||
stat = GdipBitmapSetPixel(bitmap, 50, 50, 0);
|
||||
expect(Ok, stat);
|
||||
|
||||
stat = GdipDrawImagePointsRect(graphics, (GpImage*)metafile, dst_points, 3,
|
||||
0.0, 0.0, 100.0, 100.0, UnitPixel, NULL, NULL, NULL);
|
||||
todo_wine expect(Ok, stat);
|
||||
|
||||
stat = GdipBitmapGetPixel(bitmap, 15, 15, &color);
|
||||
expect(Ok, stat);
|
||||
expect(0, color);
|
||||
|
||||
stat = GdipBitmapGetPixel(bitmap, 50, 50, &color);
|
||||
expect(Ok, stat);
|
||||
todo_wine expect(0xff0000ff, color);
|
||||
|
||||
stat = GdipDeleteGraphics(graphics);
|
||||
expect(Ok, stat);
|
||||
|
||||
|
|
Loading…
Reference in New Issue