Source code of anti-aliasing of QPainter (QImage)
Solved
General and Desktop
-
I am doing some anti-aliasing drawing jobs, I want to know how qpainter(or qimage) do anti-aliasing when fill the polygon?but I can't find the related source code part, can anyone tell me the position of related function ?
-
Hi,
IIRC, what you are looking for is the QPaintEngine implementation. You might also want to check the new abstraction layer for Qt 6 called RHI.
-
It's the other way around, QPaintEngine is used to draw. It does not have a backend using QImage.
-
@SGaist It seems that (QRasterizer)[https://code.woboq.org/qt5/qtbase/src/gui/painting/qrasterizer.cpp.htm] is what I want. I used to doubt that QImage didn't use CPU but GPU(opengl) to render, but it seems not that way.