aboutsummaryrefslogtreecommitdiff
path: root/include/ImageUtils.hpp
blob: f5f757efbc4158b75b7be5bfc0a054df7ead10d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include "Path.hpp"

namespace QuickMedia {
    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);
}