MCPcopy Create free account
hub / github.com/KikoPlayProject/KikoPlay / scale

Method scale

MediaLibrary/animeinfo.cpp:401–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401void Character::scale(QPixmap &img)
402{
403 if(img.isNull()) return;
404 const int maxSize = 600;
405 int w = qMin(qMin(img.width(), img.height()), maxSize);
406 img = img.scaled(w, w, Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation);
407}
408
409void AnimeImage::setRoundedThumb(const QImage &src)
410{

Callers 1

paintEventMethod · 0.45

Calls 1

isNullMethod · 0.80

Tested by

no test coverage detected