Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Atypicalim/replot

Repository files navigation

Replot

0. Description

a canvas library for c to draw shapes on images, you can save the canvas to and image or draw to a buffer with custom plot func.

1. Usage

drawing some rect and save as an image

// create a canvas
Replot *rplt = Replot_new(600, 600);
// print ascii text
Replot_printText(rplt, RPOINT(300, 100), 10, "WELCOME!");
// fill with stencil
Replot_setImage(rplt, "test.png");
Replot_fillRect(rplt, RPOINT(300, 400), RSIZE(200, 200)); 
// save as image
Replot_write(rplt, "test.jpg");

for more info please visit replot.c file

2. Alternatives

About

a canvas library for c to draw shapes on images ...

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published