1 2 3 4 5<!DOCTYPE html> 6<html lang="en"> 7<head> 8 <meta charset="utf-8" /> 9 <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no" /> 10 <title>ImageMagick - MagickCore, C API: Cache Views</title> 11 <meta name="application-name" content="ImageMagick" /> 12 <meta name="description" content="Use ImageMagick® to create, edit, compose, and convert bitmap images. Resize an image, crop it, change its shades and colors, add captions, and more." /> 13 <meta name="application-url" content="https://imagemagick.org" /> 14 <meta name="generator" content="PHP" /> 15 <meta name="keywords" content="magickcore, c, api:, cache, views, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert" /> 16 <meta name="rating" content="GENERAL" /> 17 <meta name="robots" content="INDEX, FOLLOW" /> 18 <meta name="generator" content="ImageMagick Studio LLC" /> 19 <meta name="author" content="ImageMagick Studio LLC" /> 20 <meta name="revisit-after" content="2 DAYS" /> 21 <meta name="resource-type" content="document" /> 22 <meta name="copyright" content="Copyright (c) 1999-2020 ImageMagick Studio LLC" /> 23 <meta name="distribution" content="Global" /> 24 <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1" /> 25 <meta property='og:url' content='../../' /> 26 <meta property='og:title' content='ImageMagick' /> 27 <meta property='og:image' content='../../images/logo.png' /> 28 <meta property='og:type' content='website' /> 29 <meta property='og:site_name' content='ImageMagick' /> 30 <meta property='og:description' content="Convert, Edit, or Compose Bitmap Images" /> 31 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" /> 32 <link href="../../api/cache-view.html" rel="canonical" /> 33 <link href="../images/wand.png" rel="icon" /> 34 <link href="../images/wand.ico" rel="shortcut icon" /> 35 <link href="assets/magick.css" rel="stylesheet" /> 36</head> 37<body> 38 <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark"> 39 <a class="navbar-brand" href="../index.html"><img class="d-block" id="icon" alt="ImageMagick" width="32" height="32" src="../images/wand.ico"/></a> 40 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsMagick" aria-controls="navbarsMagick" aria-expanded="false" aria-label="Toggle navigation"> 41 <span class="navbar-toggler-icon"></span> 42 </button> 43 44 <div class="navbar-collapse collapse" id="navbarsMagick" style=""> 45 <ul class="navbar-nav mr-auto"> 46 <li class="nav-item "> 47 <a class="nav-link" href="../index.html">Home <span class="sr-only">(current)</span></a> 48 </li> 49 <li class="nav-item "> 50 <a class="nav-link" href="../www/download.html">Download</a> 51 </li> 52 <li class="nav-item "> 53 <a class="nav-link" href="../www/command-line-tools.html">Tools</a> 54 </li> 55 <li class="nav-item "> 56 <a class="nav-link" href="../www/command-line-processing.html">Command-line</a> 57 </li> 58 <li class="nav-item "> 59 <a class="nav-link" href="../www/resources.html">Resources</a> 60 </li> 61 <li class="nav-item "> 62 <a class="nav-link" href="../www/develop.html">Develop</a> 63 </li> 64 <li class="nav-item"> 65 <a class="nav-link" target="_blank" href="https://imagemagick.org/discourse-server/">Community</a> 66 </li> 67 </ul> 68 <form class="form-inline my-2 my-lg-0" action="../https://imagemagick.org/script/search.php"> 69 <input class="form-control mr-sm-2" type="text" name="q" placeholder="Search" aria-label="Search"> 70 <button class="btn btn-outline-success my-2 my-sm-0" type="submit" name="sa">Search</button> 71 </form> 72 </div> 73 </nav> 74 <div class="container"> 75 <script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" 76 style="display:block" 77 data-ad-client="ca-pub-3129977114552745" 78 data-ad-slot="6345125851" 79 data-full-width-responsive="true" 80 data-ad-format="horizontal"></ins> 81 <script> 82 (adsbygoogle = window.adsbygoogle || []).push({}); 83 </script> 84 85 </div> 86 87 <main class="container"> 88 <div class="magick-template"> 89<div class="magick-header"> 90<p class="text-center"><a href="cache-view.html#AcquireAuthenticCacheView">AcquireAuthenticCacheView</a> • <a href="cache-view.html#AcquireVirtualCacheView">AcquireVirtualCacheView</a> • <a href="cache-view.html#CloneCacheView">CloneCacheView</a> • <a href="cache-view.html#DestroyCacheView">DestroyCacheView</a> • <a href="cache-view.html#GetCacheViewAuthenticPixels">GetCacheViewAuthenticPixels</a> • <a href="cache-view.html#GetCacheViewAuthenticMetacontent">GetCacheViewAuthenticMetacontent</a> • <a href="cache-view.html#GetCacheViewAuthenticPixelQueue">GetCacheViewAuthenticPixelQueue</a> • <a href="cache-view.html#GetCacheViewColorspace">GetCacheViewColorspace</a> • <a href="cache-view.html#GetCacheViewImage">GetCacheViewImage</a> • <a href="cache-view.html#GetCacheViewStorageClass">GetCacheViewStorageClass</a> • <a href="cache-view.html#GetCacheViewVirtualMetacontent">GetCacheViewVirtualMetacontent</a> • <a href="cache-view.html#GetCacheViewVirtualPixelQueue">GetCacheViewVirtualPixelQueue</a> • <a href="cache-view.html#GetCacheViewVirtualPixels">GetCacheViewVirtualPixels</a> • <a href="cache-view.html#GetOneCacheViewAuthenticPixel">GetOneCacheViewAuthenticPixel</a> • <a href="cache-view.html#GetOneCacheViewVirtualPixel">GetOneCacheViewVirtualPixel</a> • <a href="cache-view.html#GetOneCacheViewVirtualPixelInfo">GetOneCacheViewVirtualPixelInfo</a> • <a href="cache-view.html#GetOneCacheViewVirtualMethodPixel">GetOneCacheViewVirtualMethodPixel</a> • <a href="cache-view.html#QueueCacheViewAuthenticPixels">QueueCacheViewAuthenticPixels</a> • <a href="cache-view.html#SetCacheViewStorageClass">SetCacheViewStorageClass</a> • <a href="cache-view.html#SetCacheViewVirtualPixelMethod">SetCacheViewVirtualPixelMethod</a> • <a href="cache-view.html#SyncCacheViewAuthenticPixels">SyncCacheViewAuthenticPixels</a></p> 91 92<h2><a href="../../api/MagickCore/cache-view_8c.html" id="AcquireAuthenticCacheView">AcquireAuthenticCacheView</a></h2> 93 94<p>AcquireAuthenticCacheView() acquires an authentic view into the pixel cache. It always succeeds but may return a warning or informational exception.</p> 95 96<p>The format of the AcquireAuthenticCacheView method is:</p> 97 98<pre class="text"> 99CacheView *AcquireAuthenticCacheView(const Image *image, 100 ExceptionInfo *exception) 101</pre> 102 103<p>A description of each parameter follows:</p> 104 105<dd> 106</dd> 107 108<dd> </dd> 109<dl class="dl-horizontal"> 110<dt>image</dt> 111<dd>the image. </dd> 112 113<dd> </dd> 114<dt>exception</dt> 115<dd>return any errors or warnings in this structure. </dd> 116 117<dd> </dd> 118</dl> 119<h2><a href="../../api/MagickCore/cache-view_8c.html" id="AcquireVirtualCacheView">AcquireVirtualCacheView</a></h2> 120 121<p>AcquireVirtualCacheView() acquires a virtual view into the pixel cache, using the VirtualPixelMethod that is defined within the given image itself. It always succeeds but may return a warning or informational exception.</p> 122 123<p>The format of the AcquireVirtualCacheView method is:</p> 124 125<pre class="text"> 126CacheView *AcquireVirtualCacheView(const Image *image, 127 ExceptionInfo *exception) 128</pre> 129 130<p>A description of each parameter follows:</p> 131 132<dd> 133</dd> 134 135<dd> </dd> 136<dl class="dl-horizontal"> 137<dt>image</dt> 138<dd>the image. </dd> 139 140<dd> </dd> 141<dt>exception</dt> 142<dd>return any errors or warnings in this structure. </dd> 143 144<dd> </dd> 145</dl> 146<h2><a href="../../api/MagickCore/cache-view_8c.html" id="CloneCacheView">CloneCacheView</a></h2> 147 148<p>CloneCacheView() makes an exact copy of the specified cache view.</p> 149 150<p>The format of the CloneCacheView method is:</p> 151 152<pre class="text"> 153CacheView *CloneCacheView(const CacheView *cache_view) 154</pre> 155 156<p>A description of each parameter follows:</p> 157 158<dd> 159</dd> 160 161<dd> </dd> 162<dl class="dl-horizontal"> 163<dt>cache_view</dt> 164<dd>the cache view. </dd> 165 166<dd> </dd> 167</dl> 168<h2><a href="../../api/MagickCore/cache-view_8c.html" id="DestroyCacheView">DestroyCacheView</a></h2> 169 170<p>DestroyCacheView() destroys the specified view returned by a previous call to AcquireCacheView().</p> 171 172<p>The format of the DestroyCacheView method is:</p> 173 174<pre class="text"> 175CacheView *DestroyCacheView(CacheView *cache_view) 176</pre> 177 178<p>A description of each parameter follows:</p> 179 180<dd> 181</dd> 182 183<dd> </dd> 184<dl class="dl-horizontal"> 185<dt>cache_view</dt> 186<dd>the cache view. </dd> 187 188<dd> </dd> 189</dl> 190<h2><a href="../../api/MagickCore/cache-view_8c.html" id="GetCacheViewAuthenticPixels">GetCacheViewAuthenticPixels</a></h2> 191 192<p>GetCacheViewAuthenticPixels() gets pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p> 193 194<p>The format of the GetCacheViewAuthenticPixels method is:</p> 195 196<pre class="text"> 197Quantum *GetCacheViewAuthenticPixels(CacheView *cache_view, 198 const ssize_t x,const ssize_t y,const size_t columns, 199 const size_t rows,ExceptionInfo *exception) 200</pre> 201 202<p>A description of each parameter follows:</p> 203 204<dd> 205</dd> 206 207<dd> </dd> 208<dl class="dl-horizontal"> 209<dt>cache_view</dt> 210<dd>the cache view. </dd> 211 212<dd> </dd> 213<dt>x,y,columns,rows</dt> 214<dd> These values define the perimeter of a region of pixels. </dd> 215 216<dd> </dd> 217<dt>exception</dt> 218<dd>return any errors or warnings in this structure. </dd> 219 220<dd> </dd> 221</dl> 222<h2><a href="../../api/MagickCore/cache-view_8c.html" id="GetCacheViewAuthenticMetacontent">GetCacheViewAuthenticMetacontent</a></h2> 223 224<p>GetCacheViewAuthenticMetacontent() returns the meta-content corresponding with the last call to SetCacheViewIndexes() or GetCacheViewAuthenticMetacontent(). The meta-content are authentic and can be updated.</p> 225 226<p>The format of the GetCacheViewAuthenticMetacontent() method is:</p> 227 228<pre class="text"> 229void *GetCacheViewAuthenticMetacontent(CacheView *cache_view) 230</pre> 231 232<p>A description of each parameter follows:</p> 233 234<dd> 235</dd> 236 237<dd> </dd> 238<dl class="dl-horizontal"> 239<dt>cache_view</dt> 240<dd>the cache view. </dd> 241 242<dd> </dd> 243</dl> 244<h2><a href="../../api/MagickCore/cache-view_8c.html" id="GetCacheViewAuthenticPixelQueue">GetCacheViewAuthenticPixelQueue</a></h2> 245 246<p>GetCacheViewAuthenticPixelQueue() returns the pixels associated with the last call to QueueCacheViewAuthenticPixels() or GetCacheViewAuthenticPixels(). The pixels are authentic and therefore can be updated.</p> 247 248<p>The format of the GetCacheViewAuthenticPixelQueue() method is:</p> 249 250<pre class="text"> 251Quantum *GetCacheViewAuthenticPixelQueue(CacheView *cache_view) 252</pre> 253 254<p>A description of each parameter follows:</p> 255 256<dd> 257</dd> 258 259<dd> </dd> 260<dl class="dl-horizontal"> 261<dt>cache_view</dt> 262<dd>the cache view. </dd> 263 264<dd> </dd> 265</dl> 266<h2><a href="../../api/MagickCore/cache-view_8c.html" id="GetCacheViewColorspace">GetCacheViewColorspace</a></h2> 267 268<p>GetCacheViewColorspace() returns the image colorspace associated with the specified view.</p> 269 270<p>The format of the GetCacheViewColorspace method is:</p> 271 272<pre class="text"> 273ColorspaceType GetCacheViewColorspace(const CacheView *cache_view) 274</pre> 275 276<p>A description of each parameter follows:</p> 277 278<dd> 279</dd> 280 281<dd> </dd> 282<dl class="dl-horizontal"> 283<dt>cache_view</dt> 284<dd>the cache view. </dd> 285 286<dd> </dd> 287</dl> 288<h2><a href="../../api/MagickCore/cache-view_8c.html" id="GetCacheViewImage">GetCacheViewImage</a></h2> 289 290<p>GetCacheViewImage() returns the image associated with the specified view.</p> 291 292<p>The format of the GetCacheViewImage method is:</p> 293 294<pre class="text"> 295const Image *GetCacheViewImage(const CacheView *cache_view) 296</pre> 297 298<p>A description of each parameter follows:</p> 299 300<dd> 301</dd> 302 303<dd> </dd> 304<dl class="dl-horizontal"> 305<dt>cache_view</dt> 306<dd>the cache view. </dd> 307 308<dd> </dd> 309</dl> 310<h2><a href="../../api/MagickCore/cache-view_8c.html" id="GetCacheViewStorageClass">GetCacheViewStorageClass</a></h2> 311 312<p>GetCacheViewStorageClass() returns the image storage class associated with the specified view.</p> 313 314<p>The format of the GetCacheViewStorageClass method is:</p> 315 316<pre class="text"> 317ClassType GetCacheViewStorageClass(const CacheView *cache_view) 318</pre> 319 320<p>A description of each parameter follows:</p> 321 322<dd> 323</dd> 324 325<dd> </dd> 326<dl class="dl-horizontal"> 327<dt>cache_view</dt> 328<dd>the cache view. </dd> 329 330<dd> </dd> 331</dl> 332<h2><a href="../../api/MagickCore/cache-view_8c.html" id="GetCacheViewVirtualMetacontent">GetCacheViewVirtualMetacontent</a></h2> 333 334<p>GetCacheViewVirtualMetacontent() returns the meta-content corresponding with the last call to GetCacheViewVirtualMetacontent(). The meta-content is virtual and therefore cannot be updated.</p> 335 336<p>The format of the GetCacheViewVirtualMetacontent() method is:</p> 337 338<pre class="text"> 339const void *GetCacheViewVirtualMetacontent( 340 const CacheView *cache_view) 341</pre> 342 343<p>A description of each parameter follows:</p> 344 345<dd> 346</dd> 347 348<dd> </dd> 349<dl class="dl-horizontal"> 350<dt>cache_view</dt> 351<dd>the cache view. </dd> 352 353<dd> </dd> 354</dl> 355<h2><a href="../../api/MagickCore/cache-view_8c.html" id="GetCacheViewVirtualPixelQueue">GetCacheViewVirtualPixelQueue</a></h2> 356 357<p>GetCacheViewVirtualPixelQueue() returns the the pixels associated with the last call to GetCacheViewVirtualPixels(). The pixels are virtual and therefore cannot be updated.</p> 358 359<p>The format of the GetCacheViewVirtualPixelQueue() method is:</p> 360 361<pre class="text"> 362const Quantum *GetCacheViewVirtualPixelQueue( 363 const CacheView *cache_view) 364</pre> 365 366<p>A description of each parameter follows:</p> 367 368<dd> 369</dd> 370 371<dd> </dd> 372<dl class="dl-horizontal"> 373<dt>cache_view</dt> 374<dd>the cache view. </dd> 375 376<dd> </dd> 377</dl> 378<h2><a href="../../api/MagickCore/cache-view_8c.html" id="GetCacheViewVirtualPixels">GetCacheViewVirtualPixels</a></h2> 379 380<p>GetCacheViewVirtualPixels() gets virtual pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p> 381 382<p>The format of the GetCacheViewVirtualPixels method is:</p> 383 384<pre class="text"> 385const Quantum *GetCacheViewVirtualPixels( 386 const CacheView *cache_view,const ssize_t x,const ssize_t y, 387 const size_t columns,const size_t rows,ExceptionInfo *exception) 388</pre> 389 390<p>A description of each parameter follows:</p> 391 392<dd> 393</dd> 394 395<dd> </dd> 396<dl class="dl-horizontal"> 397<dt>cache_view</dt> 398<dd>the cache view. </dd> 399 400<dd> </dd> 401<dt>x,y,columns,rows</dt> 402<dd> These values define the perimeter of a region of pixels. </dd> 403 404<dd> </dd> 405<dt>exception</dt> 406<dd>return any errors or warnings in this structure. </dd> 407 408<dd> </dd> 409</dl> 410<h2><a href="../../api/MagickCore/cache-view_8c.html" id="GetOneCacheViewAuthenticPixel">GetOneCacheViewAuthenticPixel</a></h2> 411 412<p>GetOneCacheViewAuthenticPixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs.</p> 413 414<p>The format of the GetOneCacheViewAuthenticPixel method is:</p> 415 416<pre class="text"> 417MagickBooleaNType GetOneCacheViewAuthenticPixel( 418 const CacheView *cache_view,const ssize_t x,const ssize_t y, 419 Quantum *pixel,ExceptionInfo *exception) 420</pre> 421 422<p>A description of each parameter follows:</p> 423 424<dd> 425</dd> 426 427<dd> </dd> 428<dl class="dl-horizontal"> 429<dt>cache_view</dt> 430<dd>the cache view. </dd> 431 432<dd> </dd> 433<dt>x,y</dt> 434<dd> These values define the offset of the pixel. </dd> 435 436<dd> </dd> 437<dt>pixel</dt> 438<dd>return a pixel at the specified (x,y) location. </dd> 439 440<dd> </dd> 441<dt>exception</dt> 442<dd>return any errors or warnings in this structure. </dd> 443 444<dd> </dd> 445</dl> 446<h2><a href="../../api/MagickCore/cache-view_8c.html" id="GetOneCacheViewVirtualPixel">GetOneCacheViewVirtualPixel</a></h2> 447 448<p>GetOneCacheViewVirtualPixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOneCacheViewAuthenticPixel() instead.</p> 449 450<p>The format of the GetOneCacheViewVirtualPixel method is:</p> 451 452<pre class="text"> 453MagickBooleanType GetOneCacheViewVirtualPixel( 454 const CacheView *cache_view,const ssize_t x,const ssize_t y, 455 Quantum *pixel,ExceptionInfo *exception) 456</pre> 457 458<p>A description of each parameter follows:</p> 459 460<dd> 461</dd> 462 463<dd> </dd> 464<dl class="dl-horizontal"> 465<dt>cache_view</dt> 466<dd>the cache view. </dd> 467 468<dd> </dd> 469<dt>x,y</dt> 470<dd> These values define the offset of the pixel. </dd> 471 472<dd> </dd> 473<dt>pixel</dt> 474<dd>return a pixel at the specified (x,y) location. </dd> 475 476<dd> </dd> 477<dt>exception</dt> 478<dd>return any errors or warnings in this structure. </dd> 479 480<dd> </dd> 481</dl> 482<h2><a href="../../api/MagickCore/cache-view_8c.html" id="GetOneCacheViewVirtualPixelInfo">GetOneCacheViewVirtualPixelInfo</a></h2> 483 484<p>GetOneCacheViewVirtualPixelInfo() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOneCacheViewAuthenticPixel() instead.</p> 485 486<p>The format of the GetOneCacheViewVirtualPixelInfo method is:</p> 487 488<pre class="text"> 489MagickBooleanType GetOneCacheViewVirtualPixelInfo( 490 const CacheView *cache_view,const ssize_t x,const ssize_t y, 491 PixelInfo *pixel,ExceptionInfo *exception) 492</pre> 493 494<p>A description of each parameter follows:</p> 495 496<dd> 497</dd> 498 499<dd> </dd> 500<dl class="dl-horizontal"> 501<dt>cache_view</dt> 502<dd>the cache view. </dd> 503 504<dd> </dd> 505<dt>x,y</dt> 506<dd> These values define the offset of the pixel. </dd> 507 508<dd> </dd> 509<dt>pixel</dt> 510<dd>return a pixel at the specified (x,y) location. </dd> 511 512<dd> </dd> 513<dt>exception</dt> 514<dd>return any errors or warnings in this structure. </dd> 515 516<dd> </dd> 517</dl> 518<h2><a href="../../api/MagickCore/cache-view_8c.html" id="GetOneCacheViewVirtualMethodPixel">GetOneCacheViewVirtualMethodPixel</a></h2> 519 520<p>GetOneCacheViewVirtualMethodPixel() returns a single virtual pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOneCacheViewAuthenticPixel() instead.</p> 521 522<p>The format of the GetOneCacheViewVirtualPixel method is:</p> 523 524<pre class="text"> 525MagickBooleanType GetOneCacheViewVirtualMethodPixel( 526 const CacheView *cache_view, 527 const VirtualPixelMethod virtual_pixel_method,const ssize_t x, 528 const ssize_t y,Quantum *pixel,ExceptionInfo *exception) 529</pre> 530 531<p>A description of each parameter follows:</p> 532 533<dd> 534</dd> 535 536<dd> </dd> 537<dl class="dl-horizontal"> 538<dt>cache_view</dt> 539<dd>the cache view. </dd> 540 541<dd> </dd> 542<dt>virtual_pixel_method</dt> 543<dd>the virtual pixel method. </dd> 544 545<dd> </dd> 546<dt>x,y</dt> 547<dd> These values define the offset of the pixel. </dd> 548 549<dd> </dd> 550<dt>pixel</dt> 551<dd>return a pixel at the specified (x,y) location. </dd> 552 553<dd> </dd> 554<dt>exception</dt> 555<dd>return any errors or warnings in this structure. </dd> 556 557<dd> </dd> 558</dl> 559<h2><a href="../../api/MagickCore/cache-view_8c.html" id="QueueCacheViewAuthenticPixels">QueueCacheViewAuthenticPixels</a></h2> 560 561<p>QueueCacheViewAuthenticPixels() queues authentic pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p> 562 563<p>The format of the QueueCacheViewAuthenticPixels method is:</p> 564 565<pre class="text"> 566Quantum *QueueCacheViewAuthenticPixels(CacheView *cache_view, 567 const ssize_t x,const ssize_t y,const size_t columns, 568 const size_t rows,ExceptionInfo *exception) 569</pre> 570 571<p>A description of each parameter follows:</p> 572 573<dd> 574</dd> 575 576<dd> </dd> 577<dl class="dl-horizontal"> 578<dt>cache_view</dt> 579<dd>the cache view. </dd> 580 581<dd> </dd> 582<dt>x,y,columns,rows</dt> 583<dd> These values define the perimeter of a region of pixels. </dd> 584 585<dd> </dd> 586<dt>exception</dt> 587<dd>return any errors or warnings in this structure. </dd> 588 589<dd> </dd> 590</dl> 591<h2><a href="../../api/MagickCore/cache-view_8c.html" id="SetCacheViewStorageClass">SetCacheViewStorageClass</a></h2> 592 593<p>SetCacheViewStorageClass() sets the image storage class associated with the specified view.</p> 594 595<p>The format of the SetCacheViewStorageClass method is:</p> 596 597<pre class="text"> 598MagickBooleanType SetCacheViewStorageClass(CacheView *cache_view, 599 const ClassType storage_class,ExceptionInfo *exception) 600</pre> 601 602<p>A description of each parameter follows:</p> 603 604<dd> 605</dd> 606 607<dd> </dd> 608<dl class="dl-horizontal"> 609<dt>cache_view</dt> 610<dd>the cache view. </dd> 611 612<dd> </dd> 613<dt>storage_class</dt> 614<dd>the image storage class: PseudoClass or DirectClass. </dd> 615 616<dd> </dd> 617<dt>exception</dt> 618<dd>return any errors or warnings in this structure. </dd> 619 620<dd> </dd> 621</dl> 622<h2><a href="../../api/MagickCore/cache-view_8c.html" id="SetCacheViewVirtualPixelMethod">SetCacheViewVirtualPixelMethod</a></h2> 623 624<p>SetCacheViewVirtualPixelMethod() sets the virtual pixel method associated with the specified cache view.</p> 625 626<p>The format of the SetCacheViewVirtualPixelMethod method is:</p> 627 628<pre class="text"> 629MagickBooleanType SetCacheViewVirtualPixelMethod(CacheView *cache_view, 630 const VirtualPixelMethod virtual_pixel_method) 631</pre> 632 633<p>A description of each parameter follows:</p> 634 635<dd> 636</dd> 637 638<dd> </dd> 639<dl class="dl-horizontal"> 640<dt>cache_view</dt> 641<dd>the cache view. </dd> 642 643<dd> </dd> 644<dt>virtual_pixel_method</dt> 645<dd>the virtual pixel method. </dd> 646 647<dd> </dd> 648</dl> 649<h2><a href="../../api/MagickCore/cache-view_8c.html" id="SyncCacheViewAuthenticPixels">SyncCacheViewAuthenticPixels</a></h2> 650 651<p>SyncCacheViewAuthenticPixels() saves the cache view pixels to the in-memory or disk cache. It returns MagickTrue if the pixel region is flushed, otherwise MagickFalse.</p> 652 653<p>The format of the SyncCacheViewAuthenticPixels method is:</p> 654 655<pre class="text"> 656MagickBooleanType SyncCacheViewAuthenticPixels(CacheView *cache_view, 657 ExceptionInfo *exception) 658</pre> 659 660<p>A description of each parameter follows:</p> 661 662<dd> 663</dd> 664 665<dd> </dd> 666<dl class="dl-horizontal"> 667<dt>cache_view</dt> 668<dd>the cache view. </dd> 669 670<dd> </dd> 671<dt>exception</dt> 672<dd>return any errors or warnings in this structure. </dd> 673 674<dd> </dd> 675</dl> 676</div> 677 </div> 678 </main><!-- /.container --> 679 <footer class="magick-footer"> 680 <p><a href="../www/security-policy.html">Security</a> • 681 <a href="../www/architecture.html">Architecture</a> 682 683 <a href="cache-view.html#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../images/wand.ico"/></a> 684 685 <a href="../www/links.html">Related</a> • 686 <a href="../www/sitemap.html">Sitemap</a> 687 <br/> 688 <a href="../www/support.html">Donate</a> • 689 <a href="http://pgp.mit.edu/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> • 690 <a href="../www/contact.html">Contact Us</a> 691 <br/> 692 <small>© 1999-2020 ImageMagick Studio LLC</small></p> 693 </footer> 694 695 <!-- Javascript assets --> 696 <script src="assets/magick.js" crossorigin="anonymous"></script> 697 <script>window.jQuery || document.write('<script src="https://localhost/ajax/libs/jquery/3.4.1/jquery.min.js"><\/script>')</script> 698</body> 699</html> 700<!-- Magick Cache 2nd January 2020 21:06 -->