Euphoria
image_draw.h File Reference
#include "core/image.h"
#include "base/rgb.h"
#include "base/rect.h"
#include "base/vec2.h"
#include "core/rgb_blend.h"

Go to the source code of this file.

Namespaces

 eu
 
 eu::core
 

Enumerations

enum class  eu::core::PixelsOutside { eu::core::assert , eu::core::discard }
 

Functions

Recti eu::core::on_whole_image (const Image &image)
 
void eu::core::clear (Image *image, const Rgbai &color)
 
void eu::core::draw_rect (Image *image, const Rgbai &color, const Recti &rect)
 
void eu::core::draw_square (Image *image, const Rgbai &color, int x, int y, int size)
 
void eu::core::fill_poly (Image *image, const Rgbai &color, const std::vector< vec2f > &poly)
 
void eu::core::draw_circle (Image *image, const Rgb &color, const vec2i &center, float radius, float softness, float inner)
 
void eu::core::draw_line_fast (Image *image, const Rgbai &color, const vec2i &from, const vec2i &to)
 
void eu::core::draw_line_antialiased (Image *image, const Rgb &color, const vec2f &from, const vec2f &to)
 
void eu::core::draw_line_antialiased (Image *image, const Rgb &color, const vec2i &from, const vec2i &to)
 
void eu::core::draw_text (Image *image, const vec2i &start_pos, const std::string &text, const Rgbai &color, const LoadedFont &font)
 
void eu::core::paste_image (Image *dest_image, const vec2i &position, const Image &source_image, BlendMode blend_mode, PixelsOutside clip)
 
void eu::core::draw_arrow (Image *image, const vec2f &from, const vec2f &to, const Rgbai &color, float size)