26#ifndef TGUI_IMAGE_LOADER_HPP
27#define TGUI_IMAGE_LOADER_HPP
30#include <TGUI/Vector2.hpp>
31#include <TGUI/String.hpp>
66 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:79
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:36
Class that is internally used to load an image from a file or from memory.
Definition ImageLoader.hpp:43
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)