cairo 1.6.1-x86-mswin32

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 (418) hide show
  1. data/AUTHORS +4 -0
  2. data/COPYING +59 -0
  3. data/ChangeLog +1320 -0
  4. data/GPL +340 -0
  5. data/NEWS +98 -0
  6. data/README +70 -0
  7. data/Rakefile +215 -0
  8. data/cairo/bin/libcairo-2.dll +0 -0
  9. data/cairo/bin/libpng13.dll +0 -0
  10. data/cairo/bin/zlib1.dll +0 -0
  11. data/cairo/include/cairo/cairo-deprecated.h +142 -0
  12. data/cairo/include/cairo/cairo-features.h +35 -0
  13. data/cairo/include/cairo/cairo-pdf.h +68 -0
  14. data/cairo/include/cairo/cairo-ps.h +114 -0
  15. data/cairo/include/cairo/cairo-svg.h +82 -0
  16. data/cairo/include/cairo/cairo-win32.h +104 -0
  17. data/cairo/include/cairo/cairo.h +1945 -0
  18. data/cairo/include/libpng13/png.h +3419 -0
  19. data/cairo/include/libpng13/pngconf.h +1437 -0
  20. data/cairo/lib/cairo.def +251 -0
  21. data/cairo/lib/cairo.lib +0 -0
  22. data/cairo/lib/libcairo.dll.a +0 -0
  23. data/cairo/lib/libpng.def +372 -0
  24. data/cairo/lib/libpng13.dll.a +0 -0
  25. data/cairo/lib/pkgconfig/cairo-pdf.pc +12 -0
  26. data/cairo/lib/pkgconfig/cairo-png.pc +12 -0
  27. data/cairo/lib/pkgconfig/cairo-ps.pc +12 -0
  28. data/cairo/lib/pkgconfig/cairo-svg.pc +12 -0
  29. data/cairo/lib/pkgconfig/cairo-win32-font.pc +12 -0
  30. data/cairo/lib/pkgconfig/cairo-win32.pc +12 -0
  31. data/cairo/lib/pkgconfig/cairo.pc +13 -0
  32. data/cairo/lib/pkgconfig/libpng.pc +14 -0
  33. data/cairo/lib/pkgconfig/libpng13.pc +14 -0
  34. data/cairo/make/cairo-1.6.4-1.sh +55 -0
  35. data/cairo/manifest/cairo-1.6.4-1.mft +6 -0
  36. data/cairo/manifest/cairo-dev-1.6.4-1.mft +72 -0
  37. data/cairo/manifest/libpng-dev-1.2.8.mft +7 -0
  38. data/cairo/share/doc/cairo-1.6.4-1/COPYING +32 -0
  39. data/cairo/share/doc/cairo-1.6.4-1/COPYING-LGPL-2.1 +510 -0
  40. data/cairo/share/doc/cairo-1.6.4-1/COPYING-MPL-1.1 +470 -0
  41. data/cairo/share/gtk-doc/html/cairo/Drawing.html +53 -0
  42. data/cairo/share/gtk-doc/html/cairo/Fonts.html +56 -0
  43. data/cairo/share/gtk-doc/html/cairo/Support.html +50 -0
  44. data/cairo/share/gtk-doc/html/cairo/Surfaces.html +65 -0
  45. data/cairo/share/gtk-doc/html/cairo/bindings-errors.html +128 -0
  46. data/cairo/share/gtk-doc/html/cairo/bindings-fonts.html +59 -0
  47. data/cairo/share/gtk-doc/html/cairo/bindings-memory.html +129 -0
  48. data/cairo/share/gtk-doc/html/cairo/bindings-overloading.html +127 -0
  49. data/cairo/share/gtk-doc/html/cairo/bindings-path.html +123 -0
  50. data/cairo/share/gtk-doc/html/cairo/bindings-patterns.html +63 -0
  51. data/cairo/share/gtk-doc/html/cairo/bindings-return-values.html +126 -0
  52. data/cairo/share/gtk-doc/html/cairo/bindings-streams.html +98 -0
  53. data/cairo/share/gtk-doc/html/cairo/bindings-surfaces.html +99 -0
  54. data/cairo/share/gtk-doc/html/cairo/cairo-Error-Handling.html +328 -0
  55. data/cairo/share/gtk-doc/html/cairo/cairo-Font-Options.html +720 -0
  56. data/cairo/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +297 -0
  57. data/cairo/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +484 -0
  58. data/cairo/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +246 -0
  59. data/cairo/share/gtk-doc/html/cairo/cairo-PNG-Support.html +345 -0
  60. data/cairo/share/gtk-doc/html/cairo/cairo-Paths.html +1336 -0
  61. data/cairo/share/gtk-doc/html/cairo/cairo-Patterns.html +1560 -0
  62. data/cairo/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +656 -0
  63. data/cairo/share/gtk-doc/html/cairo/cairo-Quartz-Fonts.html +161 -0
  64. data/cairo/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +232 -0
  65. data/cairo/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +337 -0
  66. data/cairo/share/gtk-doc/html/cairo/cairo-Scaled-Fonts.html +823 -0
  67. data/cairo/share/gtk-doc/html/cairo/cairo-Text.html +836 -0
  68. data/cairo/share/gtk-doc/html/cairo/cairo-Transformations.html +462 -0
  69. data/cairo/share/gtk-doc/html/cairo/cairo-Types.html +143 -0
  70. data/cairo/share/gtk-doc/html/cairo/cairo-Version-Information.html +325 -0
  71. data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +381 -0
  72. data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +331 -0
  73. data/cairo/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +525 -0
  74. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +427 -0
  75. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +626 -0
  76. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +995 -0
  77. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-t.html +2795 -0
  78. data/cairo/share/gtk-doc/html/cairo/cairo.devhelp +432 -0
  79. data/cairo/share/gtk-doc/html/cairo/cairo.devhelp2 +432 -0
  80. data/cairo/share/gtk-doc/html/cairo/home.png +0 -0
  81. data/cairo/share/gtk-doc/html/cairo/index-1.2.html +137 -0
  82. data/cairo/share/gtk-doc/html/cairo/index-1.4.html +105 -0
  83. data/cairo/share/gtk-doc/html/cairo/index-1.6.html +65 -0
  84. data/cairo/share/gtk-doc/html/cairo/index.html +134 -0
  85. data/cairo/share/gtk-doc/html/cairo/index.sgml +466 -0
  86. data/cairo/share/gtk-doc/html/cairo/ix01.html +693 -0
  87. data/cairo/share/gtk-doc/html/cairo/language-bindings.html +79 -0
  88. data/cairo/share/gtk-doc/html/cairo/left.png +0 -0
  89. data/cairo/share/gtk-doc/html/cairo/right.png +0 -0
  90. data/cairo/share/gtk-doc/html/cairo/style.css +148 -0
  91. data/cairo/share/gtk-doc/html/cairo/up.png +0 -0
  92. data/doc/doc.css +91 -0
  93. data/doc/en/cairo-antialias.html +41 -0
  94. data/doc/en/cairo-antialias.rd +16 -0
  95. data/doc/en/cairo-clip-not-representable-error.html +50 -0
  96. data/doc/en/cairo-clip-not-representable-error.rd +17 -0
  97. data/doc/en/cairo-color-base.html +72 -0
  98. data/doc/en/cairo-color-base.rd +38 -0
  99. data/doc/en/cairo-color-cmyk.html +160 -0
  100. data/doc/en/cairo-color-cmyk.rd +107 -0
  101. data/doc/en/cairo-color-hsv.html +140 -0
  102. data/doc/en/cairo-color-hsv.rd +91 -0
  103. data/doc/en/cairo-color-rgb.html +145 -0
  104. data/doc/en/cairo-color-rgb.rd +95 -0
  105. data/doc/en/cairo-color-x11.html +176 -0
  106. data/doc/en/cairo-color-x11.rd +151 -0
  107. data/doc/en/cairo-color.html +241 -0
  108. data/doc/en/cairo-color.rd +213 -0
  109. data/doc/en/cairo-content.html +40 -0
  110. data/doc/en/cairo-content.rd +15 -0
  111. data/doc/en/cairo-context-blur.html +42 -0
  112. data/doc/en/cairo-context-blur.rd +15 -0
  113. data/doc/en/cairo-context-circle.html +42 -0
  114. data/doc/en/cairo-context-circle.rd +15 -0
  115. data/doc/en/cairo-context-color.html +42 -0
  116. data/doc/en/cairo-context-color.rd +15 -0
  117. data/doc/en/cairo-context-path.html +47 -0
  118. data/doc/en/cairo-context-path.rd +19 -0
  119. data/doc/en/cairo-context-rectangle.html +42 -0
  120. data/doc/en/cairo-context-rectangle.rd +15 -0
  121. data/doc/en/cairo-context-triangle.html +42 -0
  122. data/doc/en/cairo-context-triangle.rd +15 -0
  123. data/doc/en/cairo-context.html +636 -0
  124. data/doc/en/cairo-context.rd +491 -0
  125. data/doc/en/cairo-error.html +47 -0
  126. data/doc/en/cairo-error.rd +16 -0
  127. data/doc/en/cairo-extend.html +41 -0
  128. data/doc/en/cairo-extend.rd +16 -0
  129. data/doc/en/cairo-file-not-found.html +50 -0
  130. data/doc/en/cairo-file-not-found.rd +17 -0
  131. data/doc/en/cairo-fill-rule.html +39 -0
  132. data/doc/en/cairo-fill-rule.rd +14 -0
  133. data/doc/en/cairo-filter.html +43 -0
  134. data/doc/en/cairo-filter.rd +18 -0
  135. data/doc/en/cairo-font-extents.html +74 -0
  136. data/doc/en/cairo-font-extents.rd +40 -0
  137. data/doc/en/cairo-font-face.html +41 -0
  138. data/doc/en/cairo-font-face.rd +14 -0
  139. data/doc/en/cairo-font-options.html +142 -0
  140. data/doc/en/cairo-font-options.rd +94 -0
  141. data/doc/en/cairo-font-slant.html +40 -0
  142. data/doc/en/cairo-font-slant.rd +15 -0
  143. data/doc/en/cairo-font-weight.html +39 -0
  144. data/doc/en/cairo-font-weight.rd +14 -0
  145. data/doc/en/cairo-format.html +49 -0
  146. data/doc/en/cairo-format.rd +22 -0
  147. data/doc/en/cairo-glyph.html +102 -0
  148. data/doc/en/cairo-glyph.rd +62 -0
  149. data/doc/en/cairo-gradient-pattern.html +77 -0
  150. data/doc/en/cairo-gradient-pattern.rd +41 -0
  151. data/doc/en/cairo-hint-metrics.html +40 -0
  152. data/doc/en/cairo-hint-metrics.rd +15 -0
  153. data/doc/en/cairo-hint-style.html +42 -0
  154. data/doc/en/cairo-hint-style.rd +17 -0
  155. data/doc/en/cairo-image-surface.html +85 -0
  156. data/doc/en/cairo-image-surface.rd +47 -0
  157. data/doc/en/cairo-invalid-content-error.html +50 -0
  158. data/doc/en/cairo-invalid-content-error.rd +17 -0
  159. data/doc/en/cairo-invalid-dash-error.html +50 -0
  160. data/doc/en/cairo-invalid-dash-error.rd +17 -0
  161. data/doc/en/cairo-invalid-dsc-comment-error.html +50 -0
  162. data/doc/en/cairo-invalid-dsc-comment-error.rd +17 -0
  163. data/doc/en/cairo-invalid-format-error.html +50 -0
  164. data/doc/en/cairo-invalid-format-error.rd +17 -0
  165. data/doc/en/cairo-invalid-index-error.html +50 -0
  166. data/doc/en/cairo-invalid-index-error.rd +17 -0
  167. data/doc/en/cairo-invalid-matrix-error.html +50 -0
  168. data/doc/en/cairo-invalid-matrix-error.rd +17 -0
  169. data/doc/en/cairo-invalid-path-data-error.html +50 -0
  170. data/doc/en/cairo-invalid-path-data-error.rd +17 -0
  171. data/doc/en/cairo-invalid-pop-group-error.html +50 -0
  172. data/doc/en/cairo-invalid-pop-group-error.rd +17 -0
  173. data/doc/en/cairo-invalid-restore-error.html +50 -0
  174. data/doc/en/cairo-invalid-restore-error.rd +17 -0
  175. data/doc/en/cairo-invalid-status-error.html +50 -0
  176. data/doc/en/cairo-invalid-status-error.rd +17 -0
  177. data/doc/en/cairo-invalid-stride-error.html +50 -0
  178. data/doc/en/cairo-invalid-stride-error.rd +17 -0
  179. data/doc/en/cairo-invalid-string-error.html +50 -0
  180. data/doc/en/cairo-invalid-string-error.rd +17 -0
  181. data/doc/en/cairo-invalid-visual-error.html +50 -0
  182. data/doc/en/cairo-invalid-visual-error.rd +17 -0
  183. data/doc/en/cairo-line-cap.html +40 -0
  184. data/doc/en/cairo-line-cap.rd +15 -0
  185. data/doc/en/cairo-line-join.html +40 -0
  186. data/doc/en/cairo-line-join.rd +15 -0
  187. data/doc/en/cairo-linear-pattern.html +63 -0
  188. data/doc/en/cairo-linear-pattern.rd +28 -0
  189. data/doc/en/cairo-matrix.html +257 -0
  190. data/doc/en/cairo-matrix.rd +186 -0
  191. data/doc/en/cairo-no-current-point-error.html +50 -0
  192. data/doc/en/cairo-no-current-point-error.rd +17 -0
  193. data/doc/en/cairo-null-pointer-error.html +50 -0
  194. data/doc/en/cairo-null-pointer-error.rd +17 -0
  195. data/doc/en/cairo-operator.html +51 -0
  196. data/doc/en/cairo-operator.rd +26 -0
  197. data/doc/en/cairo-paper-parse-error.html +50 -0
  198. data/doc/en/cairo-paper-parse-error.rd +17 -0
  199. data/doc/en/cairo-paper-unknown-paper-name.html +69 -0
  200. data/doc/en/cairo-paper-unknown-paper-name.rd +30 -0
  201. data/doc/en/cairo-paper-unknown-unit.html +69 -0
  202. data/doc/en/cairo-paper-unknown-unit.rd +30 -0
  203. data/doc/en/cairo-paper-unrecognized-paper-description.html +69 -0
  204. data/doc/en/cairo-paper-unrecognized-paper-description.rd +30 -0
  205. data/doc/en/cairo-paper.html +187 -0
  206. data/doc/en/cairo-paper.rd +141 -0
  207. data/doc/en/cairo-path-close-path.html +52 -0
  208. data/doc/en/cairo-path-close-path.rd +21 -0
  209. data/doc/en/cairo-path-curve-to.html +52 -0
  210. data/doc/en/cairo-path-curve-to.rd +21 -0
  211. data/doc/en/cairo-path-data-type.html +41 -0
  212. data/doc/en/cairo-path-data-type.rd +16 -0
  213. data/doc/en/cairo-path-data.html +101 -0
  214. data/doc/en/cairo-path-data.rd +62 -0
  215. data/doc/en/cairo-path-line-to.html +52 -0
  216. data/doc/en/cairo-path-line-to.rd +21 -0
  217. data/doc/en/cairo-path-move-to.html +52 -0
  218. data/doc/en/cairo-path-move-to.rd +21 -0
  219. data/doc/en/cairo-path.html +158 -0
  220. data/doc/en/cairo-path.rd +109 -0
  221. data/doc/en/cairo-pattern-type-mismatch-error.html +50 -0
  222. data/doc/en/cairo-pattern-type-mismatch-error.rd +17 -0
  223. data/doc/en/cairo-pattern.html +102 -0
  224. data/doc/en/cairo-pattern.rd +62 -0
  225. data/doc/en/cairo-pdf-surface.html +60 -0
  226. data/doc/en/cairo-pdf-surface.rd +27 -0
  227. data/doc/en/cairo-point.html +77 -0
  228. data/doc/en/cairo-point.rd +42 -0
  229. data/doc/en/cairo-ps-level.html +52 -0
  230. data/doc/en/cairo-ps-level.rd +24 -0
  231. data/doc/en/cairo-ps-surface.html +95 -0
  232. data/doc/en/cairo-ps-surface.rd +55 -0
  233. data/doc/en/cairo-quartz-image-surface.html +60 -0
  234. data/doc/en/cairo-quartz-image-surface.rd +27 -0
  235. data/doc/en/cairo-quartz-surface.html +60 -0
  236. data/doc/en/cairo-quartz-surface.rd +27 -0
  237. data/doc/en/cairo-radial-pattern.html +63 -0
  238. data/doc/en/cairo-radial-pattern.rd +28 -0
  239. data/doc/en/cairo-read-error.html +50 -0
  240. data/doc/en/cairo-read-error.rd +17 -0
  241. data/doc/en/cairo-rectangle.html +92 -0
  242. data/doc/en/cairo-rectangle.rd +54 -0
  243. data/doc/en/cairo-scaled-font.html +87 -0
  244. data/doc/en/cairo-scaled-font.rd +50 -0
  245. data/doc/en/cairo-solid-pattern.html +65 -0
  246. data/doc/en/cairo-solid-pattern.rd +31 -0
  247. data/doc/en/cairo-subpixel-order.html +42 -0
  248. data/doc/en/cairo-subpixel-order.rd +17 -0
  249. data/doc/en/cairo-surface-finished-error.html +50 -0
  250. data/doc/en/cairo-surface-finished-error.rd +17 -0
  251. data/doc/en/cairo-surface-pattern.html +60 -0
  252. data/doc/en/cairo-surface-pattern.rd +27 -0
  253. data/doc/en/cairo-surface-type-mismatch-error.html +50 -0
  254. data/doc/en/cairo-surface-type-mismatch-error.rd +17 -0
  255. data/doc/en/cairo-surface.html +114 -0
  256. data/doc/en/cairo-surface.rd +72 -0
  257. data/doc/en/cairo-svg-surface.html +80 -0
  258. data/doc/en/cairo-svg-surface.rd +44 -0
  259. data/doc/en/cairo-svg-version.html +52 -0
  260. data/doc/en/cairo-svg-version.rd +24 -0
  261. data/doc/en/cairo-temp-file-error.html +50 -0
  262. data/doc/en/cairo-temp-file-error.rd +17 -0
  263. data/doc/en/cairo-text-extents.html +79 -0
  264. data/doc/en/cairo-text-extents.rd +44 -0
  265. data/doc/en/cairo-win32-printing-surface.html +60 -0
  266. data/doc/en/cairo-win32-printing-surface.rd +27 -0
  267. data/doc/en/cairo-win32-surface.html +65 -0
  268. data/doc/en/cairo-win32-surface.rd +31 -0
  269. data/doc/en/cairo-write-error.html +50 -0
  270. data/doc/en/cairo-write-error.rd +17 -0
  271. data/doc/en/cairo.html +123 -0
  272. data/doc/en/cairo.rd +95 -0
  273. data/doc/en/index.html +1080 -0
  274. data/doc/en/index.rd +1051 -0
  275. data/doc/index.html +18 -0
  276. data/doc/ja/cairo-antialias.html +57 -0
  277. data/doc/ja/cairo-clip-not-representable-error.html +56 -0
  278. data/doc/ja/cairo-color-base.html +75 -0
  279. data/doc/ja/cairo-color-cmyk.html +152 -0
  280. data/doc/ja/cairo-color-hsv.html +135 -0
  281. data/doc/ja/cairo-color-rgb.html +145 -0
  282. data/doc/ja/cairo-color-x11.html +183 -0
  283. data/doc/ja/cairo-color.html +317 -0
  284. data/doc/ja/cairo-content.html +51 -0
  285. data/doc/ja/cairo-context-blur.html +53 -0
  286. data/doc/ja/cairo-context-circle.html +54 -0
  287. data/doc/ja/cairo-context-color.html +52 -0
  288. data/doc/ja/cairo-context-path.html +77 -0
  289. data/doc/ja/cairo-context-rectangle.html +60 -0
  290. data/doc/ja/cairo-context-triangle.html +47 -0
  291. data/doc/ja/cairo-context.html +1449 -0
  292. data/doc/ja/cairo-error.html +56 -0
  293. data/doc/ja/cairo-extend.html +56 -0
  294. data/doc/ja/cairo-file-not-found.html +51 -0
  295. data/doc/ja/cairo-fill-rule.html +58 -0
  296. data/doc/ja/cairo-filter.html +43 -0
  297. data/doc/ja/cairo-font-extents.html +110 -0
  298. data/doc/ja/cairo-font-face.html +55 -0
  299. data/doc/ja/cairo-font-options.html +186 -0
  300. data/doc/ja/cairo-font-slant.html +50 -0
  301. data/doc/ja/cairo-font-weight.html +47 -0
  302. data/doc/ja/cairo-format.html +81 -0
  303. data/doc/ja/cairo-glyph.html +115 -0
  304. data/doc/ja/cairo-gradient-pattern.html +119 -0
  305. data/doc/ja/cairo-hint-metrics.html +57 -0
  306. data/doc/ja/cairo-hint-style.html +64 -0
  307. data/doc/ja/cairo-image-surface.html +131 -0
  308. data/doc/ja/cairo-invalid-content-error.html +54 -0
  309. data/doc/ja/cairo-invalid-dash-error.html +54 -0
  310. data/doc/ja/cairo-invalid-dsc-comment-error.html +54 -0
  311. data/doc/ja/cairo-invalid-format-error.html +54 -0
  312. data/doc/ja/cairo-invalid-index-error.html +54 -0
  313. data/doc/ja/cairo-invalid-matrix-error.html +54 -0
  314. data/doc/ja/cairo-invalid-path-data-error.html +54 -0
  315. data/doc/ja/cairo-invalid-pop-group-error.html +54 -0
  316. data/doc/ja/cairo-invalid-restore-error.html +55 -0
  317. data/doc/ja/cairo-invalid-status-error.html +55 -0
  318. data/doc/ja/cairo-invalid-stride-error.html +55 -0
  319. data/doc/ja/cairo-invalid-string-error.html +54 -0
  320. data/doc/ja/cairo-invalid-visual-error.html +57 -0
  321. data/doc/ja/cairo-line-cap.html +50 -0
  322. data/doc/ja/cairo-line-join.html +53 -0
  323. data/doc/ja/cairo-linear-pattern.html +87 -0
  324. data/doc/ja/cairo-matrix.html +343 -0
  325. data/doc/ja/cairo-no-current-point-error.html +54 -0
  326. data/doc/ja/cairo-null-pointer-error.html +54 -0
  327. data/doc/ja/cairo-operator.html +51 -0
  328. data/doc/ja/cairo-paper-parse-error.html +55 -0
  329. data/doc/ja/cairo-paper-unknown-paper-name.html +76 -0
  330. data/doc/ja/cairo-paper-unknown-unit.html +75 -0
  331. data/doc/ja/cairo-paper-unrecognized-paper-description.html +76 -0
  332. data/doc/ja/cairo-paper.html +357 -0
  333. data/doc/ja/cairo-path-close-path.html +57 -0
  334. data/doc/ja/cairo-path-curve-to.html +70 -0
  335. data/doc/ja/cairo-path-data-type.html +53 -0
  336. data/doc/ja/cairo-path-data.html +127 -0
  337. data/doc/ja/cairo-path-line-to.html +62 -0
  338. data/doc/ja/cairo-path-move-to.html +62 -0
  339. data/doc/ja/cairo-path.html +144 -0
  340. data/doc/ja/cairo-pattern-type-mismatch-error.html +56 -0
  341. data/doc/ja/cairo-pattern.html +128 -0
  342. data/doc/ja/cairo-pdf-surface.html +86 -0
  343. data/doc/ja/cairo-point.html +90 -0
  344. data/doc/ja/cairo-ps-level.html +62 -0
  345. data/doc/ja/cairo-ps-surface.html +214 -0
  346. data/doc/ja/cairo-quartz-image-surface.html +75 -0
  347. data/doc/ja/cairo-quartz-surface.html +93 -0
  348. data/doc/ja/cairo-radial-pattern.html +93 -0
  349. data/doc/ja/cairo-read-error.html +55 -0
  350. data/doc/ja/cairo-rectangle.html +109 -0
  351. data/doc/ja/cairo-scaled-font.html +144 -0
  352. data/doc/ja/cairo-solid-pattern.html +87 -0
  353. data/doc/ja/cairo-subpixel-order.html +57 -0
  354. data/doc/ja/cairo-surface-finished-error.html +54 -0
  355. data/doc/ja/cairo-surface-pattern.html +68 -0
  356. data/doc/ja/cairo-surface-type-mismatch-error.html +56 -0
  357. data/doc/ja/cairo-surface.html +191 -0
  358. data/doc/ja/cairo-svg-surface.html +114 -0
  359. data/doc/ja/cairo-svg-version.html +66 -0
  360. data/doc/ja/cairo-temp-file-error.html +50 -0
  361. data/doc/ja/cairo-text-extents.html +101 -0
  362. data/doc/ja/cairo-win32-printing-surface.html +80 -0
  363. data/doc/ja/cairo-win32-surface.html +100 -0
  364. data/doc/ja/cairo-write-error.html +55 -0
  365. data/doc/ja/cairo.html +148 -0
  366. data/doc/ja/index.html +1080 -0
  367. data/extconf.rb +153 -0
  368. data/misc/update-colors.rb +143 -0
  369. data/pkg-config.rb +278 -0
  370. data/samples/agg/README +4 -0
  371. data/samples/agg/aa_demo.rb +47 -0
  372. data/samples/agg/aa_test.rb +304 -0
  373. data/samples/blur.rb +47 -0
  374. data/samples/pac.rb +99 -0
  375. data/samples/pac2.rb +171 -0
  376. data/samples/png.rb +45 -0
  377. data/samples/scalable.rb +56 -0
  378. data/samples/text-on-path.rb +60 -0
  379. data/samples/text2.rb +131 -0
  380. data/src/cairo.def +96 -0
  381. data/src/cairo.so +0 -0
  382. data/src/lib/cairo.rb +141 -0
  383. data/src/lib/cairo/color.rb +255 -0
  384. data/src/lib/cairo/colors.rb +656 -0
  385. data/src/lib/cairo/constants.rb +21 -0
  386. data/src/lib/cairo/context.rb +29 -0
  387. data/src/lib/cairo/context/blur.rb +45 -0
  388. data/src/lib/cairo/context/circle.rb +9 -0
  389. data/src/lib/cairo/context/color.rb +11 -0
  390. data/src/lib/cairo/context/path.rb +116 -0
  391. data/src/lib/cairo/context/rectangle.rb +33 -0
  392. data/src/lib/cairo/context/triangle.rb +12 -0
  393. data/src/lib/cairo/paper.rb +183 -0
  394. data/src/lib/cairo/papers.rb +41 -0
  395. data/src/lib/cairo/path.rb +15 -0
  396. data/src/lib/cairo/point.rb +7 -0
  397. data/src/libruby-cairo.a +0 -0
  398. data/src/rb_cairo.c +82 -0
  399. data/src/rb_cairo.h +264 -0
  400. data/src/rb_cairo_constants.c +456 -0
  401. data/src/rb_cairo_context.c +1548 -0
  402. data/src/rb_cairo_exception.c +214 -0
  403. data/src/rb_cairo_font_extents.c +125 -0
  404. data/src/rb_cairo_font_face.c +56 -0
  405. data/src/rb_cairo_font_options.c +197 -0
  406. data/src/rb_cairo_glyph.c +159 -0
  407. data/src/rb_cairo_matrix.c +350 -0
  408. data/src/rb_cairo_path.c +459 -0
  409. data/src/rb_cairo_pattern.c +540 -0
  410. data/src/rb_cairo_private.c +78 -0
  411. data/src/rb_cairo_private.h +72 -0
  412. data/src/rb_cairo_scaled_font.c +177 -0
  413. data/src/rb_cairo_surface.c +1252 -0
  414. data/src/rb_cairo_text_extents.c +138 -0
  415. data/test/run-test.rb +15 -0
  416. data/test/test_paper.rb +81 -0
  417. data/test/test_pkg_config.rb +122 -0
  418. metadata +490 -0
@@ -0,0 +1,246 @@
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=US-ASCII">
5
+ <title>PDF Surfaces</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
+ <link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="Surfaces.html" title="Surfaces">
9
+ <link rel="prev" href="cairo-Image-Surfaces.html" title="Image Surfaces">
10
+ <link rel="next" href="cairo-PNG-Support.html" title="PNG Support">
11
+ <meta name="generator" content="GTK-Doc V1.9 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ <link rel="chapter" href="Drawing.html" title="Drawing">
14
+ <link rel="chapter" href="Fonts.html" title="Fonts">
15
+ <link rel="chapter" href="Surfaces.html" title="Surfaces">
16
+ <link rel="chapter" href="Support.html" title="Utilities">
17
+ <link rel="index" href="ix01.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="appendix" href="language-bindings.html" title="Appendix&#160;A.&#160;Creating a language binding for cairo">
22
+ </head>
23
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
24
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
25
+ <tr valign="middle">
26
+ <td><a accesskey="p" href="cairo-Image-Surfaces.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
27
+ <td><a accesskey="u" href="Surfaces.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></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-PNG-Support.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
+ </tr>
32
+ <tr><td colspan="5" class="shortcuts"><nobr><a href="#id2602456" class="shortcut">Top</a>
33
+ &#160;|&#160;
34
+ <a href="#id2657272" class="shortcut">Description</a></nobr></td></tr>
35
+ </table>
36
+ <div class="refentry" lang="en">
37
+ <a name="cairo-PDF-Surfaces"></a><div class="titlepage"></div>
38
+ <div class="refnamediv"><table width="100%"><tr>
39
+ <td valign="top">
40
+ <h2>
41
+ <a name="id2602456"></a><span class="refentrytitle">PDF Surfaces</span>
42
+ </h2>
43
+ <p>PDF Surfaces &#8212; Rendering PDF documents</p>
44
+ </td>
45
+ <td valign="top" align="right"></td>
46
+ </tr></table></div>
47
+ <div class="refsynopsisdiv">
48
+ <h2>Synopsis</h2>
49
+ <pre class="synopsis">
50
+
51
+
52
+
53
+ #define <a class="link" href="cairo-PDF-Surfaces.html#CAIRO-HAS-PDF-SURFACE:CAPS">CAIRO_HAS_PDF_SURFACE</a>
54
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-PDF-Surfaces.html#cairo-pdf-surface-create">cairo_pdf_surface_create</a> (const char *filename,
55
+ double width_in_points,
56
+ double height_in_points);
57
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-PDF-Surfaces.html#cairo-pdf-surface-create-for-stream">cairo_pdf_surface_create_for_stream</a> (<a class="link" href="cairo-PNG-Support.html#cairo-write-func-t">cairo_write_func_t</a> write_func,
58
+ void *closure,
59
+ double width_in_points,
60
+ double height_in_points);
61
+ void <a class="link" href="cairo-PDF-Surfaces.html#cairo-pdf-surface-set-size">cairo_pdf_surface_set_size</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
62
+ double width_in_points,
63
+ double height_in_points);
64
+ </pre>
65
+ </div>
66
+ <div class="refsect1" lang="en">
67
+ <a name="id2657272"></a><h2>Description</h2>
68
+ <p>
69
+ The PDF surface is used to render cairo graphics to Adobe
70
+ PDF files and is a multi-page vector surface backend.
71
+ </p>
72
+ </div>
73
+ <div class="refsect1" lang="en">
74
+ <a name="id2657289"></a><h2>Details</h2>
75
+ <div class="refsect2" lang="en">
76
+ <a name="id2657300"></a><h3>
77
+ <a name="CAIRO-HAS-PDF-SURFACE:CAPS"></a>CAIRO_HAS_PDF_SURFACE</h3>
78
+ <a class="indexterm" name="id2659387"></a><pre class="programlisting">#define CAIRO_HAS_PDF_SURFACE 1
79
+ </pre>
80
+ <p>
81
+ Defined if the PDF surface backend is available.
82
+ This macro can be used to conditionally compile backend-specific code.
83
+ </p>
84
+ </div>
85
+ <hr>
86
+ <div class="refsect2" lang="en">
87
+ <a name="id2659404"></a><h3>
88
+ <a name="cairo-pdf-surface-create"></a>cairo_pdf_surface_create ()</h3>
89
+ <a class="indexterm" name="id2659418"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_pdf_surface_create (const char *filename,
90
+ double width_in_points,
91
+ double height_in_points);</pre>
92
+ <p>
93
+ Creates a PDF surface of the specified size in points to be written
94
+ to <em class="parameter"><code>filename</code></em>.</p>
95
+ <p>
96
+
97
+ </p>
98
+ <div class="variablelist"><table border="0">
99
+ <col align="left" valign="top">
100
+ <tbody>
101
+ <tr>
102
+ <td><p><span class="term"><em class="parameter"><code>filename</code></em>&#160;:</span></p></td>
103
+ <td> a filename for the PDF output (must be writable)
104
+ </td>
105
+ </tr>
106
+ <tr>
107
+ <td><p><span class="term"><em class="parameter"><code>width_in_points</code></em>&#160;:</span></p></td>
108
+ <td> width of the surface, in points (1 point == 1/72.0 inch)
109
+ </td>
110
+ </tr>
111
+ <tr>
112
+ <td><p><span class="term"><em class="parameter"><code>height_in_points</code></em>&#160;:</span></p></td>
113
+ <td> height of the surface, in points (1 point == 1/72.0 inch)
114
+ </td>
115
+ </tr>
116
+ <tr>
117
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
118
+ <td> a pointer to the newly created surface. The caller
119
+ owns the surface and should call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy"><code class="function">cairo_surface_destroy()</code></a> when done
120
+ with it.
121
+
122
+ This function always returns a valid pointer, but it will return a
123
+ pointer to a "nil" surface if an error such as out of memory
124
+ occurs. You can use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-status"><code class="function">cairo_surface_status()</code></a> to check for this.
125
+
126
+ </td>
127
+ </tr>
128
+ </tbody>
129
+ </table></div>
130
+ <p class="since">Since 1.2
131
+ </p>
132
+ </div>
133
+ <hr>
134
+ <div class="refsect2" lang="en">
135
+ <a name="id2660504"></a><h3>
136
+ <a name="cairo-pdf-surface-create-for-stream"></a>cairo_pdf_surface_create_for_stream ()</h3>
137
+ <a class="indexterm" name="id2660518"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_pdf_surface_create_for_stream (<a class="link" href="cairo-PNG-Support.html#cairo-write-func-t">cairo_write_func_t</a> write_func,
138
+ void *closure,
139
+ double width_in_points,
140
+ double height_in_points);</pre>
141
+ <p>
142
+ Creates a PDF surface of the specified size in points to be written
143
+ incrementally to the stream represented by <em class="parameter"><code>write_func</code></em> and <em class="parameter"><code>closure</code></em>.</p>
144
+ <p>
145
+
146
+ </p>
147
+ <div class="variablelist"><table border="0">
148
+ <col align="left" valign="top">
149
+ <tbody>
150
+ <tr>
151
+ <td><p><span class="term"><em class="parameter"><code>write_func</code></em>&#160;:</span></p></td>
152
+ <td> a <a class="link" href="cairo-PNG-Support.html#cairo-write-func-t"><span class="type">cairo_write_func_t</span></a> to accept the output data
153
+ </td>
154
+ </tr>
155
+ <tr>
156
+ <td><p><span class="term"><em class="parameter"><code>closure</code></em>&#160;:</span></p></td>
157
+ <td> the closure argument for <em class="parameter"><code>write_func</code></em>
158
+ </td>
159
+ </tr>
160
+ <tr>
161
+ <td><p><span class="term"><em class="parameter"><code>width_in_points</code></em>&#160;:</span></p></td>
162
+ <td> width of the surface, in points (1 point == 1/72.0 inch)
163
+ </td>
164
+ </tr>
165
+ <tr>
166
+ <td><p><span class="term"><em class="parameter"><code>height_in_points</code></em>&#160;:</span></p></td>
167
+ <td> height of the surface, in points (1 point == 1/72.0 inch)
168
+ </td>
169
+ </tr>
170
+ <tr>
171
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
172
+ <td> a pointer to the newly created surface. The caller
173
+ owns the surface and should call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy"><code class="function">cairo_surface_destroy()</code></a> when done
174
+ with it.
175
+
176
+ This function always returns a valid pointer, but it will return a
177
+ pointer to a "nil" surface if an error such as out of memory
178
+ occurs. You can use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-status"><code class="function">cairo_surface_status()</code></a> to check for this.
179
+
180
+ </td>
181
+ </tr>
182
+ </tbody>
183
+ </table></div>
184
+ <p class="since">Since 1.2
185
+ </p>
186
+ </div>
187
+ <hr>
188
+ <div class="refsect2" lang="en">
189
+ <a name="id2658540"></a><h3>
190
+ <a name="cairo-pdf-surface-set-size"></a>cairo_pdf_surface_set_size ()</h3>
191
+ <a class="indexterm" name="id2658553"></a><pre class="programlisting">void cairo_pdf_surface_set_size (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
192
+ double width_in_points,
193
+ double height_in_points);</pre>
194
+ <p>
195
+ Changes the size of a PDF surface for the current (and
196
+ subsequent) pages.
197
+ </p>
198
+ <p>
199
+ This function should only be called before any drawing operations
200
+ have been performed on the current page. The simplest way to do
201
+ this is to call this function immediately after creating the
202
+ surface or immediately after completing a page with either
203
+ <a class="link" href="cairo-cairo-t.html#cairo-show-page"><code class="function">cairo_show_page()</code></a> or <a class="link" href="cairo-cairo-t.html#cairo-copy-page"><code class="function">cairo_copy_page()</code></a>.</p>
204
+ <p>
205
+
206
+ </p>
207
+ <div class="variablelist"><table border="0">
208
+ <col align="left" valign="top">
209
+ <tbody>
210
+ <tr>
211
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em>&#160;:</span></p></td>
212
+ <td> a PDF <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a>
213
+ </td>
214
+ </tr>
215
+ <tr>
216
+ <td><p><span class="term"><em class="parameter"><code>width_in_points</code></em>&#160;:</span></p></td>
217
+ <td> new surface width, in points (1 point == 1/72.0 inch)
218
+ </td>
219
+ </tr>
220
+ <tr>
221
+ <td><p><span class="term"><em class="parameter"><code>height_in_points</code></em>&#160;:</span></p></td>
222
+ <td> new surface height, in points (1 point == 1/72.0 inch)
223
+ </td>
224
+ </tr>
225
+ </tbody>
226
+ </table></div>
227
+ <p class="since">Since 1.2
228
+ </p>
229
+ </div>
230
+ </div>
231
+ <div class="refsect1" lang="en">
232
+ <a name="id2658691"></a><h2>See Also</h2>
233
+ <p>
234
+ </p>
235
+ <div class="itemizedlist"><ul type="disc"><li><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a></li></ul></div>
236
+ <p>
237
+ </p>
238
+ </div>
239
+ <div class="refsect1" lang="en">
240
+ <a name="id2661068"></a><div class="refsect2" lang="en"><a name="id2661070"></a></div>
241
+ <hr>
242
+ <div class="refsect2" lang="en"><a name="id2661071"></a></div>
243
+ </div>
244
+ </div>
245
+ </body>
246
+ </html>
@@ -0,0 +1,345 @@
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=US-ASCII">
5
+ <title>PNG Support</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
+ <link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="Surfaces.html" title="Surfaces">
9
+ <link rel="prev" href="cairo-PDF-Surfaces.html" title="PDF Surfaces">
10
+ <link rel="next" href="cairo-PostScript-Surfaces.html" title="PostScript Surfaces">
11
+ <meta name="generator" content="GTK-Doc V1.9 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ <link rel="chapter" href="Drawing.html" title="Drawing">
14
+ <link rel="chapter" href="Fonts.html" title="Fonts">
15
+ <link rel="chapter" href="Surfaces.html" title="Surfaces">
16
+ <link rel="chapter" href="Support.html" title="Utilities">
17
+ <link rel="index" href="ix01.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="appendix" href="language-bindings.html" title="Appendix&#160;A.&#160;Creating a language binding for cairo">
22
+ </head>
23
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
24
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
25
+ <tr valign="middle">
26
+ <td><a accesskey="p" href="cairo-PDF-Surfaces.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
27
+ <td><a accesskey="u" href="Surfaces.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></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-PostScript-Surfaces.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
+ </tr>
32
+ <tr><td colspan="5" class="shortcuts"><nobr><a href="#id2621948" class="shortcut">Top</a>
33
+ &#160;|&#160;
34
+ <a href="#id2660174" class="shortcut">Description</a></nobr></td></tr>
35
+ </table>
36
+ <div class="refentry" lang="en">
37
+ <a name="cairo-PNG-Support"></a><div class="titlepage"></div>
38
+ <div class="refnamediv"><table width="100%"><tr>
39
+ <td valign="top">
40
+ <h2>
41
+ <a name="id2621948"></a><span class="refentrytitle">PNG Support</span>
42
+ </h2>
43
+ <p>PNG Support &#8212; Reading and writing PNG images</p>
44
+ </td>
45
+ <td valign="top" align="right"></td>
46
+ </tr></table></div>
47
+ <div class="refsynopsisdiv">
48
+ <h2>Synopsis</h2>
49
+ <pre class="synopsis">
50
+
51
+
52
+
53
+ #define <a class="link" href="cairo-PNG-Support.html#CAIRO-HAS-PNG-FUNCTIONS:CAPS">CAIRO_HAS_PNG_FUNCTIONS</a>
54
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-PNG-Support.html#cairo-image-surface-create-from-png">cairo_image_surface_create_from_png</a> (const char *filename);
55
+ <a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> (<a class="link" href="cairo-PNG-Support.html#cairo-read-func-t">*cairo_read_func_t</a>) (void *closure,
56
+ unsigned char *data,
57
+ unsigned int length);
58
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* <a class="link" href="cairo-PNG-Support.html#cairo-image-surface-create-from-png-stream">cairo_image_surface_create_from_png_stream</a>
59
+ (<a class="link" href="cairo-PNG-Support.html#cairo-read-func-t">cairo_read_func_t</a> read_func,
60
+ void *closure);
61
+ <a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> <a class="link" href="cairo-PNG-Support.html#cairo-surface-write-to-png">cairo_surface_write_to_png</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
62
+ const char *filename);
63
+ <a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> (<a class="link" href="cairo-PNG-Support.html#cairo-write-func-t">*cairo_write_func_t</a>) (void *closure,
64
+ unsigned char *data,
65
+ unsigned int length);
66
+ <a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> <a class="link" href="cairo-PNG-Support.html#cairo-surface-write-to-png-stream">cairo_surface_write_to_png_stream</a> (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
67
+ <a class="link" href="cairo-PNG-Support.html#cairo-write-func-t">cairo_write_func_t</a> write_func,
68
+ void *closure);
69
+ </pre>
70
+ </div>
71
+ <div class="refsect1" lang="en">
72
+ <a name="id2660174"></a><h2>Description</h2>
73
+ <p>
74
+ The PNG functions allow reading PNG images into image surfaces, and writing
75
+ any surface to a PNG file.
76
+ </p>
77
+ </div>
78
+ <div class="refsect1" lang="en">
79
+ <a name="id2660192"></a><h2>Details</h2>
80
+ <div class="refsect2" lang="en">
81
+ <a name="id2660202"></a><h3>
82
+ <a name="CAIRO-HAS-PNG-FUNCTIONS:CAPS"></a>CAIRO_HAS_PNG_FUNCTIONS</h3>
83
+ <a class="indexterm" name="id2660214"></a><pre class="programlisting">#define CAIRO_HAS_PNG_FUNCTIONS 1
84
+ </pre>
85
+ <p>
86
+ Defined if the PNG functions are available.
87
+ This macro can be used to conditionally compile code using the cairo
88
+ PNG functions.
89
+ </p>
90
+ </div>
91
+ <hr>
92
+ <div class="refsect2" lang="en">
93
+ <a name="id2660231"></a><h3>
94
+ <a name="cairo-image-surface-create-from-png"></a>cairo_image_surface_create_from_png ()</h3>
95
+ <a class="indexterm" name="id2660242"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_image_surface_create_from_png (const char *filename);</pre>
96
+ <p>
97
+ Creates a new image surface and initializes the contents to the
98
+ given PNG file.</p>
99
+ <p>
100
+
101
+ </p>
102
+ <div class="variablelist"><table border="0">
103
+ <col align="left" valign="top">
104
+ <tbody>
105
+ <tr>
106
+ <td><p><span class="term"><em class="parameter"><code>filename</code></em>&#160;:</span></p></td>
107
+ <td> name of PNG file to load
108
+ </td>
109
+ </tr>
110
+ <tr>
111
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
112
+ <td> a new <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> initialized with the contents
113
+ of the PNG file, or a "nil" surface if any error occurred. A nil
114
+ surface can be checked for with cairo_surface_status(surface) which
115
+ may return one of the following values:
116
+
117
+ CAIRO_STATUS_NO_MEMORY
118
+ CAIRO_STATUS_FILE_NOT_FOUND
119
+ CAIRO_STATUS_READ_ERROR
120
+ </td>
121
+ </tr>
122
+ </tbody>
123
+ </table></div>
124
+ </div>
125
+ <hr>
126
+ <div class="refsect2" lang="en">
127
+ <a name="id2660315"></a><h3>
128
+ <a name="cairo-read-func-t"></a>cairo_read_func_t ()</h3>
129
+ <a class="indexterm" name="id2660328"></a><pre class="programlisting"><a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> (*cairo_read_func_t) (void *closure,
130
+ unsigned char *data,
131
+ unsigned int length);</pre>
132
+ <p>
133
+ <a class="link" href="cairo-PNG-Support.html#cairo-read-func-t"><span class="type">cairo_read_func_t</span></a> is the type of function which is called when a
134
+ backend needs to read data from an input stream. It is passed the
135
+ closure which was specified by the user at the time the read
136
+ function was registered, the buffer to read the data into and the
137
+ length of the data in bytes. The read function should return
138
+ CAIRO_STATUS_SUCCESS if all the data was successfully read,
139
+ CAIRO_STATUS_READ_ERROR otherwise.</p>
140
+ <p>
141
+
142
+ </p>
143
+ <div class="variablelist"><table border="0">
144
+ <col align="left" valign="top">
145
+ <tbody>
146
+ <tr>
147
+ <td><p><span class="term"><em class="parameter"><code>closure</code></em>&#160;:</span></p></td>
148
+ <td> the input closure
149
+ </td>
150
+ </tr>
151
+ <tr>
152
+ <td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
153
+ <td> the buffer into which to read the data
154
+ </td>
155
+ </tr>
156
+ <tr>
157
+ <td><p><span class="term"><em class="parameter"><code>length</code></em>&#160;:</span></p></td>
158
+ <td> the amount of data to read
159
+ </td>
160
+ </tr>
161
+ <tr>
162
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
163
+ <td> the status code of the read operation
164
+ </td>
165
+ </tr>
166
+ </tbody>
167
+ </table></div>
168
+ </div>
169
+ <hr>
170
+ <div class="refsect2" lang="en">
171
+ <a name="id2660444"></a><h3>
172
+ <a name="cairo-image-surface-create-from-png-stream"></a>cairo_image_surface_create_from_png_stream ()</h3>
173
+ <a class="indexterm" name="id2660458"></a><pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a>* cairo_image_surface_create_from_png_stream
174
+ (<a class="link" href="cairo-PNG-Support.html#cairo-read-func-t">cairo_read_func_t</a> read_func,
175
+ void *closure);</pre>
176
+ <p>
177
+ Creates a new image surface from PNG data read incrementally
178
+ via the <em class="parameter"><code>read_func</code></em> function.</p>
179
+ <p>
180
+
181
+ </p>
182
+ <div class="variablelist"><table border="0">
183
+ <col align="left" valign="top">
184
+ <tbody>
185
+ <tr>
186
+ <td><p><span class="term"><em class="parameter"><code>read_func</code></em>&#160;:</span></p></td>
187
+ <td> function called to read the data of the file
188
+ </td>
189
+ </tr>
190
+ <tr>
191
+ <td><p><span class="term"><em class="parameter"><code>closure</code></em>&#160;:</span></p></td>
192
+ <td> data to pass to <em class="parameter"><code>read_func</code></em>.
193
+ </td>
194
+ </tr>
195
+ <tr>
196
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
197
+ <td> a new <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> initialized with the contents
198
+ of the PNG file or <code class="literal">NULL</code> if the data read is not a valid PNG image or
199
+ memory could not be allocated for the operation.
200
+ </td>
201
+ </tr>
202
+ </tbody>
203
+ </table></div>
204
+ </div>
205
+ <hr>
206
+ <div class="refsect2" lang="en">
207
+ <a name="id2661205"></a><h3>
208
+ <a name="cairo-surface-write-to-png"></a>cairo_surface_write_to_png ()</h3>
209
+ <a class="indexterm" name="id2661217"></a><pre class="programlisting"><a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> cairo_surface_write_to_png (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
210
+ const char *filename);</pre>
211
+ <p>
212
+ Writes the contents of <em class="parameter"><code>surface</code></em> to a new file <em class="parameter"><code>filename</code></em> as a PNG
213
+ image.</p>
214
+ <p>
215
+
216
+ </p>
217
+ <div class="variablelist"><table border="0">
218
+ <col align="left" valign="top">
219
+ <tbody>
220
+ <tr>
221
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em>&#160;:</span></p></td>
222
+ <td> a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> with pixel contents
223
+ </td>
224
+ </tr>
225
+ <tr>
226
+ <td><p><span class="term"><em class="parameter"><code>filename</code></em>&#160;:</span></p></td>
227
+ <td> the name of a file to write to
228
+ </td>
229
+ </tr>
230
+ <tr>
231
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
232
+ <td> <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> if the PNG file was written
233
+ successfully. Otherwise, <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a> if memory could not
234
+ be allocated for the operation or
235
+ CAIRO_STATUS_SURFACE_TYPE_MISMATCH if the surface does not have
236
+ pixel contents, or <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-WRITE-ERROR:CAPS"><code class="literal">CAIRO_STATUS_WRITE_ERROR</code></a> if an I/O error occurs
237
+ while attempting to write the file.
238
+ </td>
239
+ </tr>
240
+ </tbody>
241
+ </table></div>
242
+ </div>
243
+ <hr>
244
+ <div class="refsect2" lang="en">
245
+ <a name="id2661348"></a><h3>
246
+ <a name="cairo-write-func-t"></a>cairo_write_func_t ()</h3>
247
+ <a class="indexterm" name="id2661360"></a><pre class="programlisting"><a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> (*cairo_write_func_t) (void *closure,
248
+ unsigned char *data,
249
+ unsigned int length);</pre>
250
+ <p>
251
+ <a class="link" href="cairo-PNG-Support.html#cairo-write-func-t"><span class="type">cairo_write_func_t</span></a> is the type of function which is called when a
252
+ backend needs to write data to an output stream. It is passed the
253
+ closure which was specified by the user at the time the write
254
+ function was registered, the data to write and the length of the
255
+ data in bytes. The write function should return
256
+ CAIRO_STATUS_SUCCESS if all the data was successfully written,
257
+ CAIRO_STATUS_WRITE_ERROR otherwise.</p>
258
+ <p>
259
+
260
+ </p>
261
+ <div class="variablelist"><table border="0">
262
+ <col align="left" valign="top">
263
+ <tbody>
264
+ <tr>
265
+ <td><p><span class="term"><em class="parameter"><code>closure</code></em>&#160;:</span></p></td>
266
+ <td> the output closure
267
+ </td>
268
+ </tr>
269
+ <tr>
270
+ <td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
271
+ <td> the buffer containing the data to write
272
+ </td>
273
+ </tr>
274
+ <tr>
275
+ <td><p><span class="term"><em class="parameter"><code>length</code></em>&#160;:</span></p></td>
276
+ <td> the amount of data to write
277
+ </td>
278
+ </tr>
279
+ <tr>
280
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
281
+ <td> the status code of the write operation
282
+ </td>
283
+ </tr>
284
+ </tbody>
285
+ </table></div>
286
+ </div>
287
+ <hr>
288
+ <div class="refsect2" lang="en">
289
+ <a name="id2661477"></a><h3>
290
+ <a name="cairo-surface-write-to-png-stream"></a>cairo_surface_write_to_png_stream ()</h3>
291
+ <a class="indexterm" name="id2661489"></a><pre class="programlisting"><a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> cairo_surface_write_to_png_stream (<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t">cairo_surface_t</a> *surface,
292
+ <a class="link" href="cairo-PNG-Support.html#cairo-write-func-t">cairo_write_func_t</a> write_func,
293
+ void *closure);</pre>
294
+ <p>
295
+ Writes the image surface to the write function.</p>
296
+ <p>
297
+
298
+ </p>
299
+ <div class="variablelist"><table border="0">
300
+ <col align="left" valign="top">
301
+ <tbody>
302
+ <tr>
303
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em>&#160;:</span></p></td>
304
+ <td> a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> with pixel contents
305
+ </td>
306
+ </tr>
307
+ <tr>
308
+ <td><p><span class="term"><em class="parameter"><code>write_func</code></em>&#160;:</span></p></td>
309
+ <td> a <a class="link" href="cairo-PNG-Support.html#cairo-write-func-t"><span class="type">cairo_write_func_t</span></a>
310
+ </td>
311
+ </tr>
312
+ <tr>
313
+ <td><p><span class="term"><em class="parameter"><code>closure</code></em>&#160;:</span></p></td>
314
+ <td> closure data for the write function
315
+ </td>
316
+ </tr>
317
+ <tr>
318
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
319
+ <td> <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> if the PNG file was written
320
+ successfully. Otherwise, <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a> is returned if
321
+ memory could not be allocated for the operation,
322
+ CAIRO_STATUS_SURFACE_TYPE_MISMATCH if the surface does not have
323
+ pixel contents.
324
+ </td>
325
+ </tr>
326
+ </tbody>
327
+ </table></div>
328
+ </div>
329
+ </div>
330
+ <div class="refsect1" lang="en">
331
+ <a name="id2657468"></a><h2>See Also</h2>
332
+ <p>
333
+ </p>
334
+ <div class="itemizedlist"><ul type="disc"><li><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a></li></ul></div>
335
+ <p>
336
+ </p>
337
+ </div>
338
+ <div class="refsect1" lang="en">
339
+ <a name="id2657492"></a><div class="refsect2" lang="en"><a name="id2657493"></a></div>
340
+ <hr>
341
+ <div class="refsect2" lang="en"><a name="id2657494"></a></div>
342
+ </div>
343
+ </div>
344
+ </body>
345
+ </html>