Replies: 4 comments
-
Here is a Lazarus example, in case someone is interested. I had found the idea here. (Thanks to @sechshelme.) |
Beta Was this translation helpful? Give feedback.
-
Hello Roland. I am absolutely beginner in Cairo. But what about MSEgui's best friend BGRAbitmap? |
Beta Was this translation helpful? Give feedback.
-
Re-hello Roland. I dont understand what is the goal, is it to create a memorystream from the cairo surface? |
Beta Was this translation helpful? Give feedback.
-
Hello Fred! Thanks for your answer. Indeed, I could use BGRABitmap. So, please, don't waste your time on this. As soon as I find a solution, I will post it here. ;) In my non working project, the image saved to PNG (a red square) should be drawn on the screen. But the square on the screen is black. |
Beta Was this translation helpful? Give feedback.
-
Hello!
I am trying (with no success until now) to draw with Cairo in an image, and draw the image to the screen. The goal would be to have a multiplatform way to draw with Cairo.
The idea is to use cairo_image_surface_create_for_data to create the Cairo surface. (I managed to do it with Lazarus and with FreeBASIC, so I know it is possible.)
I post here my (non working) project, in case someone has an idea.
cairo-experiment.zip
Beta Was this translation helpful? Give feedback.
All reactions