/reactos/dll/win32/shell32/dialogs/ |
H A D | folder_options.cpp | 55 return hbm; in Create24BppBitmap() 65 if (!hbm) in BitmapFromIcon() 83 return hbm; in BitmapFromIcon() 92 if (hbm == NULL) in CreateCheckImage() 111 return hbm; // success in CreateCheckImage() 120 if (hbm == NULL) in CreateCheckMask() 135 return hbm; // success in CreateCheckMask() 144 if (hbm == NULL) in CreateRadioImage() 163 return hbm; // success in CreateRadioImage() 172 if (hbm == NULL) in CreateRadioMask() [all …]
|
/reactos/base/applications/mspaint/ |
H A D | dib.h | 10 BOOL IsBitmapBlackAndWhite(HBITMAP hbm); 14 HBITMAP CachedBufferDIB(HBITMAP hbm, int minimalWidth, int minimalHeight); 15 HBITMAP ConvertToBlackAndWhite(HBITMAP hbm); 17 HBITMAP CopyMonoImage(HBITMAP hbm, INT cx = 0, INT cy = 0); 19 static inline HBITMAP CopyDIBImage(HBITMAP hbm, INT cx = 0, INT cy = 0) 21 return (HBITMAP)CopyImage(hbm, IMAGE_BITMAP, cx, cy, LR_COPYRETURNORG | LR_CREATEDIBSECTION); 24 int GetDIBWidth(HBITMAP hbm); 25 int GetDIBHeight(HBITMAP hbm); 38 HBITMAP SkewDIB(HDC hDC1, HBITMAP hbm, INT nDegree, BOOL bVertical, BOOL bMono = FALSE);
|
H A D | dib.cpp | 48 if (hbm == NULL) in CreateMonoBitmap() 61 return hbm; in CreateMonoBitmap() 124 hbm = NULL; in CachedBufferDIB() 127 return hbm; in CachedBufferDIB() 129 if (hbm) in CachedBufferDIB() 130 DeleteObject(hbm); in CachedBufferDIB() 356 return CopyDIBImage(hbm); in SkewDIB() 361 ::GetObjectW(hbm, sizeof(bm), &bm); in SkewDIB() 369 return CopyDIBImage(hbm); in SkewDIB() 568 if (!hbm) in BitmapFromHEMF() [all …]
|
H A D | history.cpp | 129 HBITMAP hbm = CopyBitmap(); in PushImageForUndo() local 130 if (hbm == NULL) in PushImageForUndo() 136 PushImageForUndo(hbm); in PushImageForUndo() 139 void ImageModel::PushImageForUndo(HBITMAP hbm) in PushImageForUndo() argument 143 if (hbm == NULL) in PushImageForUndo() 152 m_hbmMaster = hbm; in PushImageForUndo() 299 HBITMAP hbm = Rotate90DegreeBlt(m_hDrawingDC, GetWidth(), GetHeight(), iN == 1, FALSE); in RotateNTimes90Degrees() local 300 PushImageForUndo(hbm); in RotateNTimes90Degrees()
|
H A D | selectionmodel.cpp | 63 HBITMAP hbm) in DrawSelection() argument 69 if (!GetObjectW(hbm, sizeof(BITMAP), &bm)) in DrawSelection() 75 HGDIOBJ hbmOld = SelectObject(hMemDC, hbm); in DrawSelection() 231 HBITMAP hbm; in RotateNTimes90Degrees() local 244 hbm = Rotate90DegreeBlt(hdcMem, m_rc.Width(), m_rc.Height(), iN == 1, FALSE); in RotateNTimes90Degrees() 247 m_hbmColor = hbm; in RotateNTimes90Degrees() 252 hbm = Rotate90DegreeBlt(hdcMem, m_rc.Width(), m_rc.Height(), iN == 1, TRUE); in RotateNTimes90Degrees() 255 m_hbmMask = hbm; in RotateNTimes90Degrees()
|
H A D | atlimagedx.h | 33 void Attach(HBITMAP hbm) in Attach() argument 37 m_hBitmap = hbm; in Attach() 95 HBITMAP hbm = NULL; in LoadDx() local 97 Status status = _shared()->m_CreateHBITMAPFromBitmap(pBitmap, &hbm, color.GetValue()); in LoadDx() 108 Attach(hbm); in LoadDx()
|
H A D | main.cpp | 995 HBITMAP hbm = BitmapFromHEMF(hEMF); in OnCommand() local 997 if (hbm) in OnCommand() 999 InsertSelectionFromHBITMAP(hbm, m_hWnd); in OnCommand() 1009 HBITMAP hbm = BitmapFromClipboardDIB(::GetClipboardData(CF_DIB)); in OnCommand() local 1010 if (hbm) in OnCommand() 1012 InsertSelectionFromHBITMAP(hbm, m_hWnd); in OnCommand() 1021 HBITMAP hbm = (HBITMAP)::GetClipboardData(CF_BITMAP); in OnCommand() local 1022 if (hbm) in OnCommand() 1024 InsertSelectionFromHBITMAP(hbm, m_hWnd); in OnCommand()
|
/reactos/win32ss/user/user32/controls/ |
H A D | ghost.c | 31 HBITMAP hbm = NULL; in IntCreate32BppBitmap() local 46 hbm = CreateDIBSection(hdc, &bi, DIB_RGB_COLORS, &pvBits, NULL, 0); in IntCreate32BppBitmap() 49 return hbm; in IntCreate32BppBitmap() 55 HBITMAP hbm = NULL; in IntGetWindowBitmap() local 67 hbm = IntCreate32BppBitmap(cx, cy); in IntGetWindowBitmap() 68 if (hbm) in IntGetWindowBitmap() 70 hbmOld = SelectObject(hdcMem, hbm); in IntGetWindowBitmap() 80 return hbm; in IntGetWindowBitmap() 84 IntMakeGhostImage(HBITMAP hbm) in IntMakeGhostImage() argument 89 GetObject(hbm, sizeof(bm), &bm); in IntMakeGhostImage()
|
/reactos/win32ss/gdi/ntgdi/ |
H A D | brush.cpp | 433 HBITMAP hbm; in NtGdiCreateDIBBrush() local 493 hbm = GreCreateDIBitmapFromPackedDIB(pvPackedDIB, cj, uUsage); in NtGdiCreateDIBBrush() 494 if (hbm == NULL) in NtGdiCreateDIBBrush() 501 hbr = CreateBrushInternal(flAttrs, 0, 0, hbm, pvClient); in NtGdiCreateDIBBrush() 518 HBITMAP hbm; in NtGdiGetObjectBitmapHandle() local 530 hbm = pbr->hbmGetBitmapHandle(&uUsage); in NtGdiGetObjectBitmapHandle() 543 hbm = NULL; in NtGdiGetObjectBitmapHandle() 547 return hbm; in NtGdiGetObjectBitmapHandle()
|
/reactos/modules/rostests/winetests/user32/ |
H A D | menu.c | 1426 MFT_BITMAP, 0, 0, 0, 0, 0, 0, hbm, 0, hbm, in test_menu_iteminfo() 1431 MFT_BITMAP|MFT_OWNERDRAW, 0, 0, 0, 0, 0, 0, hbm, 0, hbm, in test_menu_iteminfo() 1552 MFT_BITMAP, 0, 0, 0, 0, 0, 0, hbm, 0, hbm, in test_menu_iteminfo() 1604 MFT_BITMAP|MFT_SEPARATOR, 0, 0, 0, 0, 0, 0, hbm, 0, hbm, in test_menu_iteminfo() 1628 MFT_BITMAP, 0, 0, 0, 0, 0, 0, hbm, 4, hbm, in test_menu_iteminfo() 1633 MFT_SEPARATOR|MFT_BITMAP, 0, 0, 0, 0, 0, 0, hbm, 4, hbm, in test_menu_iteminfo() 1644 MFT_BITMAP|MFT_OWNERDRAW, 0, 0, 0, 0, 0, 0, hbm, 4, hbm, in test_menu_iteminfo() 1813 MFT_BITMAP, 0, 0, 0, hbm, hbm, 0, hbm, 0, hbm, in test_menu_iteminfo() 1823 MFT_BITMAP | MFT_OWNERDRAW, 0, 0, 0, 0, 0, 0, hbm, 0, hbm, in test_menu_iteminfo() 1859 MFT_BITMAP, 0, 0, 0, hbm, hbm, 0, hbm, 0, hbm, in test_menu_iteminfo() [all …]
|
/reactos/modules/rostests/winetests/gdi32/ |
H A D | bitmap.c | 160 DeleteObject(hbm); in test_createdibitmap() 167 DeleteObject(hbm); in test_createdibitmap() 174 DeleteObject(hbm); in test_createdibitmap() 184 DeleteObject(hbm); in test_createdibitmap() 191 DeleteObject(hbm); in test_createdibitmap() 198 DeleteObject(hbm); in test_createdibitmap() 211 DeleteObject(hbm); in test_createdibitmap() 218 DeleteObject(hbm); in test_createdibitmap() 225 DeleteObject(hbm); in test_createdibitmap() 2446 HBITMAP hbm; in test_GetDIBits_BI_BITFIELDS() local [all …]
|
/reactos/win32ss/gdi/gdi32/objects/ |
H A D | brush.c | 361 SetBrushAttributes(HBRUSH hbm, DWORD dwFlags) in SetBrushAttributes() argument 367 return NtGdiSetBrushAttributes(hbm, dwFlags); in SetBrushAttributes() 375 ClearBrushAttributes(HBRUSH hbm, DWORD dwFlags) in ClearBrushAttributes() argument 381 return NtGdiClearBrushAttributes(hbm, dwFlags); in ClearBrushAttributes()
|
H A D | bitmap.c | 1171 GetBitmapAttributes(HBITMAP hbm) in GetBitmapAttributes() argument 1173 if ( GDI_HANDLE_IS_STOCKOBJ(hbm) ) in GetBitmapAttributes() 1185 SetBitmapAttributes(HBITMAP hbm, DWORD dwFlags) in SetBitmapAttributes() argument 1191 return NtGdiSetBitmapAttributes( hbm, dwFlags ); in SetBitmapAttributes() 1199 ClearBitmapAttributes(HBITMAP hbm, DWORD dwFlags) in ClearBitmapAttributes() argument 1205 return NtGdiClearBitmapAttributes( hbm, dwFlags );; in ClearBitmapAttributes()
|
/reactos/modules/rostests/apitests/gdi32/ |
H A D | TextTransform.c | 19 static BOOL SaveBitmapToFile(LPCWSTR pszFileName, HBITMAP hbm) in SaveBitmapToFile() argument 31 if (!GetObjectW(hbm, sizeof(BITMAP), &bm)) in SaveBitmapToFile() 64 if (GetDIBits(hDC, hbm, 0, bm.bmHeight, pBits, (BITMAPINFO *)&bmi, in SaveBitmapToFile() 304 static void DoTestEntry(const TEST_ENTRY *entry, HDC hDC, HBITMAP hbm) in DoTestEntry() argument 326 hbmOld = SelectObject(hDC, hbm); in DoTestEntry() 424 SaveBitmapToFile(szFileName, hbm); in DoTestEntry() 437 HBITMAP hbm; in START_TEST() local 454 hbm = CreateDIBSection(hDC, &bmi, DIB_RGB_COLORS, &pvBits, NULL, 0); in START_TEST() 455 ok(hbm != NULL, "hbm was NULL.\n"); in START_TEST() 459 DoTestEntry(&s_entries[i], hDC, hbm); in START_TEST() [all …]
|
H A D | CreateBitmap.c | 10 DWORD WINAPI GetBitmapAttributes(HBITMAP hbm); 11 HBITMAP WINAPI SetBitmapAttributes(HBITMAP hbm, DWORD dwFlags); 12 HBITMAP WINAPI ClearBitmapAttributes(HBITMAP hbm, DWORD dwFlags);
|
/reactos/modules/rostests/apitests/shell32/ |
H A D | SHCreateFileExtractIconW.cpp | 54 static void ExtractOneBitmap(HBITMAP hbm, CComHeapPtr<BYTE>& data, DWORD& size) in ExtractOneBitmap() argument 57 HGDIOBJ obj = SelectObject(hdc, hbm); in ExtractOneBitmap() 64 if (!GetDIBits(hdc, hbm, 0, 0, NULL, pInfoBM, DIB_RGB_COLORS)) in ExtractOneBitmap() 69 GetDIBits(hdc, hbm, 0, pInfoBM->bmiHeader.biHeight, data, pInfoBM, DIB_RGB_COLORS); in ExtractOneBitmap()
|
/reactos/dll/win32/imm32/ |
H A D | utils.c | 90 HBITMAP hbm = NULL; in Imm32LoadBitmapFromBytes() local 104 hbm = CreateDIBSection(NULL, (LPBITMAPINFO)pbmci, DIB_RGB_COLORS, &pvBits, NULL, 0); in Imm32LoadBitmapFromBytes() 105 if (!hbm || !GetObject(hbm, sizeof(BITMAP), &bm)) in Imm32LoadBitmapFromBytes() 121 DeleteObject(hbm); in Imm32LoadBitmapFromBytes() 135 DeleteObject(hbm); in Imm32LoadBitmapFromBytes() 140 return hbm; in Imm32LoadBitmapFromBytes() 143 BOOL Imm32StoreBitmapToBytes(HBITMAP hbm, LPBYTE pbData, DWORD cbDataMax) in Imm32StoreBitmapToBytes() argument 154 if (!GetObject(hbm, sizeof(BITMAP), &bm)) in Imm32StoreBitmapToBytes() 192 ret = GetDIBits(hDC, hbm, 0, bm.bmHeight, NULL, (LPBITMAPINFO)&bmci, DIB_RGB_COLORS); in Imm32StoreBitmapToBytes() 205 ret = GetDIBits(hDC, hbm, 0, bm.bmHeight, pb, (LPBITMAPINFO)&bmci, DIB_RGB_COLORS); in Imm32StoreBitmapToBytes()
|
/reactos/win32ss/gdi/gdi32/misc/ |
H A D | historic.c | 76 GdiConvertBitmap(HBITMAP hbm) in GdiConvertBitmap() argument 79 return hbm; in GdiConvertBitmap()
|
/reactos/dll/win32/comctl32/ |
H A D | commctrl.c | 1016 HBITMAP hbm; in CreateMappedBitmap() local 1086 hbm = CreateCompatibleBitmap (hdcScreen, nWidth, nHeight); in CreateMappedBitmap() 1087 if (hbm) { in CreateMappedBitmap() 1089 HBITMAP hbmOld = SelectObject (hdcDst, hbm); in CreateMappedBitmap() 1101 return hbm; in CreateMappedBitmap() 1859 HBITMAP hbm, hbmOld; in DrawShadowText() local 1873 hbm = CreateDIBSection(hdc, &bi, DIB_RGB_COLORS, (PVOID*)&pBits, NULL, 0); in DrawShadowText() 1874 if(!hbm) in DrawShadowText() 1885 DeleteObject(hbm); in DrawShadowText() 1889 hbmOld = (HBITMAP)SelectObject(hdcMem, hbm); in DrawShadowText() [all …]
|
/reactos/sdk/lib/3rdparty/cardlib/ |
H A D | cardbitmaps.cpp | 179 HBITMAP hbm = CreateCompatibleBitmap(hdcCompat, width, height); in CreateSinkBmp() local 188 hold = SelectObject(hdc, hbm); in CreateSinkBmp() 243 return hbm; in CreateSinkBmp()
|
/reactos/modules/rosapps/applications/sysutils/fontsub/ |
H A D | fontsub.cpp | 336 HBITMAP hbm; in LV_Init() local 337 hbm = (HBITMAP)LoadImage(g_hInstance, MAKEINTRESOURCE(2), IMAGE_BITMAP, in LV_Init() 339 assert(hbm); in LV_Init() 340 ImageList_AddMasked(hImageList, hbm, RGB(192, 192, 192)); in LV_Init() 341 DeleteObject(hbm); in LV_Init() 345 assert(hbm); in LV_Init() 346 ImageList_AddMasked(hImageList, hbm, RGB(192, 192, 192)); in LV_Init() 347 DeleteObject(hbm); in LV_Init() 351 assert(hbm); in LV_Init() 352 ImageList_AddMasked(hImageList, hbm, RGB(192, 192, 192)); in LV_Init() [all …]
|
/reactos/sdk/lib/atl/ |
H A D | atlimage.h | 386 HBITMAP hbm = NULL; in Load() local 388 Status status = s_gdiplus.CreateHBITMAPFromBitmap(pBitmap, &hbm, color.GetValue()); in Load() 395 Attach(hbm); in Load() 412 HBITMAP hbm = NULL; in Load() local 414 Status status = s_gdiplus.CreateHBITMAPFromBitmap(pBitmap, &hbm, color.GetValue()); in Load() 421 Attach(hbm); in Load() 1215 HBITMAP hbm = ::CreateDIBSection(hDC, &bi, DIB_RGB_COLORS, NULL, NULL, 0); variable 1216 ATLASSERT(hbm); 1220 AttachInternal(hbm, eOrientation, -1); 1223 return hbm != NULL;
|
/reactos/modules/rostests/apitests/user32/ |
H A D | DrawText.c | 406 HBITMAP hbm; in START_TEST() local 411 hbm = CreateCompatibleBitmap(hdc, 100, 100); in START_TEST() 412 hbmOld = SelectObject(hdc, hbm); in START_TEST() 423 DeleteObject(hbm); in START_TEST()
|
/reactos/win32ss/gdi/eng/ |
H A D | stubs.c | 764 IN HBITMAP hbm, in NtGdiClearBitmapAttributes() argument 769 if (GDIOBJ_ConvertFromStockObj((HGDIOBJ*)&hbm)) in NtGdiClearBitmapAttributes() 771 return hbm; in NtGdiClearBitmapAttributes() 1380 IN HBITMAP hbm) in NtGdiMonoBitmap() argument 1392 IN HBITMAP hbm, in NtGdiSetBitmapAttributes() argument 1397 if (GDIOBJ_ConvertToStockObj((HGDIOBJ*)&hbm)) in NtGdiSetBitmapAttributes() 1399 return hbm; in NtGdiSetBitmapAttributes()
|
/reactos/dll/win32/windowscodecs/ |
H A D | imgfactory.c | 685 static BOOL get_16bpp_format(HBITMAP hbm, WICPixelFormatGUID *format) in get_16bpp_format() argument 700 GetDIBits(hdc, hbm, 0, 0, NULL, (BITMAPINFO *)&bmh, DIB_RGB_COLORS); in get_16bpp_format() 726 HBITMAP hbm, HPALETTE hpal, WICBitmapAlphaChannelOption option, IWICBitmap **bitmap) in ImagingFactory_CreateBitmapFromHBITMAP() argument 735 TRACE("(%p,%p,%p,%u,%p)\n", iface, hbm, hpal, option, bitmap); in ImagingFactory_CreateBitmapFromHBITMAP() 739 if (GetObjectW(hbm, sizeof(bm), &bm) != sizeof(bm)) in ImagingFactory_CreateBitmapFromHBITMAP() 762 if (!get_16bpp_format(hbm, &format)) in ImagingFactory_CreateBitmapFromHBITMAP() 810 GetDIBits(hdc, hbm, 0, 0, NULL, bmi, DIB_RGB_COLORS); in ImagingFactory_CreateBitmapFromHBITMAP() 812 GetDIBits(hdc, hbm, 0, bm.bmHeight, buffer, bmi, DIB_RGB_COLORS); in ImagingFactory_CreateBitmapFromHBITMAP() 1208 …I ComponentFactory_CreateBitmapFromHBITMAP(IWICComponentFactory *iface, HBITMAP hbm, HPALETTE hpal, in ComponentFactory_CreateBitmapFromHBITMAP() argument 1212 …return IWICImagingFactory2_CreateBitmapFromHBITMAP(&This->IWICImagingFactory2_iface, hbm, hpal, op… in ComponentFactory_CreateBitmapFromHBITMAP()
|