ImageUtils.hpp 346 B

123456789101112131415
  1. #pragma once
  2. #include "Path.hpp"
  3. namespace QuickMedia {
  4. enum class ImageType {
  5. JPG,
  6. PNG,
  7. GIF
  8. };
  9. // Works with jpg, png and gif files. |image_type| can be NULL
  10. bool image_get_resolution(const Path &path, int *width, int *height, ImageType *image_type = nullptr);
  11. bool is_image_ext(const char *ext);
  12. }