6#ifndef EGT_DETAIL_IMAGE_H
7#define EGT_DETAIL_IMAGE_H
14#include <egt/detail/meta.h>
15#include <egt/surface.h>
30 const std::string& name = {},
31 float hscale = 1.0,
float vscale = 1.0);
38 float hscale = 1.0,
float vscale = 1.0);
44 float hscale = 1.0,
float vscale = 1.0);
50 float hscale = 1.0,
float vscale = 1.0);
EGT_API Surface load_image_from_memory(const unsigned char *data, size_t len, const std::string &name={}, float hscale=1.0, float vscale=1.0)
Load an image from memory.
EGT_API Surface load_image_from_resource(const std::string &name, float hscale=1.0, float vscale=1.0)
Load an image from ResourceManager.
EGT_API Surface load_image_from_network(const std::string &url, float hscale=1.0, float vscale=1.0)
Load an image from the network.
EGT_API std::string get_mime_type(const std::string &path)
Return the mime type string for a file.
EGT_API Surface load_image_from_filesystem(const std::string &path, float hscale=1.0, float vscale=1.0)
Load an image from the filesystem.
EGT framework namespace.
Definition animation.h:24