osecb.blogg.se

Gdigrab
Gdigrab





To be more precise, it seems like the antialias alpha get's flattened, which explains why filling a rectangle in GDI before drawing removes the artifacts. void Draw(Gdiplus::Graphics& renderContext)ĭc->FillSolidRect(GetClientRect(), RGB(255, 255, 255)) If we just get straight to drawing everything comes in without antialias.

gdigrab

If, after grabbing the DC from the Graphics object, we draw a filled rectangle over the entire area, and then proceed with the drawing, it comes out fine. The drawing happens fine, except we seem to be losing antialias on images drawn directly to the DC using GDI. As we are progressively translating teh system as we go, sometimes we need to grab a HDC from a Gdiplus::Graphics object in order to allow code which hasn't been translated yet to draw straight to it using GDI.

gdigrab

We're currently shifting an older application to draw through GDI+, instead of using GDI directly.







Gdigrab