bitblt Questions

0

Any ideas/workarounds on how to improve my BitBlt() reliability when running it in VMware? I have a timer that measures the time spent: SmartTimer debugTimer = SmartTimer(); debugTimer.restart(); i...
Carmellacarmelle asked 27/11, 2021 at 8:30

3

I try to copy the contents of a graphics object to a bitmap. I'm using this code public static class GraphicsBitmapConverter { [DllImport("gdi32.dll", SetLastError = true)] [return: MarshalAs(Un...
Firewater asked 6/4, 2011 at 15:5

1

I'm using BitBlt winapi function to take a screenshot of a given window, even if the window is partially overlapped. I have everything working fine already, except that, on Windows 10, for some win...
Countermove asked 30/5, 2019 at 23:43

2

Solved

My program is taking screenshots of other application windows to automate some tasks on them. Those windows can be hidden offscreen or obscured by other windows from time to time. To reduce clutte...
Freund asked 10/12, 2018 at 16:51

2

I wrote the following code (C++ Win32) to capture a game window screen and get pixel color array from the image. Function autoB() does the job. Then I draw the result array into my window to visua...
Mast asked 25/6, 2012 at 21:35

2

Solved

I have been trying to look for an example of how to make a class/function that would attempt to read text from a the screen at specified coordinates. Something simple that would use bitblt to capt...
Kaylenekayley asked 7/4, 2014 at 22:23

1

i have a big problem with windows 10, normaly i used PIL (Python) to get a nice and clean screenshot from inside a program. but with windows 10 this does not work anymore, now i become only everyt...

1

using Visual Studio 2017, vc141, the following code should got a screenshot from front game window but now it return a black and blank image. only issue with games(tried OpenGL and Vulkan, ogl ret...
Oosphere asked 13/4, 2017 at 6:49

0

I'm currently working on capturing window snapshots using GDI32.dll though I'm having an issue with Hardware Accelerated Windows that I was wondering if there was a way to circumvent. I found thi...
Catechetical asked 1/7, 2016 at 7:49

1

I am currently porting an open-source solution (Albatross ATM solution http://www.albatross.aero/) from Qt3 to Qt5. Albatross is an air traffic viewer which requires very good performances. There ...
Vibratory asked 26/6, 2015 at 8:4

2

Solved

I have a bitmap stored as a BGRA array of bytes. This is the code I've been using to paint the bitmap: CDC *dispDC = new CDC(); dispDC->CreateCompatibleDC(pDC); CBitmap *dispBMP = new CBitmap()...
Bedouin asked 3/7, 2014 at 8:21

2

I have written some c++ code to capture a window to a .bmp file. BITMAPFILEHEADER get_bitmap_file_header(int width, int height) { BITMAPFILEHEADER hdr; memset(&hdr, 0, sizeof(BITMAPFILEHEADE...
Prud asked 19/3, 2010 at 1:55

2

Solved

I'm trying to make an auto-cliker for an windows app. It works well, but it's incredibly slow! I'm currently using the method "getPixel" which reloads an array everytime it's called. Here is my cu...
Pesek asked 9/5, 2012 at 12:0

2

Solved

I'd like to get more performance out of BitBlt for capturing the screen. When Aero remains enabled, capturing only a 400x400 pixel area of the screen reduces capture time from an average of 50ms (f...
Bub asked 22/8, 2011 at 22:56

2

I can't seem to get a definite answer to this via searching. Are the Win32 blitting operations hardware accelerated (GDI, not GDI+). I don't know how these functions interface with the graphics dri...
Current asked 19/2, 2012 at 7:33

1

Solved

Is it possible to use BitBlt to copy directly out of a GDI+ bitmap without using GetHBitmap? GetHBitmap is slow because it makes a new copy of the whole image, in addition to and slower than the B...
Flash asked 3/1, 2011 at 20:34

1

Solved

In my user control's paint handler I iterate over a collection of predefined Bitmap objects and draw them to the client area thusly: C# version: private void Control_Paint(object sender, PaintEve...
Drin asked 6/4, 2010 at 20:9

2

What is the recommended method of copying one QImage into another at a particular position in Qt4? QImage::bitblt was removed in Qt4. Does the QImage now need to be converted to a PixMap and back...
Maziemazlack asked 2/8, 2010 at 1:25

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

© 2022 - 2024 — McMap. All rights reserved.