When using CachedBitmaps
in GDIPlus, there is graphical corruption if Windows video "Hardware Acceleration" is lowered enough that DirectDraw is disabled:
There are six levels of hardware acceleration:
- Disable all accelerations
- Disable all but basic accelerations. (Default on server machines)
- Disable all DirectDraw and Direct3D accelerations, as well as all cursor and advanced accelerations
- Disable all cursor and advanced drawing accelerations
- Disable cursor and bitmap accelerations
- All accelerations are enabled (Default on desktop machines)
If DirectDraw is disabled, i can flip to not use a CachedBitmap, but simply rely on the slower DrawImage()
API.
How can i programatically check if DirectDraw is disabled?