xtd.drawing - Reference Guide  0.1.0
Modern c++17 library providing access to GDI+ basic graphics functionality. More advanced functionality is provided in the drawing 2D, imaging, and text.
drawing::graphics Class Reference

Defines an object used to draw lines and curves. This class cannot be inherited. More...

#include <graphics.h>

Public Member Functions

void clear (const color &color)
 
void draw_arc (const pen &pen, int32_t x, int32_t y, int32_t width, int32_t height, int32_t start_angle, int32_t sweep_angle)
 
void draw_arc (const pen &pen, float x, float y, float width, float height, float start_angle, float sweep_angle)
 
void draw_arc (const pen &pen, const rectangle &rect, float start_angle, float sweep_angle)
 
void draw_arc (const pen &pen, const rectangle_f &rect, float start_angle, float sweep_angle)
 
void draw_bezier (const pen &pen, int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t x3, int32_t y3, int32_t x4, int32_t y4)
 
void draw_ellipse (const pen &pen, int32_t x, int32_t y, int32_t width, int32_t height)
 
void draw_ellipse (const pen &pen, float x, float y, float width, float height)
 
void draw_ellipse (const pen &pen, const rectangle &rect)
 
void draw_ellipse (const pen &pen, const rectangle_f &rect)
 
void draw_image (const image &image, const point &point)
 
void draw_image (const image &image, int32_t x, int32_t y)
 
void draw_line (const pen &pen, int32_t x1, int32_t y1, int32_t x2, int32_t y2)
 
void draw_line (const pen &pen, float x1, float y1, float x2, float y2)
 
void draw_line (const pen &pen, const point &p1, const point &p2)
 
void draw_line (const pen &pen, const point_f &p1, const point_f &p2)
 
void draw_rectangle (const pen &pen, int32_t x, int32_t y, int32_t width, int32_t height)
 
void draw_rectangle (const pen &pen, float x, float y, float width, float height)
 
void draw_rectangle (const pen &pen, const rectangle &rect)
 
void draw_rectangle (const pen &pen, const rectangle_f &rect)
 
void draw_string (const std::string &text, const font &font, const brush &brush, float x, float y, const string_format &format)
 
void draw_string (const std::string &text, const font &font, const brush &brush, float x, float y)
 
void draw_string (const std::string &text, const font &font, const brush &brush, const point_f &point, const string_format &format)
 
void draw_string (const std::string &text, const font &font, const brush &brush, const point_f &point)
 
void draw_string (const std::string &text, const font &font, const brush &brush, const rectangle_f &layout_rectangle, const string_format &format)
 
void draw_string (const std::string &text, const font &font, const brush &brush, const rectangle_f &layout_rectangle)
 
void fill_ellipse (const brush &brush, int32_t x, int32_t y, int32_t width, int32_t height)
 
void fill_ellipse (const brush &brush, float x, float y, float width, float height)
 
void fill_ellipse (const brush &brush, const rectangle &rect)
 
void fill_ellipse (const brush &brush, const rectangle_f &rect)
 
void fill_pie (const brush &brush, int32_t x, int32_t y, int32_t width, int32_t height, int32_t start_angle, int32_t sweep_angle)
 
void fill_pie (const brush &brush, float x, float y, float width, float height, float start_angle, float sweep_angle)
 
void fill_pie (const brush &brush, const rectangle &rect, float start_angle, float sweep_angle)
 
void fill_pie (const brush &brush, const rectangle_f &rect, float start_angle, float sweep_angle)
 
void fill_rectangle (const brush &brush, int32_t x, int32_t y, int32_t width, int32_t height)
 
void fill_rectangle (const brush &brush, float x, float y, float width, float height)
 
void fill_rectangle (const brush &brush, const rectangle &rect)
 
void fill_rectangle (const brush &brush, const rectangle_f &rect)
 
intptr_t handle () const
 
size_f measure_string (const std::string &text, const font &font)
 
std::string to_string () const
 

Detailed Description

Defines an object used to draw lines and curves. This class cannot be inherited.


The documentation for this class was generated from the following file: