1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>cairomm: Cairo::ImageSurface Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">cairomm
 <span id="projectnumber">1.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceCairo.html">Cairo</a></li><li class="navelem"><a class="el" href="classCairo_1_1ImageSurface.html">ImageSurface</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="classCairo_1_1ImageSurface-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Cairo::ImageSurface Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Image surfaces provide the ability to render to memory buffers either allocated by cairo or by the calling code.
<a href="classCairo_1_1ImageSurface.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for Cairo::ImageSurface:</div>
<div class="dyncontent">
<div class="center"><img src="classCairo_1_1ImageSurface__inherit__graph.png" border="0" usemap="#Cairo_1_1ImageSurface_inherit__map" alt="Inheritance graph"/></div>
<map name="Cairo_1_1ImageSurface_inherit__map" id="Cairo_1_1ImageSurface_inherit__map">
<area shape="rect" id="node2" href="classCairo_1_1Surface.html" title="A cairo surface represents an image, either as the destination of a drawing operation or as source wh..." alt="" coords="25,5,137,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a19a7d3c6f4320c4d812629b3c18925ac"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#a19a7d3c6f4320c4d812629b3c18925ac">ImageSurface</a> (cairo_surface_t*<a class="el" href="classCairo_1_1Surface.html#ad176eb7343b5902df3c19f9f56e59fb4">cobject</a>, bool has_reference=false)</td></tr>
<tr class="memdesc:a19a7d3c6f4320c4d812629b3c18925ac"><td class="mdescLeft"> </td><td class="mdescRight">Create a C++ wrapper for the C instance. <a href="#a19a7d3c6f4320c4d812629b3c18925ac">More...</a><br /></td></tr>
<tr class="separator:a19a7d3c6f4320c4d812629b3c18925ac"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3ca42b6c6d172c1923cbdcd9d0077565"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#a3ca42b6c6d172c1923cbdcd9d0077565">~ImageSurface</a> () override</td></tr>
<tr class="separator:a3ca42b6c6d172c1923cbdcd9d0077565"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af75b30cde988ad6959bb75862f5b6e2a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#af75b30cde988ad6959bb75862f5b6e2a">get_width</a> () const </td></tr>
<tr class="memdesc:af75b30cde988ad6959bb75862f5b6e2a"><td class="mdescLeft"> </td><td class="mdescRight">Gets the width of the <a class="el" href="classCairo_1_1ImageSurface.html" title="Image surfaces provide the ability to render to memory buffers either allocated by cairo or by the ca...">ImageSurface</a> in pixels. <a href="#af75b30cde988ad6959bb75862f5b6e2a">More...</a><br /></td></tr>
<tr class="separator:af75b30cde988ad6959bb75862f5b6e2a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa0e17bed71b125fd4725386ee1f14d07"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#aa0e17bed71b125fd4725386ee1f14d07">get_height</a> () const </td></tr>
<tr class="memdesc:aa0e17bed71b125fd4725386ee1f14d07"><td class="mdescLeft"> </td><td class="mdescRight">Gets the height of the <a class="el" href="classCairo_1_1ImageSurface.html" title="Image surfaces provide the ability to render to memory buffers either allocated by cairo or by the ca...">ImageSurface</a> in pixels. <a href="#aa0e17bed71b125fd4725386ee1f14d07">More...</a><br /></td></tr>
<tr class="separator:aa0e17bed71b125fd4725386ee1f14d07"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aedccf9d08b3e5852c0bbb195cf1379a8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceCairo.html#ad3f86970e1bd354b263303c9b8759166">Format</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#aedccf9d08b3e5852c0bbb195cf1379a8">get_format</a> () const </td></tr>
<tr class="memdesc:aedccf9d08b3e5852c0bbb195cf1379a8"><td class="mdescLeft"> </td><td class="mdescRight">Gets the format of the surface. <a href="#aedccf9d08b3e5852c0bbb195cf1379a8">More...</a><br /></td></tr>
<tr class="separator:aedccf9d08b3e5852c0bbb195cf1379a8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4b33c7f1c03197eb66dac3e909c5a39a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#a4b33c7f1c03197eb66dac3e909c5a39a">get_stride</a> () const </td></tr>
<tr class="memdesc:a4b33c7f1c03197eb66dac3e909c5a39a"><td class="mdescLeft"> </td><td class="mdescRight">Returns the stride of the image surface in bytes (or 0 if surface is not an image surface). <a href="#a4b33c7f1c03197eb66dac3e909c5a39a">More...</a><br /></td></tr>
<tr class="separator:a4b33c7f1c03197eb66dac3e909c5a39a"><td class="memSeparator" colspan="2"> </td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:a94ba52fe4a201579c8a5541717822bdb"><td class="memItemLeft" align="right" valign="top">unsigned char* </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#a94ba52fe4a201579c8a5541717822bdb">get_data</a> ()</td></tr>
<tr class="memdesc:a94ba52fe4a201579c8a5541717822bdb"><td class="mdescLeft"> </td><td class="mdescRight">Get a pointer to the data of the image surface, for direct inspection or modification. <a href="#a94ba52fe4a201579c8a5541717822bdb">More...</a><br /></td></tr>
<tr class="separator:a94ba52fe4a201579c8a5541717822bdb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8858eb704ebe2118baf83f2a104b9140"><td class="memItemLeft" align="right" valign="top">const unsigned char* </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#a8858eb704ebe2118baf83f2a104b9140">get_data</a> () const </td></tr>
<tr class="separator:a8858eb704ebe2118baf83f2a104b9140"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classCairo_1_1Surface"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classCairo_1_1Surface')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classCairo_1_1Surface.html">Cairo::Surface</a></td></tr>
<tr class="memitem:a47b90669a5a85d187cc0d28dc99915c8 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a47b90669a5a85d187cc0d28dc99915c8">Surface</a> (cairo_surface_t*<a class="el" href="classCairo_1_1Surface.html#ad176eb7343b5902df3c19f9f56e59fb4">cobject</a>, bool has_reference=false)</td></tr>
<tr class="memdesc:a47b90669a5a85d187cc0d28dc99915c8 inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Create a C++ wrapper for the C instance. <a href="#a47b90669a5a85d187cc0d28dc99915c8">More...</a><br /></td></tr>
<tr class="separator:a47b90669a5a85d187cc0d28dc99915c8 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7d0d7fe23fdbf6aeab62cf240a1fb434 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a7d0d7fe23fdbf6aeab62cf240a1fb434">Surface</a> (const <a class="el" href="classCairo_1_1Surface.html">Surface</a>&)=delete</td></tr>
<tr class="separator:a7d0d7fe23fdbf6aeab62cf240a1fb434 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afcbdb807ef3cb8dae9181eb4f230d87e inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1Surface.html">Surface</a>& </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#afcbdb807ef3cb8dae9181eb4f230d87e">operator=</a> (const <a class="el" href="classCairo_1_1Surface.html">Surface</a>&)=delete</td></tr>
<tr class="separator:afcbdb807ef3cb8dae9181eb4f230d87e inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a64ca52e9e8e9a64358ff85e6ef0d93c1 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a64ca52e9e8e9a64358ff85e6ef0d93c1">~Surface</a> ()</td></tr>
<tr class="separator:a64ca52e9e8e9a64358ff85e6ef0d93c1 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a998e72aa2c251f96f450a168e16c87b6 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">const unsigned char* </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a998e72aa2c251f96f450a168e16c87b6">get_mime_data</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>& mime_type, unsigned long& length)</td></tr>
<tr class="memdesc:a998e72aa2c251f96f450a168e16c87b6 inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Return mime data previously attached to surface using the specified mime type. <a href="#a998e72aa2c251f96f450a168e16c87b6">More...</a><br /></td></tr>
<tr class="separator:a998e72aa2c251f96f450a168e16c87b6 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7c572103fe56f7c6d0b83f2986338f82 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a7c572103fe56f7c6d0b83f2986338f82">set_mime_data</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>& mime_type, unsigned char* data, unsigned long length, const <a class="el" href="classCairo_1_1Surface.html#a150d8ae84fa994f8e2032caa525c166a">SlotDestroy</a>& slot_destroy)</td></tr>
<tr class="memdesc:a7c572103fe56f7c6d0b83f2986338f82 inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Attach an image in the format mime_type to surface. <a href="#a7c572103fe56f7c6d0b83f2986338f82">More...</a><br /></td></tr>
<tr class="separator:a7c572103fe56f7c6d0b83f2986338f82 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5074b0c28c547802824d6d6cd2b0b8b5 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a5074b0c28c547802824d6d6cd2b0b8b5">unset_mime_data</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>& mime_type)</td></tr>
<tr class="memdesc:a5074b0c28c547802824d6d6cd2b0b8b5 inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Remove the data from a surface. <a href="#a5074b0c28c547802824d6d6cd2b0b8b5">More...</a><br /></td></tr>
<tr class="separator:a5074b0c28c547802824d6d6cd2b0b8b5 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7e3dd712e398719315bbd89efe9af0b2 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a7e3dd712e398719315bbd89efe9af0b2">get_font_options</a> (<a class="el" href="classCairo_1_1FontOptions.html">FontOptions</a>& options) const </td></tr>
<tr class="memdesc:a7e3dd712e398719315bbd89efe9af0b2 inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the default font rendering options for the surface. <a href="#a7e3dd712e398719315bbd89efe9af0b2">More...</a><br /></td></tr>
<tr class="separator:a7e3dd712e398719315bbd89efe9af0b2 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8d8afee4ddb4935b85698f27099646a0 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a8d8afee4ddb4935b85698f27099646a0">finish</a> ()</td></tr>
<tr class="memdesc:a8d8afee4ddb4935b85698f27099646a0 inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">This function finishes the surface and drops all references to external resources. <a href="#a8d8afee4ddb4935b85698f27099646a0">More...</a><br /></td></tr>
<tr class="separator:a8d8afee4ddb4935b85698f27099646a0 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8f95678918fb40bae15f8aad2adb6ef2 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a8f95678918fb40bae15f8aad2adb6ef2">flush</a> ()</td></tr>
<tr class="memdesc:a8f95678918fb40bae15f8aad2adb6ef2 inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Do any pending drawing for the surface and also restore any temporary modifications cairo has made to the surface's state. <a href="#a8f95678918fb40bae15f8aad2adb6ef2">More...</a><br /></td></tr>
<tr class="separator:a8f95678918fb40bae15f8aad2adb6ef2 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a77b1f860cc55f4ad168e100108e0b7bb inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a77b1f860cc55f4ad168e100108e0b7bb">mark_dirty</a> ()</td></tr>
<tr class="memdesc:a77b1f860cc55f4ad168e100108e0b7bb inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Tells cairo to consider the data buffer dirty. <a href="#a77b1f860cc55f4ad168e100108e0b7bb">More...</a><br /></td></tr>
<tr class="separator:a77b1f860cc55f4ad168e100108e0b7bb inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1dbf3a036b7dc7c09fc86996ea1ee61f inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a1dbf3a036b7dc7c09fc86996ea1ee61f">mark_dirty</a> (int x, int y, int width, int height)</td></tr>
<tr class="memdesc:a1dbf3a036b7dc7c09fc86996ea1ee61f inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Marks a rectangular area of the given surface dirty. <a href="#a1dbf3a036b7dc7c09fc86996ea1ee61f">More...</a><br /></td></tr>
<tr class="separator:a1dbf3a036b7dc7c09fc86996ea1ee61f inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a957e290a548d3cba65aa9e3fd0c86180 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a957e290a548d3cba65aa9e3fd0c86180">set_device_offset</a> (double x_offset, double y_offset)</td></tr>
<tr class="memdesc:a957e290a548d3cba65aa9e3fd0c86180 inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Sets an offset that is added to the device coordinates determined by the CTM when drawing to surface. <a href="#a957e290a548d3cba65aa9e3fd0c86180">More...</a><br /></td></tr>
<tr class="separator:a957e290a548d3cba65aa9e3fd0c86180 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5861783d0f5f3b396f52791a93e668fe inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a5861783d0f5f3b396f52791a93e668fe">get_device_offset</a> (double& x_offset, double& y_offset) const </td></tr>
<tr class="memdesc:a5861783d0f5f3b396f52791a93e668fe inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Returns a previous device offset set by <a class="el" href="classCairo_1_1Surface.html#a957e290a548d3cba65aa9e3fd0c86180" title="Sets an offset that is added to the device coordinates determined by the CTM when drawing to surface...">set_device_offset()</a>. <a href="#a5861783d0f5f3b396f52791a93e668fe">More...</a><br /></td></tr>
<tr class="separator:a5861783d0f5f3b396f52791a93e668fe inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac8caca30702fe2bd69ae89929ee784e8 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#ac8caca30702fe2bd69ae89929ee784e8">set_fallback_resolution</a> (double x_pixels_per_inch, double y_pixels_per_inch)</td></tr>
<tr class="memdesc:ac8caca30702fe2bd69ae89929ee784e8 inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Set the horizontal and vertical resolution for image fallbacks. <a href="#ac8caca30702fe2bd69ae89929ee784e8">More...</a><br /></td></tr>
<tr class="separator:ac8caca30702fe2bd69ae89929ee784e8 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa3a8d5a2b5c91d11f7758d0a67f6093a inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#aa3a8d5a2b5c91d11f7758d0a67f6093a">get_fallback_resolution</a> (double& x_pixels_per_inch, double& y_pixels_per_inch) const </td></tr>
<tr class="memdesc:aa3a8d5a2b5c91d11f7758d0a67f6093a inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">This function returns the previous fallback resolution set by <a class="el" href="classCairo_1_1Surface.html#ac8caca30702fe2bd69ae89929ee784e8" title="Set the horizontal and vertical resolution for image fallbacks. ">set_fallback_resolution()</a>, or default fallback resolution if never set. <a href="#aa3a8d5a2b5c91d11f7758d0a67f6093a">More...</a><br /></td></tr>
<tr class="separator:aa3a8d5a2b5c91d11f7758d0a67f6093a inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7ee0760ea1895f5e6c8f6673f83cc072 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceCairo.html#af11d962e38a38a2d92fc1473fbe92549">SurfaceType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a7ee0760ea1895f5e6c8f6673f83cc072">get_type</a> () const </td></tr>
<tr class="separator:a7ee0760ea1895f5e6c8f6673f83cc072 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5fe39669b1d4239f3e4f73a8bf5105a5 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceCairo.html#a1f0f5d82599dfeabbeb2396dbfd767d0">Content</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a5fe39669b1d4239f3e4f73a8bf5105a5">get_content</a> () const </td></tr>
<tr class="memdesc:a5fe39669b1d4239f3e4f73a8bf5105a5 inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">This function returns the content type of surface which indicates whether the surface contains color and/or alpha information. <a href="#a5fe39669b1d4239f3e4f73a8bf5105a5">More...</a><br /></td></tr>
<tr class="separator:a5fe39669b1d4239f3e4f73a8bf5105a5 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aae22bcaa9becbf3ca703a380f70c2c0a inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#aae22bcaa9becbf3ca703a380f70c2c0a">copy_page</a> ()</td></tr>
<tr class="memdesc:aae22bcaa9becbf3ca703a380f70c2c0a inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Emits the current page for backends that support multiple pages, but doesn't clear it, so that the contents of the current page will be retained for the next page. <a href="#aae22bcaa9becbf3ca703a380f70c2c0a">More...</a><br /></td></tr>
<tr class="separator:aae22bcaa9becbf3ca703a380f70c2c0a inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad318acd86c1875854ef4e1e2867052c3 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#ad318acd86c1875854ef4e1e2867052c3">show_page</a> ()</td></tr>
<tr class="memdesc:ad318acd86c1875854ef4e1e2867052c3 inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Emits and clears the current page for backends that support multiple pages. <a href="#ad318acd86c1875854ef4e1e2867052c3">More...</a><br /></td></tr>
<tr class="separator:ad318acd86c1875854ef4e1e2867052c3 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae4e133bf758c85195db6d3ccfbe1d54a inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#ae4e133bf758c85195db6d3ccfbe1d54a">has_show_text_glyphs</a> () const </td></tr>
<tr class="memdesc:ae4e133bf758c85195db6d3ccfbe1d54a inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the surface supports sophisticated <a class="el" href="classCairo_1_1Context.html#a45723fd605cc2343ab46cf603d330002" title="This operation has rendering effects similar to show_glyphs() but, if the target surface supports it...">Context::show_text_glyphs()</a> operations. <a href="#ae4e133bf758c85195db6d3ccfbe1d54a">More...</a><br /></td></tr>
<tr class="separator:ae4e133bf758c85195db6d3ccfbe1d54a inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a153405d271814ab4d47b90a1c36d2370 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a153405d271814ab4d47b90a1c36d2370">write_to_png</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a>& filename)</td></tr>
<tr class="memdesc:a153405d271814ab4d47b90a1c36d2370 inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Writes the contents of surface to a new file filename as a PNG image. <a href="#a153405d271814ab4d47b90a1c36d2370">More...</a><br /></td></tr>
<tr class="separator:a153405d271814ab4d47b90a1c36d2370 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab3eca5bc13abe27f470fdf08134269bb inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#ab3eca5bc13abe27f470fdf08134269bb">write_to_png_stream</a> (const <a class="el" href="classCairo_1_1Surface.html#a02fb9416d466b762bc5845b0ae204f49">SlotWriteFunc</a>& write_func)</td></tr>
<tr class="memdesc:ab3eca5bc13abe27f470fdf08134269bb inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Writes the <a class="el" href="classCairo_1_1Surface.html" title="A cairo surface represents an image, either as the destination of a drawing operation or as source wh...">Surface</a> to the write function. <a href="#ab3eca5bc13abe27f470fdf08134269bb">More...</a><br /></td></tr>
<tr class="separator:ab3eca5bc13abe27f470fdf08134269bb inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a83763b7906a666b095ce376271455457 inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a83763b7906a666b095ce376271455457">write_to_png</a> (cairo_write_func_t write_func, void* closure)</td></tr>
<tr class="separator:a83763b7906a666b095ce376271455457 inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3d1f19c2210e0e7a4aa3d3053b90107f inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1Device.html">Device</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a3d1f19c2210e0e7a4aa3d3053b90107f">get_device</a> ()</td></tr>
<tr class="memdesc:a3d1f19c2210e0e7a4aa3d3053b90107f inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">This function returns the device for a surface. <a href="#a3d1f19c2210e0e7a4aa3d3053b90107f">More...</a><br /></td></tr>
<tr class="separator:a3d1f19c2210e0e7a4aa3d3053b90107f inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a17d8f600aedba416bb640ac841494bde inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1Surface.html#ad176eb7343b5902df3c19f9f56e59fb4">cobject</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a17d8f600aedba416bb640ac841494bde">cobj</a> ()</td></tr>
<tr class="memdesc:a17d8f600aedba416bb640ac841494bde inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Provides acces to the underlying C cairo surface. <a href="#a17d8f600aedba416bb640ac841494bde">More...</a><br /></td></tr>
<tr class="separator:a17d8f600aedba416bb640ac841494bde inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af45e0ec675af4bb7259df99d202ac83c inherit pub_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classCairo_1_1Surface.html#ad176eb7343b5902df3c19f9f56e59fb4">cobject</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#af45e0ec675af4bb7259df99d202ac83c">cobj</a> () const </td></tr>
<tr class="memdesc:af45e0ec675af4bb7259df99d202ac83c inherit pub_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Provides acces to the underlying C cairo surface. <a href="#af45e0ec675af4bb7259df99d202ac83c">More...</a><br /></td></tr>
<tr class="separator:af45e0ec675af4bb7259df99d202ac83c inherit pub_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ac74f130a3bb36bd9fd70003cd8562ce5"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#ac74f130a3bb36bd9fd70003cd8562ce5">format_stride_for_width</a> (<a class="el" href="namespaceCairo.html#ad3f86970e1bd354b263303c9b8759166">Cairo::Format</a> format, int width)</td></tr>
<tr class="memdesc:ac74f130a3bb36bd9fd70003cd8562ce5"><td class="mdescLeft"> </td><td class="mdescRight">This function provides a stride value that will respect all alignment requirements of the accelerated image-rendering code within cairo. <a href="#ac74f130a3bb36bd9fd70003cd8562ce5">More...</a><br /></td></tr>
<tr class="separator:ac74f130a3bb36bd9fd70003cd8562ce5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a82887e1a0480ab16aa891e135f2b28d6"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1ImageSurface.html">ImageSurface</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#a82887e1a0480ab16aa891e135f2b28d6">create</a> (<a class="el" href="namespaceCairo.html#ad3f86970e1bd354b263303c9b8759166">Format</a> format, int width, int height)</td></tr>
<tr class="memdesc:a82887e1a0480ab16aa891e135f2b28d6"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image surface of the specified format and dimensions. <a href="#a82887e1a0480ab16aa891e135f2b28d6">More...</a><br /></td></tr>
<tr class="separator:a82887e1a0480ab16aa891e135f2b28d6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afeb1b8203f9fa23ff4bca7b70723f370"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1ImageSurface.html">ImageSurface</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#afeb1b8203f9fa23ff4bca7b70723f370">create</a> (unsigned char* data, <a class="el" href="namespaceCairo.html#ad3f86970e1bd354b263303c9b8759166">Format</a> format, int width, int height, int <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01656.html#ga4d464eb22d9ad823ecb9b7eab22c6300">stride</a>)</td></tr>
<tr class="memdesc:afeb1b8203f9fa23ff4bca7b70723f370"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image surface for the provided pixel data. <a href="#afeb1b8203f9fa23ff4bca7b70723f370">More...</a><br /></td></tr>
<tr class="separator:afeb1b8203f9fa23ff4bca7b70723f370"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aac35bcd255347574036746810f8a2978"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1ImageSurface.html">ImageSurface</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#aac35bcd255347574036746810f8a2978">create_from_png</a> (<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> filename)</td></tr>
<tr class="memdesc:aac35bcd255347574036746810f8a2978"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new image surface and initializes the contents to the given PNG file. <a href="#aac35bcd255347574036746810f8a2978">More...</a><br /></td></tr>
<tr class="separator:aac35bcd255347574036746810f8a2978"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7ac275170e7235457c9806aec7cf6f6a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1ImageSurface.html">ImageSurface</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#a7ac275170e7235457c9806aec7cf6f6a">create_from_png_stream</a> (const <a class="el" href="classCairo_1_1Surface.html#af66be8453e3fc558ea1282a911bf60e2">SlotReadFunc</a>& read_func)</td></tr>
<tr class="memdesc:a7ac275170e7235457c9806aec7cf6f6a"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new image surface from PNG data read incrementally via the read_func function. <a href="#a7ac275170e7235457c9806aec7cf6f6a">More...</a><br /></td></tr>
<tr class="separator:a7ac275170e7235457c9806aec7cf6f6a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a43a9cf2aaaa8b2ef91da00bb244c7098"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1ImageSurface.html">ImageSurface</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1ImageSurface.html#a43a9cf2aaaa8b2ef91da00bb244c7098">create_from_png</a> (cairo_read_func_t read_func, void* closure)</td></tr>
<tr class="separator:a43a9cf2aaaa8b2ef91da00bb244c7098"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_static_methods_classCairo_1_1Surface"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classCairo_1_1Surface')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classCairo_1_1Surface.html">Cairo::Surface</a></td></tr>
<tr class="memitem:ac471fbf586ba579565c6d876f9164717 inherit pub_static_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1Surface.html">Surface</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#ac471fbf586ba579565c6d876f9164717">create</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1Surface.html">Surface</a> > other, <a class="el" href="namespaceCairo.html#a1f0f5d82599dfeabbeb2396dbfd767d0">Content</a> content, int width, int height)</td></tr>
<tr class="memdesc:ac471fbf586ba579565c6d876f9164717 inherit pub_static_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Create a new surface that is as compatible as possible with an existing surface. <a href="#ac471fbf586ba579565c6d876f9164717">More...</a><br /></td></tr>
<tr class="separator:ac471fbf586ba579565c6d876f9164717 inherit pub_static_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7d9616c09e08857cef6f771545e55274 inherit pub_static_methods_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1Surface.html">Surface</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a7d9616c09e08857cef6f771545e55274">create</a> (const <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1Surface.html">Surface</a> >& target, double x, double y, double width, double height)</td></tr>
<tr class="memdesc:a7d9616c09e08857cef6f771545e55274 inherit pub_static_methods_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">Create a new surface that is a rectangle within the target surface. <a href="#a7d9616c09e08857cef6f771545e55274">More...</a><br /></td></tr>
<tr class="separator:a7d9616c09e08857cef6f771545e55274 inherit pub_static_methods_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_classCairo_1_1Surface"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classCairo_1_1Surface')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="classCairo_1_1Surface.html">Cairo::Surface</a></td></tr>
<tr class="memitem:a02fb9416d466b762bc5845b0ae204f49 inherit pub_types_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>< ErrorStatus, const unsigned char*, unsigned int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a02fb9416d466b762bc5845b0ae204f49">SlotWriteFunc</a></td></tr>
<tr class="memdesc:a02fb9416d466b762bc5845b0ae204f49 inherit pub_types_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">For example: <code> ErrorStatus my_write_func(unsigned char* data, unsigned int length); </code> <a href="#a02fb9416d466b762bc5845b0ae204f49">More...</a><br /></td></tr>
<tr class="separator:a02fb9416d466b762bc5845b0ae204f49 inherit pub_types_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af66be8453e3fc558ea1282a911bf60e2 inherit pub_types_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>< ErrorStatus, unsigned char*, unsigned int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#af66be8453e3fc558ea1282a911bf60e2">SlotReadFunc</a></td></tr>
<tr class="memdesc:af66be8453e3fc558ea1282a911bf60e2 inherit pub_types_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">This is the type of function which is called when a backend needs to read data from an input stream. <a href="#af66be8453e3fc558ea1282a911bf60e2">More...</a><br /></td></tr>
<tr class="separator:af66be8453e3fc558ea1282a911bf60e2 inherit pub_types_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a150d8ae84fa994f8e2032caa525c166a inherit pub_types_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>< void > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a150d8ae84fa994f8e2032caa525c166a">SlotDestroy</a></td></tr>
<tr class="memdesc:a150d8ae84fa994f8e2032caa525c166a inherit pub_types_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">For instance, void on_destroy();. <a href="#a150d8ae84fa994f8e2032caa525c166a">More...</a><br /></td></tr>
<tr class="separator:a150d8ae84fa994f8e2032caa525c166a inherit pub_types_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad176eb7343b5902df3c19f9f56e59fb4 inherit pub_types_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top">typedef cairo_surface_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#ad176eb7343b5902df3c19f9f56e59fb4">cobject</a></td></tr>
<tr class="memdesc:ad176eb7343b5902df3c19f9f56e59fb4 inherit pub_types_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">The underlying C cairo surface type. <a href="#ad176eb7343b5902df3c19f9f56e59fb4">More...</a><br /></td></tr>
<tr class="separator:ad176eb7343b5902df3c19f9f56e59fb4 inherit pub_types_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pro_attribs_classCairo_1_1Surface"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classCairo_1_1Surface')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="classCairo_1_1Surface.html">Cairo::Surface</a></td></tr>
<tr class="memitem:a8c9aea28f0d1f6c2dcb507a2c7bb027c inherit pro_attribs_classCairo_1_1Surface"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCairo_1_1Surface.html#ad176eb7343b5902df3c19f9f56e59fb4">cobject</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1Surface.html#a8c9aea28f0d1f6c2dcb507a2c7bb027c">m_cobject</a></td></tr>
<tr class="memdesc:a8c9aea28f0d1f6c2dcb507a2c7bb027c inherit pro_attribs_classCairo_1_1Surface"><td class="mdescLeft"> </td><td class="mdescRight">The underlying C cairo surface type that is wrapped by this <a class="el" href="classCairo_1_1Surface.html" title="A cairo surface represents an image, either as the destination of a drawing operation or as source wh...">Surface</a>. <a href="#a8c9aea28f0d1f6c2dcb507a2c7bb027c">More...</a><br /></td></tr>
<tr class="separator:a8c9aea28f0d1f6c2dcb507a2c7bb027c inherit pro_attribs_classCairo_1_1Surface"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Image surfaces provide the ability to render to memory buffers either allocated by cairo or by the calling code. </p>
<p>The supported image formats are those defined in <a class="el" href="namespaceCairo.html#ad3f86970e1bd354b263303c9b8759166" title="Cairo::Format is used to identify the memory format of image data. ">Cairo::Format</a></p>
<p>An <a class="el" href="classCairo_1_1ImageSurface.html" title="Image surfaces provide the ability to render to memory buffers either allocated by cairo or by the ca...">ImageSurface</a> is the most generic type of <a class="el" href="classCairo_1_1Surface.html" title="A cairo surface represents an image, either as the destination of a drawing operation or as source wh...">Surface</a> and the only one that is available by default. You can either create an <a class="el" href="classCairo_1_1ImageSurface.html" title="Image surfaces provide the ability to render to memory buffers either allocated by cairo or by the ca...">ImageSurface</a> whose data is managed by <a class="el" href="namespaceCairo.html">Cairo</a>, or you can create an <a class="el" href="classCairo_1_1ImageSurface.html" title="Image surfaces provide the ability to render to memory buffers either allocated by cairo or by the ca...">ImageSurface</a> with a data buffer that you allocated yourself so that you can have full access to the data.</p>
<p>When you create an <a class="el" href="classCairo_1_1ImageSurface.html" title="Image surfaces provide the ability to render to memory buffers either allocated by cairo or by the ca...">ImageSurface</a> with your own data buffer, you are free to examine the results at any point and do whatever you want with it. Note that if you modify anything and later want to continue to draw to the surface with cairo, you must let cairo know via <a class="el" href="classCairo_1_1Surface.html#a77b1f860cc55f4ad168e100108e0b7bb" title="Tells cairo to consider the data buffer dirty. ">Cairo::Surface::mark_dirty()</a></p>
<p>Note that like all surfaces, an <a class="el" href="classCairo_1_1ImageSurface.html" title="Image surfaces provide the ability to render to memory buffers either allocated by cairo or by the ca...">ImageSurface</a> is a reference-counted object that should be used via <a class="el" href="classCairo_1_1RefPtr.html" title="RefPtr<> is a reference-counting shared smartpointer. ">Cairo::RefPtr</a>. </p>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a class="anchor" id="a19a7d3c6f4320c4d812629b3c18925ac"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Cairo::ImageSurface::ImageSurface </td>
<td>(</td>
<td class="paramtype">cairo_surface_t * </td>
<td class="paramname"><em>cobject</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>has_reference</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a C++ wrapper for the C instance. </p>
<p>This C++ instance should then be given to a <a class="el" href="classCairo_1_1RefPtr.html" title="RefPtr<> is a reference-counting shared smartpointer. ">RefPtr</a>. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">cobject</td><td>The C instance. </td></tr>
<tr><td class="paramname">has_reference</td><td>Whether we already have a reference. Otherwise, the constructor will take an extra reference. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a3ca42b6c6d172c1923cbdcd9d0077565"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Cairo::ImageSurface::~ImageSurface </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a82887e1a0480ab16aa891e135f2b28d6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a><<a class="el" href="classCairo_1_1ImageSurface.html">ImageSurface</a>> Cairo::ImageSurface::create </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceCairo.html#ad3f86970e1bd354b263303c9b8759166">Format</a> </td>
<td class="paramname"><em>format</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>height</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an image surface of the specified format and dimensions. </p>
<p>Initially the surface contents are all 0. (Specifically, within each pixel, each color or alpha channel belonging to format will be 0. The contents of bits within a pixel, but not belonging to the given format are undefined).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">format</td><td>format of pixels in the surface to create </td></tr>
<tr><td class="paramname">width</td><td>width of the surface, in pixels </td></tr>
<tr><td class="paramname">height</td><td>height of the surface, in pixels </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="classCairo_1_1RefPtr.html" title="RefPtr<> is a reference-counting shared smartpointer. ">RefPtr</a> to the newly created surface. </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="image-surface_8cc-example.html#a0">image-surface.cc</a>, <a class="el" href="toy-text_8cc-example.html#a0">toy-text.cc</a>, and <a class="el" href="user-font_8cc-example.html#a9">user-font.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="afeb1b8203f9fa23ff4bca7b70723f370"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a><<a class="el" href="classCairo_1_1ImageSurface.html">ImageSurface</a>> Cairo::ImageSurface::create </td>
<td>(</td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceCairo.html#ad3f86970e1bd354b263303c9b8759166">Format</a> </td>
<td class="paramname"><em>format</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>height</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>stride</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an image surface for the provided pixel data. </p>
<p>The output buffer must be kept around until the surface is destroyed or <a class="el" href="classCairo_1_1Surface.html#a8d8afee4ddb4935b85698f27099646a0" title="This function finishes the surface and drops all references to external resources. ">finish()</a> is called on the surface. The initial contents of buffer will be used as the initial image contents; you must explicitly clear the buffer, using, for example, <a class="el" href="classCairo_1_1Context.html#a85ee124b89c43dc29ff0d964bd005c11" title="Adds a closed-subpath rectangle of the given size to the current path at position (x...">Context::rectangle()</a> and <a class="el" href="classCairo_1_1Context.html#a0a484790884dd138108b07c0ebbbe21d" title="A drawing operator that fills the current path according to the current fill rule, (each sub-path is implicitly closed before being filled). ">Context::fill()</a> if you want it cleared.</p>
<p>Note that the stride may be larger than <em>width</em>* <em>bytes_per_pixel</em> to provide proper alignment for each pixel and row. This alignment is required to allow high-performance rendering within cairo. The correct way to obtain a legal stride value is to call <a class="el" href="classCairo_1_1ImageSurface.html#ac74f130a3bb36bd9fd70003cd8562ce5" title="This function provides a stride value that will respect all alignment requirements of the accelerated...">format_stride_for_width()</a> with the desired format and maximum image width value, and the use the resulting stride value to allocate the data and to create the image surface. See <a class="el" href="classCairo_1_1ImageSurface.html#ac74f130a3bb36bd9fd70003cd8562ce5" title="This function provides a stride value that will respect all alignment requirements of the accelerated...">format_stride_for_width()</a> for example code.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data</td><td>a pointer to a buffer supplied by the application in which to write contents. This pointer must be suitably aligned for any kind of variable, (for example, a pointer returned by malloc). </td></tr>
<tr><td class="paramname">format</td><td>the format of pixels in the buffer </td></tr>
<tr><td class="paramname">width</td><td>the width of the image to be stored in the buffer </td></tr>
<tr><td class="paramname">height</td><td>the height of the image to be stored in the buffer </td></tr>
<tr><td class="paramname">stride</td><td>the number of bytes between the start of rows in the buffer as allocated. This value should always be computed by cairo_format_stride_for_width() before allocating the data buffer. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="classCairo_1_1RefPtr.html" title="RefPtr<> is a reference-counting shared smartpointer. ">RefPtr</a> to the newly created surface. </dd></dl>
</div>
</div>
<a class="anchor" id="aac35bcd255347574036746810f8a2978"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a><<a class="el" href="classCairo_1_1ImageSurface.html">ImageSurface</a>> Cairo::ImageSurface::create_from_png </td>
<td>(</td>
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01681.html#ga32db3d9898c44d3b3a578b560f7758cc">std::string</a> </td>
<td class="paramname"><em>filename</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a new image surface and initializes the contents to the given PNG file. </p>
<dl class="section note"><dt>Note</dt><dd>For this function to be available, cairo must have been compiled with PNG support.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td>name of PNG file to load </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="classCairo_1_1RefPtr.html" title="RefPtr<> is a reference-counting shared smartpointer. ">RefPtr</a> to the new cairo_surface_t initialized with the contents of the PNG image file. </dd></dl>
</div>
</div>
<a class="anchor" id="a43a9cf2aaaa8b2ef91da00bb244c7098"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a><<a class="el" href="classCairo_1_1ImageSurface.html">ImageSurface</a>> Cairo::ImageSurface::create_from_png </td>
<td>(</td>
<td class="paramtype">cairo_read_func_t </td>
<td class="paramname"><em>read_func</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>closure</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000014">Deprecated:</a></b></dt><dd>Use create_from_png_stream instead </dd></dl>
</div>
</div>
<a class="anchor" id="a7ac275170e7235457c9806aec7cf6f6a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a><<a class="el" href="classCairo_1_1ImageSurface.html">ImageSurface</a>> Cairo::ImageSurface::create_from_png_stream </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classCairo_1_1Surface.html#af66be8453e3fc558ea1282a911bf60e2">SlotReadFunc</a>& </td>
<td class="paramname"><em>read_func</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a new image surface from PNG data read incrementally via the read_func function. </p>
<dl class="section note"><dt>Note</dt><dd>For this function to be available, cairo must have been compiled with PNG support.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">read_func</td><td>function called to read the data of the file </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="classCairo_1_1RefPtr.html" title="RefPtr<> is a reference-counting shared smartpointer. ">RefPtr</a> to the new cairo_surface_t initialized with the contents of the PNG image file. </dd></dl>
</div>
</div>
<a class="anchor" id="ac74f130a3bb36bd9fd70003cd8562ce5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static int Cairo::ImageSurface::format_stride_for_width </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceCairo.html#ad3f86970e1bd354b263303c9b8759166">Cairo::Format</a> </td>
<td class="paramname"><em>format</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>width</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This function provides a stride value that will respect all alignment requirements of the accelerated image-rendering code within cairo. </p>
<p>Typical usage will be of the form:</p>
<div class="fragment"><div class="line"><span class="keywordtype">int</span> <a class="codeRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01656.html#ga4d464eb22d9ad823ecb9b7eab22c6300">stride</a>;</div>
<div class="line"><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *data;</div>
<div class="line"><a class="code" href="classCairo_1_1RefPtr.html">Cairo::RefPtr<Cairo::ImageSurface></a> surface;</div>
<div class="line"></div>
<div class="line">stride = <a class="code" href="classCairo_1_1ImageSurface.html#ac74f130a3bb36bd9fd70003cd8562ce5">Cairo::ImageSurface::format_stride_for_width</a> (format, width);</div>
<div class="line">data = malloc (stride * height);</div>
<div class="line">surface = <a class="code" href="classCairo_1_1ImageSurface.html#a82887e1a0480ab16aa891e135f2b28d6">Cairo::ImageSurface::create</a> (data, format, width, height);</div>
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">format</td><td>A <a class="el" href="namespaceCairo.html#ad3f86970e1bd354b263303c9b8759166" title="Cairo::Format is used to identify the memory format of image data. ">Cairo::Format</a> value </td></tr>
<tr><td class="paramname">width</td><td>The desired width of an image surface to be created. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the appropriate stride to use given the desired format and width, or -1 if either the format is invalid or the width too large.</dd></dl>
<dl class="section since"><dt>Since</dt><dd>1.6 </dd></dl>
</div>
</div>
<a class="anchor" id="a94ba52fe4a201579c8a5541717822bdb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned char* Cairo::ImageSurface::get_data </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get a pointer to the data of the image surface, for direct inspection or modification. </p>
<p>Return value: a pointer to the image data of this surface or NULL if is not an image surface.</p>
<dl class="section since"><dt>Since</dt><dd>1.2 </dd></dl>
</div>
</div>
<a class="anchor" id="a8858eb704ebe2118baf83f2a104b9140"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const unsigned char* Cairo::ImageSurface::get_data </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="aedccf9d08b3e5852c0bbb195cf1379a8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceCairo.html#ad3f86970e1bd354b263303c9b8759166">Format</a> Cairo::ImageSurface::get_format </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the format of the surface. </p>
<dl class="section since"><dt>Since</dt><dd>1.2 </dd></dl>
</div>
</div>
<a class="anchor" id="aa0e17bed71b125fd4725386ee1f14d07"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Cairo::ImageSurface::get_height </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the height of the <a class="el" href="classCairo_1_1ImageSurface.html" title="Image surfaces provide the ability to render to memory buffers either allocated by cairo or by the ca...">ImageSurface</a> in pixels. </p>
</div>
</div>
<a class="anchor" id="a4b33c7f1c03197eb66dac3e909c5a39a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Cairo::ImageSurface::get_stride </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the stride of the image surface in bytes (or 0 if surface is not an image surface). </p>
<p>The stride is the distance in bytes from the beginning of one row of the image data to the beginning of the next row.</p>
<dl class="section since"><dt>Since</dt><dd>1.2 </dd></dl>
</div>
</div>
<a class="anchor" id="af75b30cde988ad6959bb75862f5b6e2a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Cairo::ImageSurface::get_width </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the width of the <a class="el" href="classCairo_1_1ImageSurface.html" title="Image surfaces provide the ability to render to memory buffers either allocated by cairo or by the ca...">ImageSurface</a> in pixels. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>cairomm/surface.h</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 15 2016 12:52:12 for cairomm by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
|