Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternate of BufferedImage in C++

I am using BufferedImage in my Java program for storing some information in an image. The problem is that I want to create a similar program in C++ but I can't find an alternate of BufferedImage..

Looking forward to some useful ideas. Thanks

like image 979
Farhan Avatar asked Dec 30 '25 07:12

Farhan


1 Answers

You can have a look at the cairo library: http://cairographics.org/

In the examples:

cairo_surface_t *surface;
cairo_t *cr;
surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
cr = cairo_create (surface);
like image 139
Pierre Avatar answered Jan 01 '26 22:01

Pierre



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!