[cairo-bugs] [Bug 12395] New: Support for writing to GdkPixbufs.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 11 13:03:36 PDT 2007


http://bugs.freedesktop.org/show_bug.cgi?id=12395

           Summary: Support for writing to GdkPixbufs.
           Product: cairo
           Version: 1.5.1
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: bjourne at gmail.com
         QAContact: cairo-bugs at cairographics.org


Lots of API:s uses GdkPixbufs. So I would like to be able to use cairo to write
on GdkPixbufs. It could be accomplished by adding CAIRO_FORMAT_PIXBUF_RGB and
CAIRO_FORMAT_PIXBUF_RGBA to cairo_format_t. Then you could wrap your pixbuf in
an ImageSurface with:

cairo_image_surface_create_for_data(gdk_pixbuf_get_pixels(pixbuf),
                                    CAIRO_FORMAT_PIXBUF_RGB,
                                    gdk_pixbuf_get_width(pixbuf),
                                    gdk_pixbuf_get_height(pixbuf),
                                    gdk_pixbuf_get_rowstride(pixbuf));


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list