Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
thumbnails.hpp
Go to the documentation of this file.
1//
2// Created by kj16609 on 9/22/23.
3//
4
5#pragma once
6#ifndef ATLASGAMEMANAGER_THUMBNAILS_HPP
7#define ATLASGAMEMANAGER_THUMBNAILS_HPP
8
9#include <QFuture>
10#include <QImage>
11
12#include <filesystem>
13
16
17namespace atlas::images
18{
20
24 std::filesystem::path createThumbnail( const std::filesystem::path& image_path );
25
27 std::filesystem::path thumbnailPath( const std::filesystem::path& image );
28
30 QPixmap thumbnail( const std::filesystem::path& path );
31
32 namespace async
33 {
34 QFuture< QPixmap > thumbnail( const std::filesystem::path& path );
36 scaledThumbnail( const QSize size, const SCALE_TYPE scale_type, const std::filesystem::path& path );
37 } // namespace async
38
39} // namespace atlas::images
40
41#endif //ATLASGAMEMANAGER_THUMBNAILS_HPP
SCALE_TYPE
Definition config.hpp:219
QFuture< QPixmap > scaledThumbnail(const QSize size, const SCALE_TYPE scale_type, const std::filesystem::path &path)
Definition thumbnails.cpp:177
QFuture< QPixmap > thumbnail(const std::filesystem::path &path)
Definition thumbnails.cpp:167
Definition blurhash.cpp:16
std::filesystem::path createThumbnail(const std::filesystem::path &image_path)
Creates a thumbnail for a given image.
Definition thumbnails.cpp:24
std::filesystem::path thumbnailPath(const std::filesystem::path &image)
Returns the thumbnail path for an image. Will return an empty path if no thumbnail is made.
Definition thumbnails.cpp:46
QPixmap thumbnail(const std::filesystem::path &path)
Returns the thumbnail for a path. Path must be a TRUE image. NOT the thumbnail path.
Definition thumbnails.cpp:59