38DEFINE_GUID(BlurEffectGuid, 0x633c80a4, 0x1843, 0x482b, 0x9e, 0xf2, 0xbe, 0x28, 0x34, 0xc5, 0xfd, 0xd4);
39DEFINE_GUID(SharpenEffectGuid, 0x63cbf3ee, 0xc526, 0x402c, 0x8f, 0x71, 0x62, 0xc5, 0x40, 0xbf, 0x51, 0x42);
40DEFINE_GUID(ColorMatrixEffectGuid, 0x718f2615, 0x7933, 0x40e3, 0xa5, 0x11, 0x5f, 0x68, 0xfe, 0x14, 0xdd, 0x74);
41DEFINE_GUID(ColorLUTEffectGuid, 0xa7ce72a9, 0x0f7f, 0x40d7, 0xb3, 0xcc, 0xd0, 0xc0, 0x2d, 0x5c, 0x32, 0x12);
42DEFINE_GUID(BrightnessContrastEffectGuid, 0xd3a1dbe1, 0x8ec4, 0x4c17, 0x9f, 0x4c, 0xea, 0x97, 0xad, 0x1c, 0x34, 0x3d);
43DEFINE_GUID(HueSaturationLightnessEffectGuid, 0x8b2dd6c3, 0xeb07, 0x4d87, 0xa5, 0xf0, 0x71, 0x08, 0xe2, 0x6a, 0x9c, 0x5f);
44DEFINE_GUID(LevelsEffectGuid, 0x99c354ec, 0x2a31, 0x4f3a, 0x8c, 0x34, 0x17, 0xa8, 0x03, 0xb3, 0x3a, 0x25);
45DEFINE_GUID(TintEffectGuid, 0x1077af00, 0x2848, 0x4441, 0x94, 0x89, 0x44, 0xad, 0x4c, 0x2d, 0x7a, 0x2c);
46DEFINE_GUID(ColorBalanceEffectGuid, 0x537e597d, 0x251e, 0x48da, 0x96, 0x64, 0x29, 0xca, 0x49, 0x6b, 0x70, 0xf8);
47DEFINE_GUID(RedEyeCorrectionEffectGuid, 0x74d29d05, 0x69a4, 0x4266, 0x95, 0x49, 0x3c, 0xc5, 0x28, 0x36, 0xb6, 0x32);
48DEFINE_GUID(ColorCurveEffectGuid, 0xdd6a0022, 0x58e4, 0x4a67, 0x9d, 0x9b, 0xd4, 0x8e, 0xb8, 0x81, 0xa5, 0x3d);
56#define expect(expected, got) ok((got) == (expected), "Expected %d, got %d\n", (UINT)(expected), (UINT)(got))
57#define expectf(expected, got) ok(fabs((expected) - (got)) < 0.0001, "Expected %f, got %f\n", (expected), (got))
61 if (
abs((c1 & 0xff) - (c2 & 0xff)) > max_diff)
return FALSE;
63 if (
abs((c1 & 0xff) - (c2 & 0xff)) > max_diff)
return FALSE;
65 if (
abs((c1 & 0xff) - (c2 & 0xff)) > max_diff)
return FALSE;
67 if (
abs((c1 & 0xff) - (c2 & 0xff)) > max_diff)
return FALSE;
115 ok_(__FILE__,
line)(
stat ==
Ok,
"Failed to create a Bitmap\n");
136 ok(
NULL != bm,
"Expected bitmap to be initialized\n");
143 ok( !bm,
"expected null bitmap\n" );
148 ok( !bm,
"expected null bitmap\n" );
153 ok( !bm,
"expected null bitmap\n" );
158 ok(
NULL != bm,
"Expected bitmap to be initialized\n");
165 ok( !bm,
"expected null bitmap\n" );
170 ok( bm == (
GpBitmap*)0xdeadbeef,
"expected deadbeef bitmap\n" );
175 ok(
NULL != bm,
"Expected bitmap to be initialized\n");
182 ok( !bm,
"expected null bitmap\n" );
196 memset(rbmi, 0,
sizeof(rbmi));
216 ok(
NULL != bm,
"Expected bitmap to be initialized\n");
229 ok(
NULL != bm,
"Expected bitmap to be initialized\n");
242 ok(
NULL != bm,
"Expected bitmap to be initialized\n");
255 ok(
NULL != bm,
"Expected bitmap to be initialized\n");
268 ok(
NULL != bm,
"Expected bitmap to be initialized\n");
281 ok(
NULL != bm,
"Expected bitmap to be initialized\n");
306 ok((
GpBitmap*)0xdeadbeef != bm,
"Expected bitmap to not be 0xdeadbeef\n");
307 ok(
NULL != bm,
"Expected bitmap to not be NULL\n");
333 GUID dimension = {0};
340 ok((
GpBitmap*)0xdeadbeef != bm,
"Expected bitmap to not be 0xdeadbeef\n");
341 ok(
NULL != bm,
"Expected bitmap to not be NULL\n");
401 static const WCHAR nonexistentW[] = {
'n',
'o',
'n',
'e',
'x',
'i',
's',
't',
'e',
'n',
't',0};
409 ok(bm == (
GpBitmap *)0xdeadbeef,
"returned %p\n", bm);
414 ok(!bm,
"returned %p\n", bm);
541 for (
i = 0;
i <
n;
i++)
556 ok(
FALSE,
"No BMP codec found.\n");
594 ((
char*)bd.
Scan0)[2] = 0xff;
679 ok(0xc3 != ((
BYTE*)bd.
Scan0)[2 + bd.
Stride * 5],
"original image bits are readable\n");
701 ok(0xc3 != ((
BYTE*)bd.
Scan0)[2 + bd.
Stride * 5],
"original image bits are readable\n");
719 ok(0xff != ((
BYTE*)bd.
Scan0)[2],
"original image bits are readable\n");
720 ok(0xc3 != ((
BYTE*)bd.
Scan0)[2 + bd.
Stride * 5],
"original image bits are readable\n");
777 ((
char*)bd.
Scan0)[2] = 0xff;
899 HPALETTE hpal =
NULL;
904 const REAL WIDTH1 = 5;
905 const REAL HEIGHT1 = 15;
906 const REAL WIDTH2 = 10;
907 const REAL HEIGHT2 = 20;
944 ok(
hdc !=
NULL,
"CreateCompatibleDC failed\n");
954 ok(
hbm !=
NULL,
"CreateDIBSection failed\n");
975 ok(LogPal !=
NULL,
"unable to allocate LOGPALETTE\n");
979 ok(hpal !=
NULL,
"CreatePalette failed\n");
996 ok(
hbm !=
NULL,
"CreateDIBSection failed\n");
1021 bmi.
bf.masks[0] = 0x7c00;
1022 bmi.
bf.masks[1] = 0x3e0;
1023 bmi.
bf.masks[2] = 0x1f;
1026 ok(
hbm !=
NULL,
"CreateDIBSection failed\n");
1049 bmi.
bf.masks[0] = 0xf800;
1050 bmi.
bf.masks[1] = 0x7e0;
1051 bmi.
bf.masks[2] = 0x1f;
1054 ok(
hbm !=
NULL,
"CreateDIBSection failed\n");
1246 ok(
param != 0,
"Build number expected, got %u\n",
param);
1251 static const BYTE bmp_bits[1024];
1269 ok(hbmMask != 0,
"CreateBitmap failed\n");
1271 ok(hbmColor != 0,
"CreateBitmap failed\n");
1275 info.hbmMask = hbmMask;
1276 info.hbmColor = hbmColor;
1278 ok(
hIcon != 0,
"CreateIconIndirect failed\n");
1285 "Expected Ok, got %.8x\n",
stat);
1308 ok(hbmMask != 0,
"CreateBitmap failed\n");
1310 ok(hbmColor != 0,
"CreateBitmap failed\n");
1314 info.hbmMask = hbmMask;
1315 info.hbmColor = hbmColor;
1317 ok(
hIcon != 0,
"CreateIconIndirect failed\n");
13460x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52,
13470x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x08,0x02,0x00,0x00,0x00,0x90,0x77,0x53,
13480xde,0x00,0x00,0x00,0x09,0x70,0x48,0x59,0x73,0x00,0x00,0x0b,0x13,0x00,0x00,0x0b,
13490x13,0x01,0x00,0x9a,0x9c,0x18,0x00,0x00,0x00,0x07,0x74,0x49,0x4d,0x45,0x07,0xd5,
13500x06,0x03,0x0f,0x07,0x2d,0x12,0x10,0xf0,0xfd,0x00,0x00,0x00,0x0c,0x49,0x44,0x41,
13510x54,0x08,0xd7,0x63,0xf8,0xff,0xff,0x3f,0x00,0x05,0xfe,0x02,0xfe,0xdc,0xcc,0x59,
13520xe7,0x00,0x00,0x00,0x00,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82
13560x47,0x49,0x46,0x38,0x37,0x61,0x01,0x00,0x01,0x00,0x80,0x00,0x00,0xff,0xff,0xff,
13570xff,0xff,0xff,0x2c,0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x00,0x02,0x02,0x44,
13620x47,0x49,0x46,0x38,0x39,0x61,0x01,0x00,0x01,0x00,0xf0,0x00,0x00,0x00,0x00,0x00,
13630x00,0x00,0x00,0x21,0xf9,0x04,0x01,0x00,0x00,0x00,0x00,0x2c,0x00,0x00,0x00,0x00,
13640x01,0x00,0x01,0x00,0x00,0x02,0x02,0x44,0x01,0x00,0x3b
13680x42,0x4d,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,0x28,0x00,
13690x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x00,0x00,
13700x00,0x00,0x04,0x00,0x00,0x00,0x12,0x0b,0x00,0x00,0x12,0x0b,0x00,0x00,0x02,0x00,
13710x00,0x00,0x02,0x00,0x00,0x00,0xff,0xff,0xff,0x00,0xff,0xff,0xff,0x00,0x00,0x00,
13760xff,0xd8,0xff,0xe0,0x00,0x10,0x4a,0x46,0x49,0x46,0x00,0x01,0x01,0x01,0x01,0x2c,
13770x01,0x2c,0x00,0x00,0xff,0xdb,0x00,0x43,0x00,0x05,0x03,0x04,0x04,0x04,0x03,0x05,
13780x04,0x04,0x04,0x05,0x05,0x05,0x06,0x07,0x0c,0x08,0x07,0x07,0x07,0x07,0x0f,0x0b,
13790x0b,0x09,0x0c,0x11,0x0f,0x12,0x12,0x11,0x0f,0x11,0x11,0x13,0x16,0x1c,0x17,0x13,
13800x14,0x1a,0x15,0x11,0x11,0x18,0x21,0x18,0x1a,0x1d,0x1d,0x1f,0x1f,0x1f,0x13,0x17,
13810x22,0x24,0x22,0x1e,0x24,0x1c,0x1e,0x1f,0x1e,0xff,0xdb,0x00,0x43,0x01,0x05,0x05,
13820x05,0x07,0x06,0x07,0x0e,0x08,0x08,0x0e,0x1e,0x14,0x11,0x14,0x1e,0x1e,0x1e,0x1e,
13830x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,
13840x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,
13850x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0xff,0xc0,
13860x00,0x11,0x08,0x00,0x01,0x00,0x01,0x03,0x01,0x22,0x00,0x02,0x11,0x01,0x03,0x11,
13870x01,0xff,0xc4,0x00,0x15,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
13880x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0xff,0xc4,0x00,0x14,0x10,0x01,0x00,0x00,
13890x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xc4,
13900x00,0x14,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
13910x00,0x00,0x00,0x00,0xff,0xc4,0x00,0x14,0x11,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
13920x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xda,0x00,0x0c,0x03,0x01,
13930x00,0x02,0x11,0x03,0x11,0x00,0x3f,0x00,0xb2,0xc0,0x07,0xff,0xd9
13970x49,0x49,0x2a,0x00,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0xfe,0x00,
13980x04,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x00,0x01,0x00,
13990x00,0x00,0x01,0x00,0x00,0x00,0x01,0x01,0x03,0x00,0x01,0x00,0x00,0x00,0x01,0x00,
14000x00,0x00,0x02,0x01,0x03,0x00,0x03,0x00,0x00,0x00,0xd2,0x00,0x00,0x00,0x03,0x01,
14010x03,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x06,0x01,0x03,0x00,0x01,0x00,
14020x00,0x00,0x02,0x00,0x00,0x00,0x0d,0x01,0x02,0x00,0x1b,0x00,0x00,0x00,0xd8,0x00,
14030x00,0x00,0x11,0x01,0x04,0x00,0x01,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x12,0x01,
14040x03,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x15,0x01,0x03,0x00,0x01,0x00,
14050x00,0x00,0x03,0x00,0x00,0x00,0x16,0x01,0x03,0x00,0x01,0x00,0x00,0x00,0x40,0x00,
14060x00,0x00,0x17,0x01,0x04,0x00,0x01,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x1a,0x01,
14070x05,0x00,0x01,0x00,0x00,0x00,0xf4,0x00,0x00,0x00,0x1b,0x01,0x05,0x00,0x01,0x00,
14080x00,0x00,0xfc,0x00,0x00,0x00,0x1c,0x01,0x03,0x00,0x01,0x00,0x00,0x00,0x01,0x00,
14090x00,0x00,0x28,0x01,0x03,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,
14100x00,0x00,0x08,0x00,0x08,0x00,0x08,0x00,0x2f,0x68,0x6f,0x6d,0x65,0x2f,0x6d,0x65,
14110x68,0x2f,0x44,0x65,0x73,0x6b,0x74,0x6f,0x70,0x2f,0x74,0x65,0x73,0x74,0x2e,0x74,
14120x69,0x66,0x00,0x00,0x00,0x00,0x00,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x48,
14170xd7,0xcd,0xc6,0x9a,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x01,0x40,0x01,0xa0,0x05,
14180x00,0x00,0x00,0x00,0xb1,0x52,0x01,0x00,0x09,0x00,0x00,0x03,0x4f,0x00,0x00,0x00,
14190x0f,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x0b,0x02,0x00,0x00,
14200x00,0x00,0x05,0x00,0x00,0x00,0x0c,0x02,0x40,0x01,0x40,0x01,0x04,0x00,0x00,0x00,
14210x02,0x01,0x01,0x00,0x04,0x00,0x00,0x00,0x04,0x01,0x0d,0x00,0x08,0x00,0x00,0x00,
14220xfa,0x02,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,
14230x2d,0x01,0x00,0x00,0x07,0x00,0x00,0x00,0xfc,0x02,0x01,0x00,0x00,0x00,0x00,0x00,
14240x00,0x00,0x04,0x00,0x00,0x00,0x2d,0x01,0x01,0x00,0x07,0x00,0x00,0x00,0xfc,0x02,
14250x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x2d,0x01,0x02,0x00,
14260x07,0x00,0x00,0x00,0x1b,0x04,0x40,0x01,0x40,0x01,0x00,0x00,0x00,0x00,0x04,0x00,
14270x00,0x00,0xf0,0x01,0x00,0x00,0x04,0x00,0x00,0x00,0xf0,0x01,0x01,0x00,0x03,0x00,
1459 ok(
hres ==
S_OK,
"Failed to create a stream\n");
1463 ok(
stat ==
Ok,
"Failed to create a Bitmap\n");
1523 ok(hwmf != 0,
"SetMetaFileBitsEx failed\n");
1577 ok(hwmf != 0,
"SetMetaFileBitsEx failed\n");
1592 int screenxres, screenyres;
1618 screendc =
GetDC(0);
1716 expect(40, bm.bmWidthBytes);
1718 expect(32, bm.bmBitsPixel);
1719 ok(bm.bmBits !=
NULL,
"got DDB, expected DIB\n");
1724 ok(
val == 0xff686868,
"got %x, expected 0xff686868\n",
val);
1763 expect(32, bm.bmWidthBytes);
1765 expect(32, bm.bmBitsPixel);
1766 ok(bm.bmBits !=
NULL,
"got DDB, expected DIB\n");
1771 ok(
val == 0x682a2a2a,
"got %x, expected 0x682a2a2a\n",
val);
1772 val = *((
DWORD*)bm.bmBits + (bm.bmHeight-1) * bm.bmWidthBytes/4 + 1);
1773 ok(
val == 0x0,
"got %x, expected 0x682a2a2a\n",
val);
1805 expect(32, bm.bmWidthBytes);
1807 expect(32, bm.bmBitsPixel);
1808 ok(bm.bmBits !=
NULL,
"got DDB, expected DIB\n");
1813 ok(
val == 0x68c12ac1 ||
broken(
val == 0x682a2ac1),
"got %x, expected 0x68c12ac1\n",
val);
1814 val = *((
DWORD*)bm.bmBits + (bm.bmHeight-1) * bm.bmWidthBytes/4 + 1);
1822 ok(pixel == 0xc12ac1 ||
broken(pixel == 0xc12a2a),
"got %x, expected 0xc12ac1\n", pixel);
1824 ok(pixel == 0xff00ff ||
broken(pixel == 0xff0000),
"got %x, expected 0xff00ff\n", pixel);
1826 ok(pixel == 0xb12ac1 ||
broken(pixel == 0xb12a2a),
"got %x, expected 0xb12ac1\n", pixel);
1845 expect(32, bm.bmWidthBytes);
1847 expect(32, bm.bmBitsPixel);
1848 ok(bm.bmBits !=
NULL,
"got DDB, expected DIB\n");
1853 ok(
val == 0x68c12ac1 ||
broken(
val == 0x682a2ac1),
"got %x, expected 0x68c12ac1\n",
val);
1854 val = *((
DWORD*)bm.bmBits + (bm.bmHeight-1) * bm.bmWidthBytes/4 + 1);
1862 ok(pixel == 0xc12ac1 ||
broken(pixel == 0xc12a2a),
"got %x, expected 0xc12ac1\n", pixel);
1864 ok(pixel == 0xff00ff ||
broken(pixel == 0xff0000),
"got %x, expected 0xff00ff\n", pixel);
1866 ok(pixel == 0xb12ac1 ||
broken(pixel == 0xb12a2a),
"got %x, expected 0xb12ac1\n", pixel);
1881 memset(&lockeddata, 0,
sizeof(lockeddata));
1978 BYTE bits[16] = {0x00,0x00,0x00,0x00, 0x00,0xff,0xff,0x00,
1979 0xff,0x00,0x00,0x00, 0xff,0xff,0xff,0x00};
2004 "Expected InvalidParameter, got %.8x\n",
stat);
2011 "Expected InvalidParameter, got %.8x\n",
stat);
2055 static const BYTE halftone_values[6]={0x00,0x33,0x66,0x99,0xcc,0xff};
2084 expected |= halftone_values[((
i-40)/6)%6] << 8;
2085 expected |= halftone_values[((
i-40)/36)%6] << 16;
2143 expect(0xff000000, entries[0]);
2144 expect(0xffffffff, entries[1]);
2229 entries[1] = 0xffcccccc;
2244 expect(0xffcccccc, entries[1]);
2254 entries[3] = 0xdeadbeef;
2264 expect(0xffcccccc, entries[1]);
2265 expect(0xdeadbeef, entries[3]);
2284 {1.0,0.0,0.0,0.0,0.0},
2285 {0.0,1.0,0.0,0.0,0.0},
2286 {0.0,0.0,1.0,0.0,0.0},
2287 {0.0,0.0,0.0,1.0,0.0},
2288 {0.0,0.0,0.0,0.0,1.0}}};
2290 {2.0,0.0,0.0,0.0,0.0},
2291 {0.0,1.0,0.0,0.0,0.0},
2292 {0.0,0.0,1.0,0.0,0.0},
2293 {0.0,0.0,0.0,1.0,0.0},
2294 {0.0,0.0,0.0,0.0,1.0}}};
2296 {0.0,1.0,0.0,0.0,0.0},
2297 {0.0,0.0,1.0,0.0,0.0},
2298 {0.0,0.0,0.0,1.0,0.0},
2299 {1.0,0.0,0.0,0.0,0.0},
2300 {0.0,0.0,0.0,0.0,1.0}}};
2340 TRUE, &colormatrix, &graymatrix, 3);
2356 colormatrix = double_red;
2373 stat =
GdipDrawImageRectRectI(graphics, (
GpImage*)bitmap1, 0,0,1,1, 0,0,1,1,
2381 colormatrix = asymmetric;
2389 stat =
GdipDrawImageRectRectI(graphics, (
GpImage*)bitmap1, 0,0,1,1, 0,0,1,1,
2401 stat =
GdipDrawImageRectRectI(graphics, (
GpImage *)bitmap1, 0, 0, 1, 1, 0, 0, 1, 1,
2412 stat =
GdipDrawImageRectRectI(graphics, (
GpImage *)bitmap1, 0, 0, 1, 1, 0, 0, 1, 1,
2426 stat =
GdipDrawImageRectRectI(graphics, (
GpImage *)bitmap1, 0, 0, 1, 1, 0, 0, 1, 1,
2434 stat =
GdipDrawImageRectRectI(graphics, (
GpImage *)bitmap1, 0, 0, 1, 1, 0, 0, 1, 1,
2450 stat =
GdipDrawImageRectRectI(graphics, (
GpImage *)bitmap1, 0, 0, 1, 1, 0, 0, 1, 1,
2461 stat =
GdipDrawImageRectRectI(graphics, (
GpImage *)bitmap1, 0, 0, 1, 1, 0, 0, 1, 1,
2477 stat =
GdipDrawImageRectRectI(graphics, (
GpImage *)bitmap1, 0, 0, 1, 1, 0, 0, 1, 1,
2493 stat =
GdipDrawImageRectRectI(graphics, (
GpImage *)bitmap1, 0, 0, 1, 1, 0, 0, 1, 1,
2504 stat =
GdipDrawImageRectRectI(graphics, (
GpImage *)bitmap1, 0, 0, 1, 1, 0, 0, 1, 1,
2518 stat =
GdipDrawImageRectRectI(graphics, (
GpImage *)bitmap1, 0, 0, 1, 1, 0, 0, 1, 1,
2529 stat =
GdipDrawImageRectRectI(graphics, (
GpImage *)bitmap1, 0, 0, 1, 1, 0, 0, 1, 1,
2591 stat =
GdipDrawImageRectRectI(graphics, (
GpImage*)bitmap1, 0,0,1,1, 0,0,1,1,
2602 stat =
GdipDrawImageRectRectI(graphics, (
GpImage*)bitmap1, 0,0,1,1, 0,0,1,1,
26180x47,0x49,0x46,0x38,0x39,0x61,0x01,0x00,0x01,0x00,0xa1,0x00,0x00,0x00,0x00,0x00,
26190xff,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0xf9,0x04,0x00,0x0a,0x00,0xff,
26200x00,0x2c,0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x00,0x02,0x02,0x4c,0x01,0x00,
26210x21,0xf9,0x04,0x01,0x0a,0x00,0x01,0x00,0x2c,0x00,0x00,0x00,0x00,0x01,0x00,0x01,
26220x00,0x00,0x02,0x02,0x44,0x01,0x00,0x3b
2634 0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x08, 0x00,
2635 0x02, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00,
2636 0x00, 0x00, 0x00, 0x21, 0xf9, 0x04, 0x01, 0x64,
2637 0x00, 0x00, 0x00, 0x21, 0xff, 0x0b, 0x4e, 0x45,
2638 0x54, 0x53, 0x43, 0x41, 0x50, 0x45, 0x32, 0x2e,
2639 0x30, 0x03, 0x01, 0x00, 0x00, 0x00, 0x2c, 0x00,
2640 0x00, 0x00, 0x00, 0x08, 0x00, 0x02, 0x00, 0x00,
2641 0x02, 0x04, 0x84, 0x8f, 0x09, 0x05, 0x00, 0x21,
2642 0xf9, 0x04, 0x04, 0x64, 0x00, 0x00, 0x00, 0x2c,
2643 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00,
2644 0x81, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff,
2645 0x00, 0x00, 0xff, 0x00, 0x00, 0x02, 0x03, 0x44,
2646 0x34, 0x05, 0x00, 0x21, 0xf9, 0x04, 0x08, 0x64,
2647 0x00, 0x00, 0x00, 0x2c, 0x02, 0x00, 0x00, 0x00,
2648 0x02, 0x00, 0x02, 0x00, 0x81, 0x00, 0x00, 0xff,
2649 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00,
2650 0xff, 0x02, 0x03, 0x44, 0x34, 0x05, 0x00, 0x21,
2651 0xf9, 0x04, 0x0c, 0x64, 0x00, 0x00, 0x00, 0x2c,
2652 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00,
2653 0x81, 0x00, 0x80, 0x00, 0x00, 0x80, 0x00, 0x00,
2654 0x80, 0x00, 0x00, 0x80, 0x00, 0x02, 0x03, 0x44,
2655 0x34, 0x05, 0x00, 0x21, 0xf9, 0x04, 0x00, 0x64,
2656 0x00, 0x00, 0x00, 0x2c, 0x06, 0x00, 0x00, 0x00,
2657 0x02, 0x00, 0x02, 0x00, 0x80, 0x7e, 0x7e, 0x7e,
2658 0x00, 0x00, 0x00, 0x02, 0x02, 0x84, 0x51, 0x00,
2664 {0xffff0000, 0, 0, 0},
2665 {0xffff0000, 0xff0000ff, 0, 0},
2666 {0xffff0000, 0, 0xff008000, 0},
2667 {0xffff0000, 0, 0, 0xff7e7e7e}
2683 char palette_buf[256];
2685 ARGB *palette_entries;
2694 ok(
hres ==
S_OK,
"Failed to create a stream\n");
2698 ok(
stat ==
Ok,
"Failed to create a Bitmap\n");
2795 ok(
hres ==
S_OK,
"Failed to create a stream\n");
2799 ok(
stat ==
Ok,
"Failed to create a Bitmap\n");
2833 ok(
hres ==
S_OK,
"Failed to create a stream\n");
2837 ok(
stat ==
Ok,
"Failed to create a Bitmap\n");
2852 memset(palette_buf, 0xfe,
sizeof(palette_buf));
2856 palette_entries =
palette->Entries;
2860 expect(0, palette_entries[0]);
2861 expect(0xff000000, palette_entries[1]);
2877 ok(
hres ==
S_OK,
"Failed to create a stream\n");
2880 ok(
stat ==
Ok,
"Failed to create a Bitmap\n");
2901 win_skip(
"broken animated gif support\n");
2906 for(
i=0;
i<6;
i++) {
2910 for(
j=0;
j<4;
j++) {
2925 static const BYTE orig_bits[24] = {
2926 0,0,0xff, 0,0xff,0, 0xff,0,0, 23,23,23,
2927 0xff,0xff,0, 0xff,0,0xff, 0,0xff,0xff, 23,23,23};
3051 map->oldColor.Argb = 0xff00ff00;
3052 map->newColor.Argb = 0xffff00ff;
3090 stat =
GdipDrawImageRectRectI(graphics, (
GpImage*)bitmap1, 0,0,1,1, 0,0,1,1,
3101 stat =
GdipDrawImageRectRectI(graphics, (
GpImage*)bitmap1, 0,0,1,1, 0,0,1,1,
3160 stat =
GdipDrawImageRectRectI(graphics, (
GpImage*)bitmap1, 0,0,2,2, 0,0,2,2,
3183 stat =
GdipDrawImageRectRectI(graphics, (
GpImage*)bitmap1, 0,0,2,2, 0,0,2,2,