Euphoria
|
image.cc
Go to the documentation of this file.
323 // https://stackoverflow.com/questions/310451/should-i-use-static-cast-or-reinterpret-cast-when-casting-a-void-to-whatever
417 const unsigned int decompressed_size = Decompressor::stb_decompress_length(static_cast<const unsigned char*>(compressed_data));
Definition: argparse.cc:45
int write_image_data(stbi_write_func *func, void *context, int w, int h, int comp, const void *data, ImageWriteFormat format, int jpeg_quality)
Definition: image.cc:204
ImageLoadResult load_image(io::FileSystem *fs, const io::FilePath &path, AlphaLoad alpha)
Definition: image.cc:295
bool is_within_inclusive_as_int(int min, int c, int max)
Definition: numeric.cc:116
@ blue
@ green
Definition: memorychunk.h:33
static std::shared_ptr< MemoryChunk > allocate(int size)
Definition: memorychunk.cc:40
static std::shared_ptr< MemoryChunk > create_null()
Definition: memorychunk.cc:47
Definition: rect.h:125
static Recti from_width_height(int width, int height)
Definition: rect.cc:573
Definition: decompress.h:20
static unsigned int stb_decompress_length(const unsigned char *input)
Definition: decompress.cc:11
Definition: image.h:132
void setup_with_alpha_support(int image_width, int image_height, int default_value=0)
if default value is negative, default value is ignored, otherwise its the default value for both R,...
Definition: image.cc:40
void setup_no_alpha_support(int image_width, int image_height, int default_value=0)
Definition: image.cc:52
void setup(int image_width, int image_height, bool alpha, int default_value)
Definition: image.cc:63
std::shared_ptr< MemoryChunk > write(ImageWriteFormat format, int jpeg_quality=100) const
Definition: image.cc:233
Definition: vfs_path.h:36
Definition: vfs.h:74
std::shared_ptr< MemoryChunk > read_file(const FilePath &path)
Definition: vfs.cc:86