diff options
author | Vladimir Vukicevic <vladimir@pobox.com> | 2006-09-12 16:08:40 -0700 |
---|---|---|
committer | U-CYCLONE\Vladimir Vukicevic <vladimir@cyclone.(none)> | 2006-09-12 16:08:40 -0700 |
commit | 016653812640cddcc51d0500d62c5c65b33bdd04 (patch) | |
tree | c377a4bf30d899b845bf28bc306050ec38a8fe8c /src/cairo-win32.h | |
parent | 924bbd06f35f55886f808a7a9d3ee08e479389ad (diff) | |
download | cairo-016653812640cddcc51d0500d62c5c65b33bdd04.tar.gz |
[win32] Support for DDBs, AlphaBlend fix
Add support for the win32 surface using DDBs for similar surfaces and the
like when the orignal surface is created from a DC, or when a DDB is
explicitly created. A DIB is still created if alpha is required.
Also fixes a case where blitting win32 RGB24 -> ARGB32 surfaces was causing
alpha to leak into the ARGB32 surface instead of being set to fully opaque.
Diffstat (limited to 'src/cairo-win32.h')
-rw-r--r-- | src/cairo-win32.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cairo-win32.h b/src/cairo-win32.h index a5cd2f525..9710e9a8a 100644 --- a/src/cairo-win32.h +++ b/src/cairo-win32.h @@ -48,6 +48,12 @@ cairo_public cairo_surface_t * cairo_win32_surface_create (HDC hdc); cairo_public cairo_surface_t * +cairo_win32_surface_create_with_ddb (HDC hdc, + cairo_format_t format, + int width, + int height); + +cairo_public cairo_surface_t * cairo_win32_surface_create_with_dib (cairo_format_t format, int width, int height); @@ -55,6 +61,9 @@ cairo_win32_surface_create_with_dib (cairo_format_t format, cairo_public HDC cairo_win32_surface_get_dc (cairo_surface_t *surface); +cairo_public cairo_surface_t * +cairo_win32_surface_get_image (cairo_surface_t *surface); + cairo_public cairo_font_face_t * cairo_win32_font_face_create_for_logfontw (LOGFONTW *logfont); |