aboutsummaryrefslogtreecommitdiff
path: root/include/ImageUtils.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-23 00:56:54 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-23 01:00:37 +0200
commit6b347e7310c501b826785e9639d962ba1d448b4b (patch)
tree6d84b547078d009565a75ac2df42423c06c578b7 /include/ImageUtils.hpp
parenta8e0846a7c111a8d5b5cf8592ecb9b9bbd15ce26 (diff)
Add matrix image upload
Diffstat (limited to 'include/ImageUtils.hpp')
-rw-r--r--include/ImageUtils.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/ImageUtils.hpp b/include/ImageUtils.hpp
index 58eb197..f5f757e 100644
--- a/include/ImageUtils.hpp
+++ b/include/ImageUtils.hpp
@@ -3,7 +3,13 @@
#include "Path.hpp"
namespace QuickMedia {
- // Works with jpg, png and gif files
- bool image_get_resolution(const Path &path, int *width, int *height);
+ enum class ImageType {
+ JPG,
+ PNG,
+ GIF
+ };
+
+ // Works with jpg, png and gif files. |image_type| can be NULL
+ bool image_get_resolution(const Path &path, int *width, int *height, ImageType *image_type = nullptr);
bool is_image_ext(const char *ext);
} \ No newline at end of file