mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-25 09:11:06 -04:00
antialiasing of channel images
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7572 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
58e338a1ff
commit
28277c53df
1 changed files with 1 additions and 1 deletions
|
@ -464,7 +464,7 @@ bool CreateGxsChannelMsg::setThumbNail(const std::string& path, int frame){
|
||||||
tNail.save(&buffer, "PNG");
|
tNail.save(&buffer, "PNG");
|
||||||
QPixmap img;
|
QPixmap img;
|
||||||
img.loadFromData(ba, "PNG");
|
img.loadFromData(ba, "PNG");
|
||||||
img = img.scaled(thumbnail_label->width(), thumbnail_label->height(), Qt::KeepAspectRatio);
|
img = img.scaled(thumbnail_label->width(), thumbnail_label->height(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||||
thumbnail_label->setPixmap(img);
|
thumbnail_label->setPixmap(img);
|
||||||
|
|
||||||
delete[] imageBuffer;
|
delete[] imageBuffer;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue