🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Latest gdi Activity
Trying to find a way to capture a window that contains transparency that also works when the window is covered by another.
I tried the function [PrintWindow] but it doesn't store the transparency information in the hdc.
If possible using gdi+.
https://docs.microsoft.com/en-us/win...er-printwindow
That's unfortunate regarding GDI.
SoldierOfLight said:
The Windows CPU scheduler doesn't have a guarantee of being able to wake up threads at such a small granularity. What you're talking about here is submitting a frame, having the compositor wake up and consume that frame, and then allowing the ap…
It is defined at the bottom of the code, and is called from WM_PAINT. This function blits the double buffer to the screen. The program fades a bitmap in and out using a loop. I'm reading a little more and found that 256 color bitmaps require an RGBQUAD struct to be initialized with a palette.
Phil, you're refusing to take advice that you asked for. This is the sort of behavior that has raised hackles numerous times in the past.
This thread is closed.
You can use those, but then you have to call ValidateRect manually.
Either Direct3D or Direct2D would be considered the “official” replacements depending on your goals. Unfortunately the GPU world has changed radically since DirectDraw was developed, so it no longer makes sense to keep updating it as a first-class API. However the old version definitely still works…
I have tried XORing the flags and get different results. Probably a case of undefined behaviour? None of the docs really talk about XORing two modes together. Anyway, I finally understand how this effect is done, and it's pretty simple. I switched out one graphic for another, ran the…
I have taken a look at the links but it will take a while before I can make much sense of it as a whole. Currently I'm just modifying the program step by step to see how it affects the performance. Visibly nothing is different. Thanks for your input, I will read up on WM_PAINT…
It occured to me that that might be a problem if there are more graphical effects happening at once. I'm slowly improving the program little by little.
EDIT: sorry for double-post.