🎉 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!

Advertisement

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

2,792 views
Advertisement

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…
  • 4,177 views

    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.

    5,636 views
    Tom Sloper
    March 11, 2021 04:33 PM

    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. 

    15,936 views

    You can use those, but then you have to call ValidateRect manually.

    10,576 views
    Airbatz
    March 05, 2021 10:37 AM

    @endurion 

    Thanks for pointing that out. It has since been fixed.  ?

    8,614 views

    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…

    8,577 views
    Airbatz
    April 20, 2020 10:39 PM
    Win32 - How to merge a pattern brush with a bitmap?

    @endurion 

    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…

    6,010 views
    Airbatz
    March 21, 2020 02:12 AM

    @Shaarigan 

    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…

    4,821 views
    Airbatz
    March 15, 2020 04:40 AM

    @rafaelsantana 

    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.

    19,295 views
    Advertisement
    Advertisement