mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-05 12:56:52 +01:00
ImageUtils: Formatting
This commit is contained in:
parent
03aabeb848
commit
c49cb0c119
@ -166,6 +166,7 @@ QImage ImageUtils::ScaleAndPad(const QImage &image, const bool scale, const bool
|
||||
}
|
||||
|
||||
image_scaled.setDevicePixelRatio(device_pixel_ratio);
|
||||
|
||||
return image_scaled;
|
||||
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ class ImageUtils {
|
||||
static QByteArray SaveImageToJpegData(const QImage &image = QImage());
|
||||
static QByteArray FileToJpegData(const QString &filename);
|
||||
static QPixmap TryLoadPixmap(const QUrl &automatic, const QUrl &manual, const QUrl &url = QUrl());
|
||||
static QImage ScaleAndPad(const QImage &image, const bool scale, const bool pad, const int desired_height, const qreal device_pixel_ratio = 1.0f);
|
||||
static QImage ScaleAndPad(const QImage &image, const bool scale, const bool pad, const int desired_height, const qreal device_pixel_ratio = 1.0F);
|
||||
static QImage CreateThumbnail(const QImage &image, const bool pad, const QSize size);
|
||||
static QImage GenerateNoCoverImage(const QSize size = QSize());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user