hbitmap Questions
4
Solved
3
Solved
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.
...
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...
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...
2
Solved
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...
1
Solved
Is it possible to load a *.bmp file into a HBITMAP in a Win32 project, using only WINAPI functions?
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...
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...
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...
1
© 2022 - 2024 — McMap. All rights reserved.