I have a C ++ application that uses the Win32 API for Windows, and I have a problem with GDI + anti-aliasing when I don't know why this should be.
I have a custom control (custom window). When I receive the WM_PAINT message, I draw several polygons using FillPolygon on the graphics device. This graphics device was created using BeginPaint's HDC.
If the polygons appear on the screen, they, however, become sharper and not transparent, and only seem to be a few colors (maybe 256?). When I do the same in C # using the .NET interface in GDI +, it works fine, which leaves me wondering what is going on.
I am not doing anything special, this is a simple example that should work fine as far as I know. Am I doing something wrong?
Edit: Nevermind. This only happens through Remote Desktop, although the C # example does not work on Remote Desktop. The remote desktop is set to 32-bit color, so I donβt know whatβs wrong with that.
source share