7 Jan
2008
7 Jan
'08
10:56 p.m.
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.
--
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org