help needed: convert a SPItem into its gdk_pixbuf
Hello all, in order to show blur as blur in PDF we need to convert the shape into its rendered pixbuf.
We need to place a piece of code in src/extension/internal/cairo-renderer.cpp that does this conversion. And then to include as pure image data. I have checked the /helper/png-write.cpp and in src/selection-chemistry.cpp (sp_selection_create_bitmap_copy ()).
So far I do not really understand which functions needed in order to get the pixbuf.
I need someone that can do the job.
Any help?
Adib. ---
On Jan 7, 2008 4:08 AM, Adib taraben <theadib@...1439...> wrote:
We need to place a piece of code in src/extension/internal/cairo-renderer.cpp that does this conversion. And then to include as pure image data. I have checked the /helper/png-write.cpp and in src/selection-chemistry.cpp (sp_selection_create_bitmap_copy ()).
So far I do not really understand which functions needed in order to get the pixbuf.
Well, you can set up a new NRArena and render the object onto it, but that's a lot of work. Why not just reuse sp_selection_create_bitmap_copy ()? It would be much simpler. Just reuse most of that function, write a temporary png file with the given resolution, and then create a pixbuf from that file.
participants (2)
-
Adib taraben
-
bulia byak