Home
last modified time | relevance | path

Searched refs:bmBitsPixel (Results 1 – 25 of 49) sorted by relevance

12

/reactos/modules/rostests/apitests/gdi32/
H A DCreateIconIndirect.c85 ok_int(bitmap.bmBitsPixel, 1); in Test_GetIconInfo()
92 ok_int(bitmap.bmWidthBytes, ((bitmap.bmWidth * bitmap.bmBitsPixel + 15) & ~15) / 8); in Test_GetIconInfo()
94 ok(bitmap.bmBitsPixel == 1 || bitmap.bmBitsPixel == 2 || bitmap.bmBitsPixel == 4 || in Test_GetIconInfo()
95 bitmap.bmBitsPixel == 8 || bitmap.bmBitsPixel == 16 || bitmap.bmBitsPixel == 32, in Test_GetIconInfo()
96 "bmBitsPixel = %u\n", bitmap.bmBitsPixel); in Test_GetIconInfo()
121 ok_int(bitmap.bmBitsPixel, 1); in Test_GetIconInfo()
130 ok(bitmap.bmBitsPixel == 1 || bitmap.bmBitsPixel == 2 || bitmap.bmBitsPixel == 4 || in Test_GetIconInfo()
131 bitmap.bmBitsPixel == 8 || bitmap.bmBitsPixel == 16 || bitmap.bmBitsPixel == 32, in Test_GetIconInfo()
132 "bmBitsPixel = %u\n", bitmap.bmBitsPixel); in Test_GetIconInfo()
160 ok_int(bitmap.bmBitsPixel, 1); in START_TEST()
[all …]
H A DCreateBitmapIndirect.c16 win_bitmap.bmBitsPixel = 1; in Test_CreateBitmapIndirect()
29 win_bitmap.bmBitsPixel = 1; in Test_CreateBitmapIndirect()
40 win_bitmap.bmBitsPixel = 1; in Test_CreateBitmapIndirect()
51 win_bitmap.bmBitsPixel = 1; in Test_CreateBitmapIndirect()
62 win_bitmap.bmBitsPixel = 8; in Test_CreateBitmapIndirect()
H A DCreateBitmap.c134 ok_int(bitmap.bmBitsPixel, 1); in Test_CreateBitmap()
150 ok_int(bitmap.bmBitsPixel, 1); in Test_CreateBitmap()
170 cjWidthBytes = ((bitmap.bmWidth * bitmap.bmBitsPixel + 15) & ~15) >> 3; in Test_CreateBitmap()
176 ok_int(bitmap.bmBitsPixel, cExpectedBitsPixel); in Test_CreateBitmap()
H A DCreateDIBitmap.c339 ok_int(bitmap.bmWidthBytes, ((bitmap.bmWidth * bitmap.bmBitsPixel + 15) & ~15) / 8); in Test_CreateDIBitmap1()
341 ok(bitmap.bmBitsPixel == GetDeviceCaps(hdc, BITSPIXEL), "\n"); in Test_CreateDIBitmap1()
358 ok_int(bitmap.bmWidthBytes, ((bitmap.bmWidth * bitmap.bmBitsPixel + 15) & ~15) / 8); in Test_CreateDIBitmap1()
360 ok(bitmap.bmBitsPixel == GetDeviceCaps(hdc, BITSPIXEL), "\n"); in Test_CreateDIBitmap1()
459 ok_int(bitmap.bmBitsPixel, 8); in Test_CreateDIBitmap_CBM_CREATDIB()
485 ok_int(bitmap.bmBitsPixel, 8); in Test_CreateDIBitmap_CBM_CREATDIB()
498 ok_int(bitmap.bmBitsPixel, 8); in Test_CreateDIBitmap_CBM_CREATDIB()
H A DTextTransform.c40 pbmih->biBitCount = bm.bmBitsPixel; in SaveBitmapToFile()
44 if (bm.bmBitsPixel < 16) in SaveBitmapToFile()
45 cbColors = (1 << bm.bmBitsPixel) * sizeof(RGBQUAD); in SaveBitmapToFile()
/reactos/modules/rostests/apitests/win32nt/ntgdi/
H A DNtGdiCreateBitmap.c89 ok_int(bitmap.bmBitsPixel, 1); in Test_NtGdiCreateBitmap_Params()
111 ok_int(bitmap.bmBitsPixel, 1); in Test_NtGdiCreateBitmap_Params()
123 ok_int(bitmap.bmBitsPixel, 4); in Test_NtGdiCreateBitmap_Params()
128 ok_int(bitmap.bmBitsPixel, 8); in Test_NtGdiCreateBitmap_Params()
133 ok_int(bitmap.bmBitsPixel, 16); in Test_NtGdiCreateBitmap_Params()
138 ok_int(bitmap.bmBitsPixel, 24); in Test_NtGdiCreateBitmap_Params()
143 ok_int(bitmap.bmBitsPixel, 24); in Test_NtGdiCreateBitmap_Params()
148 ok_int(bitmap.bmBitsPixel, 32); in Test_NtGdiCreateBitmap_Params()
177 ok_int(bitmap.bmBitsPixel, 8); in Test_NtGdiCreateBitmap_Params()
H A DNtGdiGetStockObject.c137 RTEST(bitmap.bmBitsPixel == 1); in START_TEST()
/reactos/modules/rostests/apitests/user32/
H A DGetIconInfo.c88 ok(bitmap.bmBitsPixel == 1, "\n"); in Test_GetIconInfo()
95 ok(bitmap.bmWidthBytes == 8 * bitmap.bmBitsPixel / 8, "\n"); in Test_GetIconInfo()
97 ok(bitmap.bmBitsPixel == screen_bpp, "%d\n", bitmap.bmBitsPixel); in Test_GetIconInfo()
125 ok(bitmap.bmBitsPixel == 1, "%d\n", bitmap.bmBitsPixel); in Test_GetIconInfo()
134 ok(bitmap.bmBitsPixel == screen_bpp, "%d\n", bitmap.bmBitsPixel); in Test_GetIconInfo()
229 ok(bitmap.bmBitsPixel == 1, "\n"); in START_TEST()
236 ok(bitmap.bmWidthBytes == 48 * bitmap.bmBitsPixel / 8, "\n"); in START_TEST()
238 …ok(bitmap.bmBitsPixel == (creationbpp == 32 ? 32 : bpp), "creationbpp: %lu, bpp: %lu:\n", creation… in START_TEST()
267 ok(bitmap.bmBitsPixel == 1, "\n"); in START_TEST()
H A DLoadImageGCC.c122 bmi.bmiHeader.biBitCount = bitmap.bmBitsPixel; in START_TEST()
/reactos/modules/rostests/dibtests/stretchblt/
H A Dstretchblt.cpp185 bmInfo.bmiHeader.biBitCount = bmp.bmBitsPixel; in MainWndProc()
199 bbits = new char[bmp.bmHeight*bmp.bmWidthBytes*(bmp.bmBitsPixel / 8)]; in MainWndProc()
209 fread(bbits, bmp.bmHeight*bmp.bmWidthBytes*(bmp.bmBitsPixel / 8), 1, f); in MainWndProc()
/reactos/win32ss/gdi/ntgdi/
H A Dbitmaps.c334 Bpp ? Bpp : dibs.dsBm.bmBitsPixel, in IntCreateCompatibleBitmap()
784 pBitmap->bmBitsPixel = BitsPerFormat(psurf->SurfObj.iBitmapFormat); in BITMAP_GetObject()
785 pBitmap->bmWidthBytes = WIDTH_BYTES_ALIGN16(pBitmap->bmWidth, pBitmap->bmBitsPixel); in BITMAP_GetObject()
793 pBitmap->bmWidthBytes = WIDTH_BYTES_ALIGN32(pBitmap->bmWidth, pBitmap->bmBitsPixel); in BITMAP_GetObject()
804 pds->dsBmih.biBitCount = pds->dsBm.bmBitsPixel; in BITMAP_GetObject()
/reactos/modules/rostests/dibtests/icontest/
H A Dicontest.c168 sprintf(str, "%dBPP", bmp.bmBitsPixel); in MainWndProc()
180 sprintf(str, "%dBPP", bmp.bmBitsPixel); in MainWndProc()
/reactos/modules/rosapps/applications/sysutils/screenshot/
H A Dscreenshot.c262 cClrBits = (WORD)(bitmap.bmPlanes * bitmap.bmBitsPixel); in ConvertDDBtoDIB()
298 pScrSht->lpbi->bmiHeader.biBitCount = bitmap.bmBitsPixel; in ConvertDDBtoDIB()
/reactos/win32ss/gdi/gdi32/wine/mfdrv/
H A Dbitblt.c68 nBPP = BM.bmPlanes * BM.bmBitsPixel; in MFDRV_StretchBlt()
104 *(mr->rdParm +14) = BM.bmBitsPixel; in MFDRV_StretchBlt()
/reactos/base/applications/mspaint/
H A Ddib.cpp461 bmi.bmiHeader.biBitCount = bm.bmBitsPixel; in BitmapToClipboardDIB()
466 if (bm.bmBitsPixel < 16) in BitmapToClipboardDIB()
467 cColors = 1 << bm.bmBitsPixel; in BitmapToClipboardDIB()
588 if (bm.bmBitsPixel == 1) in IsBitmapBlackAndWhite()
/reactos/dll/win32/uxtheme/
H A Dpngsup.cpp73 if (dib.dsBm.bmBitsPixel != 32) in prepare_png_alpha()
/reactos/modules/rostests/apitests/user32/makeimg/
H A Dshowimg.c49 bmi.bmiHeader.biBitCount = bitmap.bmBitsPixel; in WndProc()
/reactos/modules/rostests/winetests/user32/
H A Dcursoricon.c508 && copyBitmap.bmBitsPixel == 24 in test_CopyImage_Check()
525 expectedDepth = origBitmap.bmBitsPixel; in test_CopyImage_Check()
531 && (copyBitmap.bmBitsPixel == expectedDepth)), in test_CopyImage_Check()
533 … orig_is_dib ? "DIB" : "DDB", origBitmap.bmWidth, origBitmap.bmHeight, origBitmap.bmBitsPixel, in test_CopyImage_Check()
536 … copy_is_dib ? "DIB" : "DDB", copyBitmap.bmWidth, copyBitmap.bmHeight, copyBitmap.bmBitsPixel); in test_CopyImage_Check()
744 ok_(__FILE__, line)(bmColor.bmBitsPixel == display_bpp /* XP */ || in test_icon_info_dbg()
745 bmColor.bmBitsPixel == exp_bpp /* Win98 */, in test_icon_info_dbg()
746 "bmColor.bmBitsPixel = %d\n", bmColor.bmBitsPixel); in test_icon_info_dbg()
750 … ok_(__FILE__, line)(bmMask.bmBitsPixel == 1, "bmMask.bmBitsPixel = %d\n", bmMask.bmBitsPixel); in test_icon_info_dbg()
756 … ok_(__FILE__, line)(bmMask.bmBitsPixel == 1, "bmMask.bmBitsPixel = %d\n", bmMask.bmBitsPixel); in test_icon_info_dbg()
/reactos/win32ss/user/user32/controls/
H A Dghost.c91 if (bm.bmBitsPixel != 32 || !bm.bmBits) in IntMakeGhostImage()
94 bm.bmBitsPixel, bm.bmBits); in IntMakeGhostImage()
/reactos/modules/rostests/winetests/gdi32/
H A Dbitmap.c81 …ok(bm.bmBitsPixel == expected_depth, "wrong bm.bmBitsPixel %d != %d\n", bm.bmBitsPixel, expected_d… in test_bitmap_info()
285 …ok(bm.bmBitsPixel == bmih->biBitCount, "bm.bmBitsPixel %d != %d\n", bm.bmBitsPixel, bmih->biBitCou… in test_dib_info()
1547 ok(bm.bmBitsPixel == 1, "wrong bm.bmBitsPixel %d\n", bm.bmBitsPixel); in test_bitmap()
1574 ok(bm.bmBitsPixel == 1, "wrong bm.bmBitsPixel %d\n", bm.bmBitsPixel); in test_bitmap()
2139 ok(bm.bmBitsPixel == 1, "wrong bmBitsPixel %d\n", bm.bmBitsPixel); in test_GetDIBits()
2255 ok(bm.bmBitsPixel == GetDeviceCaps(hdc, BITSPIXEL), "wrong bmBitsPixel %d\n", bm.bmBitsPixel); in test_GetDIBits()
2732 ok(bm.bmBitsPixel == 16, "wrong bmBitsPixel %d(15 bpp special)\n", bm.bmBitsPixel); in test_select_object()
2734 ok(bm.bmBitsPixel == depths[i], "wrong bmBitsPixel %d\n", bm.bmBitsPixel); in test_select_object()
2765 …ok_(__FILE__, line)(bm.bmBitsPixel == 1, "wrong bmBitsPixel, expected 1 got %d\n", bm.bmBitsPixel); in test_mono_1x1_bmp_dbg()
2828 bmp.bmBitsPixel = 1; in test_CreateBitmap()
[all …]
/reactos/win32ss/user/user32/windows/
H A Dcursoricon.c334 if (bm.bmBitsPixel != 32) in create_alpha_bitmap()
815 pCursorData->bpp = bm.bmBitsPixel; in CURSORICON_GetCursorDataFromIconInfo()
1716 bi->bmiHeader.biBitCount = ds.dsBm.bmBitsPixel; in BITMAP_CopyImage()
1757 if (!monochrome && ds.dsBm.bmBitsPixel == 1) in BITMAP_CopyImage()
1783 monochrome = ds.dsBm.bmBitsPixel == 1; in BITMAP_CopyImage()
1814 copyContents = (ds.dsBm.bmBitsPixel == 1 || ds.dsBm.bmBitsPixel == screen_depth); in BITMAP_CopyImage()
/reactos/win32ss/gdi/gdi32/objects/
H A Dbitmap.c334 bitmap = CreateBitmap(pbm->bmWidth, pbm->bmHeight, pbm->bmPlanes, pbm->bmBitsPixel, in CreateBitmapIndirect()
391 if (pDIBs->dsBm.bmBitsPixel <= 8) in CreateCompatibleBitmap()
/reactos/dll/win32/shell32/
H A Diconcache.cpp183 if(ShortcutBitmapInfo.bmBitsPixel == 32) in SIC_OverlayShortcutImage()
193 if(TargetBitmapInfo.bmBitsPixel != 32) add_alpha = FALSE; in SIC_OverlayShortcutImage()
/reactos/win32ss/gdi/gdi32/wine/enhmfdrv/
H A Dbitblt.c100 nBPP = BM.bmPlanes * BM.bmBitsPixel; in EMFDRV_StretchBlt()
/reactos/dll/win32/windowscodecs/
H A Dimgfactory.c750 switch(bm.bmBitsPixel) in ImagingFactory_CreateBitmapFromHBITMAP()
788 FIXME("unsupported %d bpp\n", bm.bmBitsPixel); in ImagingFactory_CreateBitmapFromHBITMAP()
905 if (bm.bmBitsPixel == 32) in ImagingFactory_CreateBitmapFromHICON()

12