1.11
detail/image.h
1/*
2 * Copyright (C) 2018 Microchip Technology Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef EGT_DETAIL_IMAGE_H
7#define EGT_DETAIL_IMAGE_H
8
14#include <egt/detail/meta.h>
15#include <egt/surface.h>
16#include <string>
17
18namespace egt
19{
20inline namespace v1
21{
22namespace detail
23{
24
28EGT_API Surface load_image_from_memory(const unsigned char* data,
29 size_t len,
30 const std::string& name = {});
31
36EGT_API Surface load_image_from_resource(const std::string& name);
37
41EGT_API Surface load_image_from_filesystem(const std::string& path);
42
46EGT_API Surface load_image_from_network(const std::string& url);
47
55EGT_API std::string get_mime_type(const std::string& path);
56
64EGT_API std::string get_mime_type(const void* buffer, size_t length);
65
66}
67}
68}
69
70#endif
Definition surface.h:34
EGT_API Surface load_image_from_network(const std::string &url)
Load an image from the network.
EGT_API Surface load_image_from_memory(const unsigned char *data, size_t len, const std::string &name={})
Load an image from memory.
EGT_API Surface load_image_from_resource(const std::string &name)
Load an image from ResourceManager.
EGT_API Surface load_image_from_filesystem(const std::string &path)
Load an image from the filesystem.
EGT_API std::string get_mime_type(const std::string &path)
Return the mime type string for a file.
EGT framework namespace.
Definition animation.h:24