[cairo-bugs] [Bug 18962] New: Request Additional Format Support
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Dec 8 15:29:21 PST 2008
http://bugs.freedesktop.org/show_bug.cgi?id=18962
Summary: Request Additional Format Support
Product: cairo
Version: 1.8.4
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: win32 backend
AssignedTo: cairo-bugs at cairographics.org
ReportedBy: bfulgham at gmail.com
QAContact: cairo-bugs at cairographics.org
I am using Cairo for the redistributable WebKit build on Windows. There are a
few cases where I need to access the resulting 32-bit ARGB format images
produced with Cairo via an HBITMAP window handle.
Unfortunately, none of the existing API calls are ideal:
1. cairo_win32_surface_create(HDC dc) only returns 24-bit bitmaps.
2. cairo_win32_surface_create_with_dib () does what I want, but does not
provide access to the internal HBITMAP object.
3. cairo_image_surface_create_for_data is almost exactly what I need, except
there is no way to tag it internally so that drawing functions properly invert
the bitmap representation so images are shown right-side-up.
Much of the functionality I would like access to exists in the private
(internal) _cairo_win32_surface_create_for_dc function (in
cairo-win32-surface.c), but is obviously not accessible to external users.
Some of my trouble could be mitigated by adding a new function
'cairo_win32_surface_get_bitmap' (analogous to cairo_win32_surface_get_dc) that
simply returned the internal HBITMAP reference in cairo_win32_surface_t.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the cairo-bugs
mailing list