hbitmap Questions

4

Solved

In my windows-only program, I use a third-party library, which returns a HBITMAP. Is there a way to initialize a QImage from its contents, i.e. to convert it to a QImage?
Sphacelus asked 28/1, 2013 at 18:24

3

Solved

I have an application which loads some blob data out of a database which can represent png formatted or raw binary data for various bitmaps and icons. This is being stored in a std::vector<unsig...
Polyploid asked 4/1, 2011 at 21:56

5

Solved

I have a HBITMAP in my pure Win32 project (no external libraries are used). Can I export it to a *.bmp file using only Winapi and/or CRT functions so I don't have to add dependencies to the project...
Winton asked 13/7, 2014 at 7:26

5

Solved

How can I get image bytes from hbitmap if I am given an HBITMAP pointer, and my application is console application. I tryed using GetDIBits which require such parameter as HDC, which I can't get. ...
Vile asked 8/1, 2013 at 3:6

5

Solved

I have some handle and I need to close it. There is some places in code, where handle may be closed. So, is this a right way to close handle? HANDLE h; .... if ( h != INVALID_HANDLE_VALUE ) { ::C...
Plight asked 23/10, 2012 at 10:53

3

Solved

Ok, whole story is, I am trying to use Leptonica+Tesseract OCR in C++ to take a screenshot, save it to a *.bmp file, then load it back up to OCR with it. I won't need to do this frequently, b...
Graphic asked 9/7, 2014 at 2:59

2

Solved

Working with bitmaps is very new to me so I've been really struggling with the online tutorials and strategies that I've read through. Basically my goal is to scan the screen for a particular RGB v...
Lucent asked 19/4, 2013 at 19:49

1

Solved

I am trying to convert hBitmap to array of bytes but I don't want to use TBitmap from unit Graphics. My input image is 128x64x32bit. var TheBits: array of array of Cardinal; begin with info.bmiH...
Agone asked 26/3, 2013 at 15:10

1

Solved

Is it possible to load a *.bmp file into a HBITMAP in a Win32 project, using only WINAPI functions?
Padus asked 15/1, 2013 at 12:41

3

Solved

Let's say I get a HBITMAP object/handle from a native Windows function. I can convert it to a managed bitmap using Bitmap.FromHbitmap(nativeHBitmap), but if the native image has transparency inform...
Grandniece asked 7/1, 2011 at 15:54

0

I have been searching in Google and Stack Overflow, and I cannot find a working example. I need to convert a HBitmap to a Managed .NET bitmap, but the following code does not preserve the alpha ch...
Thingumajig asked 14/2, 2012 at 11:3

2

Solved

Does anyone know how I can use an HBITMAP variable to write a png or jpeg file? I first looked into doing this with GDI+ but it gives me errors telling me min/max haven't been defined (defining th...
Bermuda asked 7/10, 2009 at 16:23

1

Solved

I have an HBITMAP containing alpha channel data. I can successfully render this using the ::AlphaBlend GDI function. However, when I call the ::GetPixel GDI function, I never get back values with...
Prevent asked 2/12, 2008 at 10:24
1

© 2022 - 2024 — McMap. All rights reserved.