Questions tagged [hbitmap]

A handle to a bitmap (one of Windows Data Types)

HBITMAP is pointer to any type. But usually it is used for pointing on BITMAP object (one of Windows Data Types). See it's declaration:

typedef HANDLE HBITMAP; // see WinDef.h
typedef PVOID HANDLE;   // see WinNT.h
typedef void *PVOID;    // see WinNT.h
96 questions
-1
votes
1 answer

I cannot load image from folder using win32

I am new to win32. I placed the bitmap image 'logo2.bmp' into the directory which .vcxproj is there. However, when I used the LoadImage() function, it seems that nothing is loaded. I have checked my questions online, but the image still cannot be…
-1
votes
1 answer

How to retrieve the HBITMAP from a Picture Control (MFC c++)?

I would like to know how to get the HBITMAP from a Picture Control (MFC c++). I tried this code but it didn't work: HBITMAP hBitmap1 = (HBITMAP)SendMessage(GetDlgItem(m_hWnd,IDC_VIEW),STM_GETIMAGE, (WPARAM)IMAGE_BITMAP,(LPARAM) 0); HBITMAP…
-2
votes
1 answer

How to extract a part of HBITMAP without using BitBlt

I have a HBITMAP object. Without using BitBlt I would like to divide it into parts and obtain either the bits or new bitmaps of these parts I can do it with BitBlt, but it is slow. It takes ~50 ms for extracting the part. I have considered…
arch3r
  • 56
  • 9
-3
votes
2 answers

How can you send a HBITMAP over a socket then back to a HBITMAP?

So I have a working HBITMAP which can be set to the clipboard using SetClipboardData. What I'm trying to do is send the HBITMAP to another application (without writing anything to disk) which will receive it and be able set it to the clipboard just…
user12421184
-3
votes
1 answer

GdiPlus Bitmap covert to string

Hey i'm working on a project and i want to send an image from a server to a client. How do i convert the picture from GdiPlus bitmap to string. Thanks for helping.
-3
votes
1 answer

Drawing to a GDI+ Bitmap

I am trying to move everything from GDI to GDI+. As it stands I am drawing to a buffer DC (GDI). I am wanting to have it instead drawn to a HBITMAP and only have it drawn once. I have tried things with pointers and Image, but could not find…
Evan Carslake
  • 2,267
  • 15
  • 38
  • 56
1 2 3 4 5 6
7