cairo 1.8.3-x86-mingw32 → 1.8.4-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cairo might be problematic. Click here for more details.

Files changed (126) hide show
  1. data/NEWS +14 -0
  2. data/Rakefile +2 -2
  3. data/ext/cairo/rb_cairo.c +1 -1
  4. data/extconf.rb +11 -11
  5. data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/freetype6.dll +0 -0
  6. data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/libcairo-2.dll +0 -0
  7. data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/libfontconfig-1.dll +0 -0
  8. data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/libpng14-14.dll +0 -0
  9. data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/zlib1.dll +0 -0
  10. data/home/kou/work/ruby/rcairo.win32/vendor/local/etc/fonts/fonts.conf +151 -0
  11. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-deprecated.h +138 -0
  12. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-features.h +20 -0
  13. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-ft.h +75 -0
  14. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-pdf.h +68 -0
  15. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-ps.h +114 -0
  16. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-svg.h +82 -0
  17. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-version.h +8 -0
  18. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-win32.h +112 -0
  19. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo.h +2328 -0
  20. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/libpng14/png.h +2701 -0
  21. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/libpng14/pngconf.h +1525 -0
  22. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/png.h +2701 -0
  23. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/pngconf.h +1525 -0
  24. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/zconf.h +461 -0
  25. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/zlib.h +1589 -0
  26. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/cairo.def +278 -0
  27. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/cairo.lib +0 -0
  28. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libcairo.dll.a +0 -0
  29. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libpng.def +192 -0
  30. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libpng.lib +0 -0
  31. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libpng14.dll.a +0 -0
  32. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libz.dll.a +0 -0
  33. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-ft.pc +12 -0
  34. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-pdf.pc +12 -0
  35. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-png.pc +12 -0
  36. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-ps.pc +12 -0
  37. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-svg.pc +12 -0
  38. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-win32-font.pc +12 -0
  39. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-win32.pc +12 -0
  40. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo.pc +13 -0
  41. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/libpng.pc +11 -0
  42. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/libpng14.pc +11 -0
  43. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/zdll.lib +0 -0
  44. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/zlib.def +67 -0
  45. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/cairo-dev_1.8.10-4_win32.mft +76 -0
  46. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/cairo_1.8.10-4_win32.mft +5 -0
  47. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/fontconfig_2.8.0-2_win32.mft +3 -0
  48. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/freetype_2.4.2-1_win32.mft +2 -0
  49. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/libpng-dev_1.4.3-1_win32.mft +15 -0
  50. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/libpng_1.4.3-1_win32.mft +2 -0
  51. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/zlib-dev_1.2.5-2_win32.mft +8 -0
  52. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/zlib_1.2.5-2_win32.mft +2 -0
  53. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/doc/cairo_1.8.10-4_win32/COPYING +32 -0
  54. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/doc/cairo_1.8.10-4_win32/COPYING-LGPL-2.1 +510 -0
  55. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/doc/cairo_1.8.10-4_win32/COPYING-MPL-1.1 +470 -0
  56. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +132 -0
  57. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +63 -0
  58. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +133 -0
  59. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +131 -0
  60. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +127 -0
  61. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +67 -0
  62. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +130 -0
  63. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +102 -0
  64. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +103 -0
  65. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-context.html +2643 -0
  66. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +57 -0
  67. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-error-status.html +360 -0
  68. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-font-face.html +408 -0
  69. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-font-options.html +678 -0
  70. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +63 -0
  71. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-ft-font.html +319 -0
  72. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-image-surface.html +473 -0
  73. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-matrix.html +596 -0
  74. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-paths.html +1274 -0
  75. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-pattern.html +1485 -0
  76. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-pdf-surface.html +238 -0
  77. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-png-functions.html +341 -0
  78. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-ps-surface.html +622 -0
  79. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-quartz-font.html +151 -0
  80. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-quartz-surface.html +219 -0
  81. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-scaled-font.html +1023 -0
  82. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +54 -0
  83. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-surface.html +1026 -0
  84. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +69 -0
  85. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-svg-surface.html +321 -0
  86. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +1222 -0
  87. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-transformations.html +436 -0
  88. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-types.html +133 -0
  89. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-user-font.html +735 -0
  90. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-version-info.html +345 -0
  91. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-win32-font.html +358 -0
  92. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-win32-surface.html +312 -0
  93. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-xlib-surface.html +492 -0
  94. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp +417 -0
  95. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +542 -0
  96. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
  97. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +141 -0
  98. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +109 -0
  99. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +71 -0
  100. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +107 -0
  101. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-all.html +759 -0
  102. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index.html +144 -0
  103. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index.sgml +478 -0
  104. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +83 -0
  105. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
  106. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
  107. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/style.css +167 -0
  108. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
  109. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/man/man3/libpng.3 +4455 -0
  110. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/man/man3/libpngpf.3 +808 -0
  111. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/man/man5/png.5 +74 -0
  112. data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/cairo_1.8.10-4_win32.log +920 -0
  113. data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/cairo_1.8.10-4_win32.sh +76 -0
  114. data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/libpng_1.4.3-1_win32.log +272 -0
  115. data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/libpng_1.4.3-1_win32.sh +71 -0
  116. data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.log +42 -0
  117. data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.sh +189 -0
  118. data/lib/1.8/cairo.so +0 -0
  119. data/lib/1.9/cairo.so +0 -0
  120. data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.8.7/fake.rb +0 -0
  121. data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.8.7/mkmf.rb +0 -0
  122. data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.8.7/rbconfig.rb +0 -0
  123. data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.9.2/fake.rb +0 -0
  124. data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.9.2/mkmf.rb +0 -0
  125. data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.9.2/rbconfig.rb +1 -1
  126. metadata +126 -40
@@ -0,0 +1,63 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>Fonts</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
+ <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="index.html" title="Cairo: A Vector Graphics Library">
9
+ <link rel="prev" href="cairo-text.html" title="Text">
10
+ <link rel="next" href="cairo-font-face.html" title="cairo_font_face_t">
11
+ <meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ <link rel="chapter" href="cairo-drawing.html" title="Drawing">
14
+ <link rel="chapter" href="cairo-fonts.html" title="Fonts">
15
+ <link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
16
+ <link rel="chapter" href="cairo-support.html" title="Utilities">
17
+ <link rel="index" href="index-all.html" title="Index">
18
+ <link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
19
+ <link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
20
+ <link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
21
+ <link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
22
+ <link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
23
+ </head>
24
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
25
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
26
+ <td><a accesskey="p" href="cairo-text.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
27
+ <td> </td>
28
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
29
+ <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
30
+ <td><a accesskey="n" href="cairo-font-face.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
+ </tr></table>
32
+ <div class="chapter" title="Fonts">
33
+ <div class="titlepage"><div><div><h2 class="title">
34
+ <a name="cairo-fonts"></a>Fonts</h2></div></div></div>
35
+ <div class="toc"><dl>
36
+ <dt>
37
+ <span class="refentrytitle"><a href="cairo-font-face.html">cairo_font_face_t</a></span><span class="refpurpose"> — Base class for font faces</span>
38
+ </dt>
39
+ <dt>
40
+ <span class="refentrytitle"><a href="cairo-scaled-font.html">cairo_scaled_font_t</a></span><span class="refpurpose"> — Font face at particular size and options</span>
41
+ </dt>
42
+ <dt>
43
+ <span class="refentrytitle"><a href="cairo-font-options.html">cairo_font_options_t</a></span><span class="refpurpose"> — How a font should be rendered</span>
44
+ </dt>
45
+ <dt>
46
+ <span class="refentrytitle"><a href="cairo-ft-font.html">FreeType Fonts</a></span><span class="refpurpose"> — Font support for FreeType</span>
47
+ </dt>
48
+ <dt>
49
+ <span class="refentrytitle"><a href="cairo-win32-font.html">Win32 Fonts</a></span><span class="refpurpose"> — Font support for Microsoft Windows</span>
50
+ </dt>
51
+ <dt>
52
+ <span class="refentrytitle"><a href="cairo-quartz-font.html">Quartz (CGFont) Fonts</a></span><span class="refpurpose"> — Font support via CGFont on OS X</span>
53
+ </dt>
54
+ <dt>
55
+ <span class="refentrytitle"><a href="cairo-user-font.html">User Fonts</a></span><span class="refpurpose"> — Font support with font data provided by the user</span>
56
+ </dt>
57
+ </dl></div>
58
+ </div>
59
+ <div class="footer">
60
+ <hr>
61
+ Generated by GTK-Doc V1.11</div>
62
+ </body>
63
+ </html>
@@ -0,0 +1,319 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>FreeType Fonts</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
+ <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="cairo-fonts.html" title="Fonts">
9
+ <link rel="prev" href="cairo-font-options.html" title="cairo_font_options_t">
10
+ <link rel="next" href="cairo-win32-font.html" title="Win32 Fonts">
11
+ <meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ <link rel="chapter" href="cairo-drawing.html" title="Drawing">
14
+ <link rel="chapter" href="cairo-fonts.html" title="Fonts">
15
+ <link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
16
+ <link rel="chapter" href="cairo-support.html" title="Utilities">
17
+ <link rel="index" href="index-all.html" title="Index">
18
+ <link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
19
+ <link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
20
+ <link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
21
+ <link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
22
+ <link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
23
+ </head>
24
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
25
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
26
+ <tr valign="middle">
27
+ <td><a accesskey="p" href="cairo-font-options.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
28
+ <td><a accesskey="u" href="cairo-fonts.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
29
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
30
+ <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
31
+ <td><a accesskey="n" href="cairo-win32-font.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
32
+ </tr>
33
+ <tr><td colspan="5" class="shortcuts">
34
+ <a href="#cairo-ft-font.synopsis" class="shortcut">Top</a>
35
+  | 
36
+ <a href="#cairo-ft-font.description" class="shortcut">Description</a>
37
+ </td></tr>
38
+ </table>
39
+ <div class="refentry" title="FreeType Fonts">
40
+ <a name="cairo-ft-font"></a><div class="titlepage"></div>
41
+ <div class="refnamediv"><table width="100%"><tr>
42
+ <td valign="top">
43
+ <h2><span class="refentrytitle"><a name="cairo-ft-font.top_of_page"></a>FreeType Fonts</span></h2>
44
+ <p>FreeType Fonts — Font support for FreeType</p>
45
+ </td>
46
+ <td valign="top" align="right"></td>
47
+ </tr></table></div>
48
+ <div class="refsynopsisdiv" title="Synopsis">
49
+ <a name="cairo-ft-font.synopsis"></a><h2>Synopsis</h2>
50
+ <pre class="synopsis">
51
+ #define <a class="link" href="cairo-ft-font.html#CAIRO-HAS-FT-FONT--CAPS" title="CAIRO_HAS_FT_FONT">CAIRO_HAS_FT_FONT</a>
52
+ <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> * <a class="link" href="cairo-ft-font.html#cairo-ft-font-face-create-for-ft-face" title="cairo_ft_font_face_create_for_ft_face ()">cairo_ft_font_face_create_for_ft_face</a>
53
+ (FT_Face face,
54
+ int load_flags);
55
+ <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> * <a class="link" href="cairo-ft-font.html#cairo-ft-font-face-create-for-pattern" title="cairo_ft_font_face_create_for_pattern ()">cairo_ft_font_face_create_for_pattern</a>
56
+ (FcPattern *pattern);
57
+ void <a class="link" href="cairo-ft-font.html#cairo-ft-font-options-substitute" title="cairo_ft_font_options_substitute ()">cairo_ft_font_options_substitute</a> (const <a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t">cairo_font_options_t</a> *options,
58
+ FcPattern *pattern);
59
+ FT_Face <a class="link" href="cairo-ft-font.html#cairo-ft-scaled-font-lock-face" title="cairo_ft_scaled_font_lock_face ()">cairo_ft_scaled_font_lock_face</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);
60
+ void <a class="link" href="cairo-ft-font.html#cairo-ft-scaled-font-unlock-face" title="cairo_ft_scaled_font_unlock_face ()">cairo_ft_scaled_font_unlock_face</a> (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);
61
+ </pre>
62
+ </div>
63
+ <div class="refsect1" title="Description">
64
+ <a name="cairo-ft-font.description"></a><h2>Description</h2>
65
+ <p>
66
+ The FreeType font backend is primarily used to render text on GNU/Linux
67
+ systems, but can be used on other platforms too.
68
+ </p>
69
+ </div>
70
+ <div class="refsect1" title="Details">
71
+ <a name="cairo-ft-font.details"></a><h2>Details</h2>
72
+ <div class="refsect2" title="CAIRO_HAS_FT_FONT">
73
+ <a name="CAIRO-HAS-FT-FONT--CAPS"></a><h3>CAIRO_HAS_FT_FONT</h3>
74
+ <pre class="programlisting">#define CAIRO_HAS_FT_FONT 1
75
+ </pre>
76
+ <p>
77
+ Defined if the FreeType font backend is available.
78
+ This macro can be used to conditionally compile backend-specific code.
79
+ </p>
80
+ </div>
81
+ <hr>
82
+ <div class="refsect2" title="cairo_ft_font_face_create_for_ft_face ()">
83
+ <a name="cairo-ft-font-face-create-for-ft-face"></a><h3>cairo_ft_font_face_create_for_ft_face ()</h3>
84
+ <pre class="programlisting"><a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> * cairo_ft_font_face_create_for_ft_face
85
+ (FT_Face face,
86
+ int load_flags);</pre>
87
+ <p>
88
+ Creates a new font face for the FreeType font backend from a
89
+ pre-opened FreeType face. This font can then be used with
90
+ <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a> or <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a>. The
91
+ <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> returned from <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a> is
92
+ also for the FreeType backend and can be used with functions such
93
+ as <a class="link" href="cairo-ft-font.html#cairo-ft-scaled-font-lock-face" title="cairo_ft_scaled_font_lock_face ()"><code class="function">cairo_ft_scaled_font_lock_face()</code></a>. Note that Cairo may keep a reference
94
+ to the FT_Face alive in a font-cache and the exact lifetime of the reference
95
+ depends highly upon the exact usage pattern and is subject to external
96
+ factors. You must not call <code class="function">FT_Done_Face()</code> before the last reference to the
97
+ <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a> has been dropped.
98
+ </p>
99
+ <p>
100
+ As an example, below is how one might correctly couple the lifetime of
101
+ the FreeType face object to the <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>.
102
+ </p>
103
+ <p>
104
+ </p>
105
+ <div class="informalexample"><pre class="programlisting">
106
+ static const cairo_user_data_key_t key;
107
+
108
+ font_face = cairo_ft_font_face_create_for_ft_face (ft_face, 0);
109
+ status = cairo_font_face_set_user_data (font_face, &amp;key,
110
+ ft_face, (cairo_destroy_func_t) FT_Done_Face);
111
+ if (status) {
112
+ cairo_font_face_destroy (font_face);
113
+ FT_Done_Face (ft_face);
114
+ return ERROR;
115
+ }
116
+ </pre></div>
117
+ <p>
118
+ </p>
119
+ <div class="variablelist"><table border="0">
120
+ <col align="left" valign="top">
121
+ <tbody>
122
+ <tr>
123
+ <td><p><span class="term"><em class="parameter"><code>face</code></em> :</span></p></td>
124
+ <td> A FreeType face object, already opened. This must
125
+ be kept around until the face's ref_count drops to
126
+ zero and it is freed. Since the face may be referenced
127
+ internally to Cairo, the best way to determine when it
128
+ is safe to free the face is to pass a
129
+ <a class="link" href="cairo-types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()"><span class="type">cairo_destroy_func_t</span></a> to <a class="link" href="cairo-font-face.html#cairo-font-face-set-user-data" title="cairo_font_face_set_user_data ()"><code class="function">cairo_font_face_set_user_data()</code></a>
130
+ </td>
131
+ </tr>
132
+ <tr>
133
+ <td><p><span class="term"><em class="parameter"><code>load_flags</code></em> :</span></p></td>
134
+ <td> flags to pass to FT_Load_Glyph when loading
135
+ glyphs from the font. These flags are OR'ed together with
136
+ the flags derived from the <a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> passed
137
+ to <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a>, so only a few values such
138
+ as <code class="literal">FT_LOAD_VERTICAL_LAYOUT</code>, and <code class="literal">FT_LOAD_FORCE_AUTOHINT</code>
139
+ are useful. You should not pass any of the flags affecting
140
+ the load target, such as <code class="literal">FT_LOAD_TARGET_LIGHT</code>.
141
+ </td>
142
+ </tr>
143
+ <tr>
144
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
145
+ <td> a newly created <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
146
+ <a class="link" href="cairo-font-face.html#cairo-font-face-destroy" title="cairo_font_face_destroy ()"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.
147
+ </td>
148
+ </tr>
149
+ </tbody>
150
+ </table></div>
151
+ </div>
152
+ <hr>
153
+ <div class="refsect2" title="cairo_ft_font_face_create_for_pattern ()">
154
+ <a name="cairo-ft-font-face-create-for-pattern"></a><h3>cairo_ft_font_face_create_for_pattern ()</h3>
155
+ <pre class="programlisting"><a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t">cairo_font_face_t</a> * cairo_ft_font_face_create_for_pattern
156
+ (FcPattern *pattern);</pre>
157
+ <p>
158
+ Creates a new font face for the FreeType font backend based on a
159
+ fontconfig pattern. This font can then be used with
160
+ <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a> or <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a>. The
161
+ <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> returned from <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a> is
162
+ also for the FreeType backend and can be used with functions such
163
+ as <a class="link" href="cairo-ft-font.html#cairo-ft-scaled-font-lock-face" title="cairo_ft_scaled_font_lock_face ()"><code class="function">cairo_ft_scaled_font_lock_face()</code></a>.
164
+ </p>
165
+ <p>
166
+ Font rendering options are represented both here and when you
167
+ call <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a>. Font options that have a representation
168
+ in a <span class="type">FcPattern</span> must be passed in here; to modify <span class="type">FcPattern</span>
169
+ appropriately to reflect the options in a <a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a>, call
170
+ <a class="link" href="cairo-ft-font.html#cairo-ft-font-options-substitute" title="cairo_ft_font_options_substitute ()"><code class="function">cairo_ft_font_options_substitute()</code></a>.
171
+ </p>
172
+ <p>
173
+ The pattern's FC_FT_FACE element is inspected first and if that is set,
174
+ that will be the FreeType font face associated with the returned cairo
175
+ font face. Otherwise the FC_FILE and FC_INDEX elements of <em class="parameter"><code>pattern</code></em> are
176
+ used to load a font face from file.
177
+ </p>
178
+ <p>
179
+ If the FC_FT_FACE element of <em class="parameter"><code>pattern</code></em> is set, the user is responsible
180
+ for making sure that the referenced FT_Face remains valid for the life
181
+ time of the returned <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. See
182
+ <a class="link" href="cairo-ft-font.html#cairo-ft-font-face-create-for-ft-face" title="cairo_ft_font_face_create_for_ft_face ()"><code class="function">cairo_ft_font_face_create_for_ft_face()</code></a> for an exmaple of how to couple
183
+ the life time of the FT_Face to that of the cairo font-face.</p>
184
+ <p>
185
+ </p>
186
+ <div class="variablelist"><table border="0">
187
+ <col align="left" valign="top">
188
+ <tbody>
189
+ <tr>
190
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
191
+ <td> A fully resolved fontconfig
192
+ pattern. A pattern can be resolved, by, among other things, calling
193
+ <code class="function">FcConfigSubstitute()</code>, <code class="function">FcDefaultSubstitute()</code>, then
194
+ <code class="function">FcFontMatch()</code>. Cairo will call <code class="function">FcPatternReference()</code> on this
195
+ pattern, so you should not further modify the pattern, but you can
196
+ release your reference to the pattern with <code class="function">FcPatternDestroy()</code> if
197
+ you no longer need to access it.
198
+ </td>
199
+ </tr>
200
+ <tr>
201
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
202
+ <td> a newly created <a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
203
+ <a class="link" href="cairo-font-face.html#cairo-font-face-destroy" title="cairo_font_face_destroy ()"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.
204
+ </td>
205
+ </tr>
206
+ </tbody>
207
+ </table></div>
208
+ </div>
209
+ <hr>
210
+ <div class="refsect2" title="cairo_ft_font_options_substitute ()">
211
+ <a name="cairo-ft-font-options-substitute"></a><h3>cairo_ft_font_options_substitute ()</h3>
212
+ <pre class="programlisting">void cairo_ft_font_options_substitute (const <a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t">cairo_font_options_t</a> *options,
213
+ FcPattern *pattern);</pre>
214
+ <p>
215
+ Add options to a <span class="type">FcPattern</span> based on a <a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> font
216
+ options object. Options that are already in the pattern, are not overridden,
217
+ so you should call this function after calling <code class="function">FcConfigSubstitute()</code> (the
218
+ user's settings should override options based on the surface type), but
219
+ before calling <code class="function">FcDefaultSubstitute()</code>.</p>
220
+ <p>
221
+ </p>
222
+ <div class="variablelist"><table border="0">
223
+ <col align="left" valign="top">
224
+ <tbody>
225
+ <tr>
226
+ <td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
227
+ <td> a <a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> object
228
+ </td>
229
+ </tr>
230
+ <tr>
231
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
232
+ <td> an existing <span class="type">FcPattern</span>
233
+ </td>
234
+ </tr>
235
+ </tbody>
236
+ </table></div>
237
+ </div>
238
+ <hr>
239
+ <div class="refsect2" title="cairo_ft_scaled_font_lock_face ()">
240
+ <a name="cairo-ft-scaled-font-lock-face"></a><h3>cairo_ft_scaled_font_lock_face ()</h3>
241
+ <pre class="programlisting">FT_Face cairo_ft_scaled_font_lock_face (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);</pre>
242
+ <p>
243
+ <a class="link" href="cairo-ft-font.html#cairo-ft-scaled-font-lock-face" title="cairo_ft_scaled_font_lock_face ()"><code class="function">cairo_ft_scaled_font_lock_face()</code></a> gets the <span class="type">FT_Face</span> object from a FreeType
244
+ backend font and scales it appropriately for the font. You must
245
+ release the face with <a class="link" href="cairo-ft-font.html#cairo-ft-scaled-font-unlock-face" title="cairo_ft_scaled_font_unlock_face ()"><code class="function">cairo_ft_scaled_font_unlock_face()</code></a>
246
+ when you are done using it. Since the <span class="type">FT_Face</span> object can be
247
+ shared between multiple <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> objects, you must not
248
+ lock any other font objects until you unlock this one. A count is
249
+ kept of the number of times <a class="link" href="cairo-ft-font.html#cairo-ft-scaled-font-lock-face" title="cairo_ft_scaled_font_lock_face ()"><code class="function">cairo_ft_scaled_font_lock_face()</code></a> is
250
+ called. <a class="link" href="cairo-ft-font.html#cairo-ft-scaled-font-unlock-face" title="cairo_ft_scaled_font_unlock_face ()"><code class="function">cairo_ft_scaled_font_unlock_face()</code></a> must be called the same number
251
+ of times.
252
+ </p>
253
+ <p>
254
+ You must be careful when using this function in a library or in a
255
+ threaded application, because freetype's design makes it unsafe to
256
+ call freetype functions simultaneously from multiple threads, (even
257
+ if using distinct FT_Face objects). Because of this, application
258
+ code that acquires an FT_Face object with this call must add it's
259
+ own locking to protect any use of that object, (and which also must
260
+ protect any other calls into cairo as almost any cairo function
261
+ might result in a call into the freetype library).</p>
262
+ <p>
263
+ </p>
264
+ <div class="variablelist"><table border="0">
265
+ <col align="left" valign="top">
266
+ <tbody>
267
+ <tr>
268
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
269
+ <td> A <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> from the FreeType font backend. Such an
270
+ object can be created by calling <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a> on a
271
+ FreeType backend font face (see <a class="link" href="cairo-ft-font.html#cairo-ft-font-face-create-for-pattern" title="cairo_ft_font_face_create_for_pattern ()"><code class="function">cairo_ft_font_face_create_for_pattern()</code></a>,
272
+ <a class="link" href="cairo-ft-font.html#cairo-ft-font-face-create-for-ft-face" title="cairo_ft_font_face_create_for_ft_face ()"><code class="function">cairo_ft_font_face_create_for_ft_face()</code></a>).
273
+ </td>
274
+ </tr>
275
+ <tr>
276
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
277
+ <td> The <span class="type">FT_Face</span> object for <em class="parameter"><code>font</code></em>, scaled appropriately,
278
+ or <code class="literal">NULL</code> if <em class="parameter"><code>scaled_font</code></em> is in an error state (see
279
+ <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-status" title="cairo_scaled_font_status ()"><code class="function">cairo_scaled_font_status()</code></a>) or there is insufficient memory.
280
+ </td>
281
+ </tr>
282
+ </tbody>
283
+ </table></div>
284
+ </div>
285
+ <hr>
286
+ <div class="refsect2" title="cairo_ft_scaled_font_unlock_face ()">
287
+ <a name="cairo-ft-scaled-font-unlock-face"></a><h3>cairo_ft_scaled_font_unlock_face ()</h3>
288
+ <pre class="programlisting">void cairo_ft_scaled_font_unlock_face (<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t">cairo_scaled_font_t</a> *scaled_font);</pre>
289
+ <p>
290
+ Releases a face obtained with <a class="link" href="cairo-ft-font.html#cairo-ft-scaled-font-lock-face" title="cairo_ft_scaled_font_lock_face ()"><code class="function">cairo_ft_scaled_font_lock_face()</code></a>.</p>
291
+ <p>
292
+ </p>
293
+ <div class="variablelist"><table border="0">
294
+ <col align="left" valign="top">
295
+ <tbody><tr>
296
+ <td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
297
+ <td> A <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-t" title="cairo_scaled_font_t"><span class="type">cairo_scaled_font_t</span></a> from the FreeType font backend. Such an
298
+ object can be created by calling <a class="link" href="cairo-scaled-font.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a> on a
299
+ FreeType backend font face (see <a class="link" href="cairo-ft-font.html#cairo-ft-font-face-create-for-pattern" title="cairo_ft_font_face_create_for_pattern ()"><code class="function">cairo_ft_font_face_create_for_pattern()</code></a>,
300
+ <a class="link" href="cairo-ft-font.html#cairo-ft-font-face-create-for-ft-face" title="cairo_ft_font_face_create_for_ft_face ()"><code class="function">cairo_ft_font_face_create_for_ft_face()</code></a>).
301
+ </td>
302
+ </tr></tbody>
303
+ </table></div>
304
+ </div>
305
+ </div>
306
+ <div class="refsect1" title="See Also">
307
+ <a name="cairo-ft-font.see-also"></a><h2>See Also</h2>
308
+ <p>
309
+ </p>
310
+ <div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><a class="link" href="cairo-font-face.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a></li></ul></div>
311
+ <p>
312
+ </p>
313
+ </div>
314
+ </div>
315
+ <div class="footer">
316
+ <hr>
317
+ Generated by GTK-Doc V1.11</div>
318
+ </body>
319
+ </html>
@@ -0,0 +1,473 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>Image Surfaces</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
+ <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="cairo-surfaces.html" title="Surfaces">
9
+ <link rel="prev" href="cairo-surface.html" title="cairo_surface_t">
10
+ <link rel="next" href="cairo-pdf-surface.html" title="PDF Surfaces">
11
+ <meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ <link rel="chapter" href="cairo-drawing.html" title="Drawing">
14
+ <link rel="chapter" href="cairo-fonts.html" title="Fonts">
15
+ <link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
16
+ <link rel="chapter" href="cairo-support.html" title="Utilities">
17
+ <link rel="index" href="index-all.html" title="Index">
18
+ <link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
19
+ <link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
20
+ <link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
21
+ <link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
22
+ <link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
23
+ </head>
24
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
25
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
26
+ <tr valign="middle">
27
+ <td><a accesskey="p" href="cairo-surface.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
28
+ <td><a accesskey="u" href="cairo-surfaces.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
29
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
30
+ <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
31
+ <td><a accesskey="n" href="cairo-pdf-surface.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
32
+ </tr>
33
+ <tr><td colspan="5" class="shortcuts">
34
+ <a href="#cairo-image-surface.synopsis" class="shortcut">Top</a>
35
+  | 
36
+ <a href="#cairo-image-surface.description" class="shortcut">Description</a>
37
+ </td></tr>
38
+ </table>
39
+ <div class="refentry" title="Image Surfaces">
40
+ <a name="cairo-image-surface"></a><div class="titlepage"></div>
41
+ <div class="refnamediv"><table width="100%"><tr>
42
+ <td valign="top">
43
+ <h2><span class="refentrytitle"><a name="cairo-image-surface.top_of_page"></a>Image Surfaces</span></h2>
44
+ <p>Image Surfaces — Rendering to memory buffers</p>
45
+ </td>
46
+ <td valign="top" align="right"></td>
47
+ </tr></table></div>
48
+ <div class="refsynopsisdiv" title="Synopsis">
49
+ <a name="cairo-image-surface.synopsis"></a><h2>Synopsis</h2>
50
+ <pre class="synopsis">
51
+ #define <a class="link" href="cairo-image-surface.html#CAIRO-HAS-IMAGE-SURFACE--CAPS" title="CAIRO_HAS_IMAGE_SURFACE">CAIRO_HAS_IMAGE_SURFACE</a>
52
+ enum <a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a>;
53
+ int <a class="link" href="cairo-image-surface.html#cairo-format-stride-for-width" title="cairo_format_stride_for_width ()">cairo_format_stride_for_width</a> (<a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> format,
54
+ int width);
55
+ <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * <a class="link" href="cairo-image-surface.html#cairo-image-surface-create" title="cairo_image_surface_create ()">cairo_image_surface_create</a> (<a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> format,
56
+ int width,
57
+ int height);
58
+ <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * <a class="link" href="cairo-image-surface.html#cairo-image-surface-create-for-data" title="cairo_image_surface_create_for_data ()">cairo_image_surface_create_for_data</a> (unsigned char *data,
59
+ <a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> format,
60
+ int width,
61
+ int height,
62
+ int stride);
63
+ unsigned char * <a class="link" href="cairo-image-surface.html#cairo-image-surface-get-data" title="cairo_image_surface_get_data ()">cairo_image_surface_get_data</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
64
+ <a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> <a class="link" href="cairo-image-surface.html#cairo-image-surface-get-format" title="cairo_image_surface_get_format ()">cairo_image_surface_get_format</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
65
+ int <a class="link" href="cairo-image-surface.html#cairo-image-surface-get-width" title="cairo_image_surface_get_width ()">cairo_image_surface_get_width</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
66
+ int <a class="link" href="cairo-image-surface.html#cairo-image-surface-get-height" title="cairo_image_surface_get_height ()">cairo_image_surface_get_height</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
67
+ int <a class="link" href="cairo-image-surface.html#cairo-image-surface-get-stride" title="cairo_image_surface_get_stride ()">cairo_image_surface_get_stride</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
68
+ </pre>
69
+ </div>
70
+ <div class="refsect1" title="Description">
71
+ <a name="cairo-image-surface.description"></a><h2>Description</h2>
72
+ <p>
73
+ Image surfaces provide the ability to render to memory buffers
74
+ either allocated by cairo or by the calling code. The supported
75
+ image formats are those defined in <a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t"><span class="type">cairo_format_t</span></a>.
76
+ </p>
77
+ </div>
78
+ <div class="refsect1" title="Details">
79
+ <a name="cairo-image-surface.details"></a><h2>Details</h2>
80
+ <div class="refsect2" title="CAIRO_HAS_IMAGE_SURFACE">
81
+ <a name="CAIRO-HAS-IMAGE-SURFACE--CAPS"></a><h3>CAIRO_HAS_IMAGE_SURFACE</h3>
82
+ <pre class="programlisting">#define CAIRO_HAS_IMAGE_SURFACE 1
83
+ </pre>
84
+ <p>
85
+ Defined if the image surface backend is available.
86
+ The image surface backend is always built in.
87
+ This macro was added for completeness in cairo 1.8.
88
+ </p>
89
+ <p class="since">Since 1.8</p>
90
+ </div>
91
+ <hr>
92
+ <div class="refsect2" title="enum cairo_format_t">
93
+ <a name="cairo-format-t"></a><h3>enum cairo_format_t</h3>
94
+ <pre class="programlisting">typedef enum _cairo_format {
95
+ CAIRO_FORMAT_ARGB32,
96
+ CAIRO_FORMAT_RGB24,
97
+ CAIRO_FORMAT_A8,
98
+ CAIRO_FORMAT_A1
99
+ /* The value of 4 is reserved by a deprecated enum value.
100
+ * The next format added must have an explicit value of 5.
101
+ CAIRO_FORMAT_RGB16_565 = 4,
102
+ */
103
+ } cairo_format_t;
104
+ </pre>
105
+ <p>
106
+ <a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t"><span class="type">cairo_format_t</span></a> is used to identify the memory format of
107
+ image data.
108
+ </p>
109
+ <p>
110
+ New entries may be added in future versions.</p>
111
+ <p>
112
+ </p>
113
+ <div class="variablelist"><table border="0">
114
+ <col align="left" valign="top">
115
+ <tbody>
116
+ <tr>
117
+ <td><p><a name="CAIRO-FORMAT-ARGB32--CAPS"></a><span class="term"><code class="literal">CAIRO_FORMAT_ARGB32</code></span></p></td>
118
+ <td> each pixel is a 32-bit quantity, with
119
+ alpha in the upper 8 bits, then red, then green, then blue.
120
+ The 32-bit quantities are stored native-endian. Pre-multiplied
121
+ alpha is used. (That is, 50% transparent red is 0x80800000,
122
+ not 0x80ff0000.)
123
+ </td>
124
+ </tr>
125
+ <tr>
126
+ <td><p><a name="CAIRO-FORMAT-RGB24--CAPS"></a><span class="term"><code class="literal">CAIRO_FORMAT_RGB24</code></span></p></td>
127
+ <td> each pixel is a 32-bit quantity, with
128
+ the upper 8 bits unused. Red, Green, and Blue are stored
129
+ in the remaining 24 bits in that order.
130
+ </td>
131
+ </tr>
132
+ <tr>
133
+ <td><p><a name="CAIRO-FORMAT-A8--CAPS"></a><span class="term"><code class="literal">CAIRO_FORMAT_A8</code></span></p></td>
134
+ <td> each pixel is a 8-bit quantity holding
135
+ an alpha value.
136
+ </td>
137
+ </tr>
138
+ <tr>
139
+ <td><p><a name="CAIRO-FORMAT-A1--CAPS"></a><span class="term"><code class="literal">CAIRO_FORMAT_A1</code></span></p></td>
140
+ <td> each pixel is a 1-bit quantity holding
141
+ an alpha value. Pixels are packed together into 32-bit
142
+ quantities. The ordering of the bits matches the
143
+ endianess of the platform. On a big-endian machine, the
144
+ first pixel is in the uppermost bit, on a little-endian
145
+ machine the first pixel is in the least-significant bit.
146
+ </td>
147
+ </tr>
148
+ </tbody>
149
+ </table></div>
150
+ </div>
151
+ <hr>
152
+ <div class="refsect2" title="cairo_format_stride_for_width ()">
153
+ <a name="cairo-format-stride-for-width"></a><h3>cairo_format_stride_for_width ()</h3>
154
+ <pre class="programlisting">int cairo_format_stride_for_width (<a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> format,
155
+ int width);</pre>
156
+ <p>
157
+ This function provides a stride value that will respect all
158
+ alignment requirements of the accelerated image-rendering code
159
+ within cairo. Typical usage will be of the form:
160
+ </p>
161
+ <p>
162
+ </p>
163
+ <div class="informalexample"><pre class="programlisting">
164
+ int stride;
165
+ unsigned char *data;
166
+ <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface;
167
+
168
+ stride = cairo_format_stride_for_width (format, width);
169
+ data = malloc (stride * height);
170
+ surface = cairo_image_surface_create_for_data (data, format,
171
+ width, height,
172
+ stride);
173
+ </pre></div>
174
+ <p>
175
+ </p>
176
+ <div class="variablelist"><table border="0">
177
+ <col align="left" valign="top">
178
+ <tbody>
179
+ <tr>
180
+ <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
181
+ <td> A <a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t"><span class="type">cairo_format_t</span></a> value
182
+ </td>
183
+ </tr>
184
+ <tr>
185
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
186
+ <td> The desired width of an image surface to be created.
187
+ </td>
188
+ </tr>
189
+ <tr>
190
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
191
+ <td> the appropriate stride to use given the desired
192
+ format and width, or -1 if either the format is invalid or the width
193
+ too large.
194
+
195
+ </td>
196
+ </tr>
197
+ </tbody>
198
+ </table></div>
199
+ <p class="since">Since 1.6</p>
200
+ </div>
201
+ <hr>
202
+ <div class="refsect2" title="cairo_image_surface_create ()">
203
+ <a name="cairo-image-surface-create"></a><h3>cairo_image_surface_create ()</h3>
204
+ <pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * cairo_image_surface_create (<a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> format,
205
+ int width,
206
+ int height);</pre>
207
+ <p>
208
+ Creates an image surface of the specified format and
209
+ dimensions. Initially the surface contents are all
210
+ 0. (Specifically, within each pixel, each color or alpha channel
211
+ belonging to format will be 0. The contents of bits within a pixel,
212
+ but not belonging to the given format are undefined).</p>
213
+ <p>
214
+ </p>
215
+ <div class="variablelist"><table border="0">
216
+ <col align="left" valign="top">
217
+ <tbody>
218
+ <tr>
219
+ <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
220
+ <td> format of pixels in the surface to create
221
+ </td>
222
+ </tr>
223
+ <tr>
224
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
225
+ <td> width of the surface, in pixels
226
+ </td>
227
+ </tr>
228
+ <tr>
229
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
230
+ <td> height of the surface, in pixels
231
+ </td>
232
+ </tr>
233
+ <tr>
234
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
235
+ <td> a pointer to the newly created surface. The caller
236
+ owns the surface and should call <a class="link" href="cairo-surface.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> when done
237
+ with it.
238
+
239
+ This function always returns a valid pointer, but it will return a
240
+ pointer to a "nil" surface if an error such as out of memory
241
+ occurs. You can use <a class="link" href="cairo-surface.html#cairo-surface-status" title="cairo_surface_status ()"><code class="function">cairo_surface_status()</code></a> to check for this.
242
+ </td>
243
+ </tr>
244
+ </tbody>
245
+ </table></div>
246
+ </div>
247
+ <hr>
248
+ <div class="refsect2" title="cairo_image_surface_create_for_data ()">
249
+ <a name="cairo-image-surface-create-for-data"></a><h3>cairo_image_surface_create_for_data ()</h3>
250
+ <pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * cairo_image_surface_create_for_data (unsigned char *data,
251
+ <a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> format,
252
+ int width,
253
+ int height,
254
+ int stride);</pre>
255
+ <p>
256
+ Creates an image surface for the provided pixel data. The output
257
+ buffer must be kept around until the <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> is destroyed
258
+ or <a class="link" href="cairo-surface.html#cairo-surface-finish" title="cairo_surface_finish ()"><code class="function">cairo_surface_finish()</code></a> is called on the surface. The initial
259
+ contents of <em class="parameter"><code>data</code></em> will be used as the initial image contents; you
260
+ must explicitly clear the buffer, using, for example,
261
+ <a class="link" href="cairo-paths.html#cairo-rectangle" title="cairo_rectangle ()"><code class="function">cairo_rectangle()</code></a> and <a class="link" href="cairo-context.html#cairo-fill" title="cairo_fill ()"><code class="function">cairo_fill()</code></a> if you want it cleared.
262
+ </p>
263
+ <p>
264
+ Note that the stride may be larger than
265
+ width*bytes_per_pixel to provide proper alignment for each pixel
266
+ and row. This alignment is required to allow high-performance rendering
267
+ within cairo. The correct way to obtain a legal stride value is to
268
+ call <a class="link" href="cairo-image-surface.html#cairo-format-stride-for-width" title="cairo_format_stride_for_width ()"><code class="function">cairo_format_stride_for_width()</code></a> with the desired format and
269
+ maximum image width value, and the use the resulting stride value
270
+ to allocate the data and to create the image surface. See
271
+ <a class="link" href="cairo-image-surface.html#cairo-format-stride-for-width" title="cairo_format_stride_for_width ()"><code class="function">cairo_format_stride_for_width()</code></a> for example code.</p>
272
+ <p>
273
+ </p>
274
+ <div class="variablelist"><table border="0">
275
+ <col align="left" valign="top">
276
+ <tbody>
277
+ <tr>
278
+ <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
279
+ <td> a pointer to a buffer supplied by the application in which
280
+ to write contents. This pointer must be suitably aligned for any
281
+ kind of variable, (for example, a pointer returned by malloc).
282
+ </td>
283
+ </tr>
284
+ <tr>
285
+ <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
286
+ <td> the format of pixels in the buffer
287
+ </td>
288
+ </tr>
289
+ <tr>
290
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
291
+ <td> the width of the image to be stored in the buffer
292
+ </td>
293
+ </tr>
294
+ <tr>
295
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
296
+ <td> the height of the image to be stored in the buffer
297
+ </td>
298
+ </tr>
299
+ <tr>
300
+ <td><p><span class="term"><em class="parameter"><code>stride</code></em> :</span></p></td>
301
+ <td> the number of bytes between the start of rows in the
302
+ buffer as allocated. This value should always be computed by
303
+ <a class="link" href="cairo-image-surface.html#cairo-format-stride-for-width" title="cairo_format_stride_for_width ()"><code class="function">cairo_format_stride_for_width()</code></a> before allocating the data
304
+ buffer.
305
+ </td>
306
+ </tr>
307
+ <tr>
308
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
309
+ <td> a pointer to the newly created surface. The caller
310
+ owns the surface and should call <a class="link" href="cairo-surface.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> when done
311
+ with it.
312
+
313
+ This function always returns a valid pointer, but it will return a
314
+ pointer to a "nil" surface in the case of an error such as out of
315
+ memory or an invalid stride value. In case of invalid stride value
316
+ the error status of the returned surface will be
317
+ <a class="link" href="cairo-error-status.html#CAIRO-STATUS-INVALID-STRIDE--CAPS"><code class="literal">CAIRO_STATUS_INVALID_STRIDE</code></a>. You can use
318
+ <a class="link" href="cairo-surface.html#cairo-surface-status" title="cairo_surface_status ()"><code class="function">cairo_surface_status()</code></a> to check for this.
319
+
320
+ See <a class="link" href="cairo-surface.html#cairo-surface-set-user-data" title="cairo_surface_set_user_data ()"><code class="function">cairo_surface_set_user_data()</code></a> for a means of attaching a
321
+ destroy-notification fallback to the surface if necessary.
322
+ </td>
323
+ </tr>
324
+ </tbody>
325
+ </table></div>
326
+ </div>
327
+ <hr>
328
+ <div class="refsect2" title="cairo_image_surface_get_data ()">
329
+ <a name="cairo-image-surface-get-data"></a><h3>cairo_image_surface_get_data ()</h3>
330
+ <pre class="programlisting">unsigned char * cairo_image_surface_get_data (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
331
+ <p>
332
+ Get a pointer to the data of the image surface, for direct
333
+ inspection or modification.</p>
334
+ <p>
335
+ </p>
336
+ <div class="variablelist"><table border="0">
337
+ <col align="left" valign="top">
338
+ <tbody>
339
+ <tr>
340
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
341
+ <td> a <span class="type">cairo_image_surface_t</span>
342
+ </td>
343
+ </tr>
344
+ <tr>
345
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
346
+ <td> a pointer to the image data of this surface or <code class="literal">NULL</code>
347
+ if <em class="parameter"><code>surface</code></em> is not an image surface, or if <a class="link" href="cairo-surface.html#cairo-surface-finish" title="cairo_surface_finish ()"><code class="function">cairo_surface_finish()</code></a>
348
+ has been called.
349
+
350
+ </td>
351
+ </tr>
352
+ </tbody>
353
+ </table></div>
354
+ <p class="since">Since 1.2</p>
355
+ </div>
356
+ <hr>
357
+ <div class="refsect2" title="cairo_image_surface_get_format ()">
358
+ <a name="cairo-image-surface-get-format"></a><h3>cairo_image_surface_get_format ()</h3>
359
+ <pre class="programlisting"><a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> cairo_image_surface_get_format (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
360
+ <p>
361
+ Get the format of the surface.</p>
362
+ <p>
363
+ </p>
364
+ <div class="variablelist"><table border="0">
365
+ <col align="left" valign="top">
366
+ <tbody>
367
+ <tr>
368
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
369
+ <td> a <span class="type">cairo_image_surface_t</span>
370
+ </td>
371
+ </tr>
372
+ <tr>
373
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
374
+ <td> the format of the surface
375
+
376
+ </td>
377
+ </tr>
378
+ </tbody>
379
+ </table></div>
380
+ <p class="since">Since 1.2</p>
381
+ </div>
382
+ <hr>
383
+ <div class="refsect2" title="cairo_image_surface_get_width ()">
384
+ <a name="cairo-image-surface-get-width"></a><h3>cairo_image_surface_get_width ()</h3>
385
+ <pre class="programlisting">int cairo_image_surface_get_width (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
386
+ <p>
387
+ Get the width of the image surface in pixels.</p>
388
+ <p>
389
+ </p>
390
+ <div class="variablelist"><table border="0">
391
+ <col align="left" valign="top">
392
+ <tbody>
393
+ <tr>
394
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
395
+ <td> a <span class="type">cairo_image_surface_t</span>
396
+ </td>
397
+ </tr>
398
+ <tr>
399
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
400
+ <td> the width of the surface in pixels.
401
+ </td>
402
+ </tr>
403
+ </tbody>
404
+ </table></div>
405
+ </div>
406
+ <hr>
407
+ <div class="refsect2" title="cairo_image_surface_get_height ()">
408
+ <a name="cairo-image-surface-get-height"></a><h3>cairo_image_surface_get_height ()</h3>
409
+ <pre class="programlisting">int cairo_image_surface_get_height (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
410
+ <p>
411
+ Get the height of the image surface in pixels.</p>
412
+ <p>
413
+ </p>
414
+ <div class="variablelist"><table border="0">
415
+ <col align="left" valign="top">
416
+ <tbody>
417
+ <tr>
418
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
419
+ <td> a <span class="type">cairo_image_surface_t</span>
420
+ </td>
421
+ </tr>
422
+ <tr>
423
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
424
+ <td> the height of the surface in pixels.
425
+ </td>
426
+ </tr>
427
+ </tbody>
428
+ </table></div>
429
+ </div>
430
+ <hr>
431
+ <div class="refsect2" title="cairo_image_surface_get_stride ()">
432
+ <a name="cairo-image-surface-get-stride"></a><h3>cairo_image_surface_get_stride ()</h3>
433
+ <pre class="programlisting">int cairo_image_surface_get_stride (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
434
+ <p>
435
+ Get the stride of the image surface in bytes</p>
436
+ <p>
437
+ </p>
438
+ <div class="variablelist"><table border="0">
439
+ <col align="left" valign="top">
440
+ <tbody>
441
+ <tr>
442
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
443
+ <td> a <span class="type">cairo_image_surface_t</span>
444
+ </td>
445
+ </tr>
446
+ <tr>
447
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
448
+ <td> the stride of the image surface in bytes (or 0 if
449
+ <em class="parameter"><code>surface</code></em> is not an image surface). The stride is the distance in
450
+ bytes from the beginning of one row of the image data to the
451
+ beginning of the next row.
452
+
453
+ </td>
454
+ </tr>
455
+ </tbody>
456
+ </table></div>
457
+ <p class="since">Since 1.2</p>
458
+ </div>
459
+ </div>
460
+ <div class="refsect1" title="See Also">
461
+ <a name="cairo-image-surface.see-also"></a><h2>See Also</h2>
462
+ <p>
463
+ </p>
464
+ <div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a></li></ul></div>
465
+ <p>
466
+ </p>
467
+ </div>
468
+ </div>
469
+ <div class="footer">
470
+ <hr>
471
+ Generated by GTK-Doc V1.11</div>
472
+ </body>
473
+ </html>