ImageUtils: Formatting
This commit is contained in:
@@ -166,6 +166,7 @@ QImage ImageUtils::ScaleAndPad(const QImage &image, const bool scale, const bool
|
|||||||
}
|
}
|
||||||
|
|
||||||
image_scaled.setDevicePixelRatio(device_pixel_ratio);
|
image_scaled.setDevicePixelRatio(device_pixel_ratio);
|
||||||
|
|
||||||
return image_scaled;
|
return image_scaled;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class ImageUtils {
|
|||||||
static QByteArray SaveImageToJpegData(const QImage &image = QImage());
|
static QByteArray SaveImageToJpegData(const QImage &image = QImage());
|
||||||
static QByteArray FileToJpegData(const QString &filename);
|
static QByteArray FileToJpegData(const QString &filename);
|
||||||
static QPixmap TryLoadPixmap(const QUrl &automatic, const QUrl &manual, const QUrl &url = QUrl());
|
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 CreateThumbnail(const QImage &image, const bool pad, const QSize size);
|
||||||
static QImage GenerateNoCoverImage(const QSize size = QSize());
|
static QImage GenerateNoCoverImage(const QSize size = QSize());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user