vertically center images
This commit is contained in:
parent
f7aba42af2
commit
ef9b222c35
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ void ConvertWorker::convertImage(QNetworkRequest request, QString filename, QTem
|
|||
QImage outImage = QImage(Width, Height, inImage.format());
|
||||
outImage.fill(Qt::white);
|
||||
QPainter painter(&outImage);
|
||||
painter.drawImage(0,0, inImage);
|
||||
painter.drawImage(0, (outImage.height()-inImage.height())/2, inImage);
|
||||
painter.end();
|
||||
|
||||
QTemporaryFile tmpImage;
|
||||
|
|
Loading…
Reference in a new issue