[cairo-bugs] [Bug 4687] Getting pixel data
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Oct 14 00:25:36 PDT 2005
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=4687
stevech1097 at yahoo.com.au changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
------- Additional Comments From stevech1097 at yahoo.com.au 2005-10-14 00:25 -------
It does not solve the problem.
How can you import pixel-data into cairo from an external source, and export
pixel-data from cairo to an external application or library?
With png you can do:
cairo_image_surface_create_from_png()
cairo_surface_write_to_png()
How can you do the equivalent using pixel-data instead of png?
What is required is something like:
"cairo_image_surface_create_from_pixel_data()"
"cairo_surface_write_to_pixel_data()"
The first function is implemented by cairo_image_surface_create_for_data().
The second function is not implemented. You don't actually need to write the
pixel data, you just need to know where it is so you can read it. We just need
to be able to read
image_surface->data
which could be provided by a function
unsigned char *data = cairo_image_surface_get_data()
libpixman provides the equivalent function
pixman_image_get_data()
why can't cairo_image_surface do the same?
--
Configure bugmail: https://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