25#ifndef TGUI_IMAGE_LOADER_HPP
26#define TGUI_IMAGE_LOADER_HPP
28#include <TGUI/Vector2.hpp>
29#include <TGUI/String.hpp>
31#if !TGUI_EXPERIMENTAL_USE_STD_MODULE
38TGUI_MODULE_EXPORT
namespace tgui
66 TGUI_NODISCARD
static std::unique_ptr<std::uint8_t[]>
loadFromMemory(
const std::uint8_t* data, std::size_t dataSize,
Vector2u& imageSize);
Wrapper class to store strings.
Definition String.hpp:96
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:38
Class that is internally used to load an image from a file or from memory.
Definition ImageLoader.hpp:44
static std::unique_ptr< std::uint8_t[]> loadFromFile(const String &filename, Vector2u &imageSize)
Loads an image from a file.
static std::unique_ptr< std::uint8_t[]> loadFromMemory(const std::uint8_t *data, std::size_t dataSize, Vector2u &imageSize)
Loads an image from memory (data in memory should contain the entire file, not just the pixels)