Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁知道如何从左上角坐标系移动到默认坐标系,其中 X/Y 轴从 QPixmap/Qimage 上的左下角开始(就像我们总是画它们一样)
这是解决方案:
QMatrix m; m.translate(0,size.height()); m.scale(1,-1); QPainter painter; painter.begin(&pic); painter.setMatrix(m);