0

Is there any equivalent of Graphics::SetSmoothingMode from GDI+ in standard C WinAPI? I'm wondering if I can use anti-aliasing in my plain C code without rewriting the whole project to C++.

pazdinho_
  • 43
  • 1
  • 5
  • 1
    `GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics *graphics, SmoothingMode smoothingMode);` declared in *gdiplusflat.h* – RbMm Oct 09 '21 at 17:40
  • `GpGraphics *graphics` you can get via `GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics);` or `GpStatus WINGDIPAPI GdipCreateFromHWND(HWND hwnd, GpGraphics **graphics);` then call `GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics);` etc.. also in any case not need rewrite whole project - some files can use c++ and some c – RbMm Oct 09 '21 at 17:51
  • Does this answer your question? [How to use GDI+ in C?](https://stackoverflow.com/questions/5114591/how-to-use-gdi-in-c) – Barmak Shemirani Oct 10 '21 at 01:13

0 Answers0