'How to access Cairo drawn path?
I'm using cairomm to draw object.
#include "cairo/cairo.h"
int main()
{
cairo_surface_t *surface;
cairo_t *cr1;
double width = 3840;
double height = 2160;
surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
cr1 = cairo_create (surface);
cairo_move_to(cr1, 0, 0);
cairo_set_source_rgb(cr1, 1, 1, 1);
cairo_set_line_width(cr1, 50.0);
cairo_move_to(cr1, 0, 0)
cairo_line_to(cr1, width, height)
cairo_stroke();
return 0;
}
Above code makes a line. I want to manipulate(to move, to extend, etc..) the line after the line is created. Are there any solutions?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
