Qt帮助文档里的函数声明:
void QPainter::drawImage ( const QRect & target, const QImage & image, const QRect & source, Qt::ImageConversionFlags flags = Qt::AutoColor )
QPainter painter(this);
painter.drawImage(target, image, source); //将源图像文件中(0.0, 0.0, 70.0, 40.0)位置的图像画到目标绘图设备中的(10.0, 20.0, 80.0, 60.0)位置上,大小自适应
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/233763.html原文链接:https://javaforall.net