Sophie

Sophie

distrib > Mandriva > mes5 > x86_64 > by-pkgid > 0d81a008159b90d5a3553d84969a208b > files > 102

graphicsmagick-doc-1.2.5-2.3mdvmes5.2.x86_64.rpm

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>pixel_cache - Image pixel cache.</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:bfriesen@freddy.simplesystems.org" />
</head>

<body style="background-color: white">

<P><a name="__index__"></a></P>
<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#function_descriptions">FUNCTION DESCRIPTIONS</a></li>
	<ul>

		<li><a href="#acquirecacheview">AcquireCacheView</a></li>
		<li><a href="#acquireimagepixels">AcquireImagePixels</a></li>
		<li><a href="#acquireonepixel">AcquireOnePixel</a></li>
		<li><a href="#destroycacheinfo">DestroyCacheInfo</a></li>
		<li><a href="#destroyimagepixels">DestroyImagePixels</a></li>
		<li><a href="#getcacheview">GetCacheView</a></li>
		<li><a href="#getcacheviewindexes">GetCacheViewIndexes</a></li>
		<li><a href="#getimagepixels">GetImagePixels</a></li>
		<li><a href="#getimagevirtualpixelmethod">GetImageVirtualPixelMethod</a></li>
		<li><a href="#getindexes">GetIndexes</a></li>
		<li><a href="#getonepixel">GetOnePixel</a></li>
		<li><a href="#getpixels">GetPixels</a></li>
		<li><a href="#modifycache">ModifyCache</a></li>
		<li><a href="#opencacheview">OpenCacheView</a></li>
		<li><a href="#readstream">ReadStream</a></li>
		<li><a href="#referencecache">ReferenceCache</a></li>
		<li><a href="#setcacheview">SetCacheView</a></li>
		<li><a href="#setimagepixels">SetImagePixels</a></li>
		<li><a href="#setimagevirtualpixelmethod">SetImageVirtualPixelMethod</a></li>
		<li><a href="#syncimagepixels">SyncImagePixels</a></li>
		<li><a href="#writestream">WriteStream</a></li>
	</ul>

</ul>
<!-- INDEX END -->

<hr />
<P>
</P>
<h1><a name="name">NAME</a></h1>
<P>pixel_cache - Image pixel cache (working pixels).</P>
<P>
</P>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<P>const PixelPacket * <strong>AcquireCacheView</strong>( const ViewInfo *view, const long x, const long y, const unsigned long columns, const unsigned long rows, ExceptionInfo *exception );</P>
<P>const PixelPacket * <strong>AcquireImagePixels</strong>( const Image *image, const long x, const long y, const unsigned long columns, const unsigned long rows, ExceptionInfo *exception );</P>
<P>PixelPacket  <strong>AcquireOnePixel</strong>( const Image image, const long x, const long y, ExceptionInfo exception );</P>
<P>void  <strong>DestroyCacheInfo</strong>( Cache cache );</P>
<P>void  <strong>DestroyImagePixels</strong>( Image *image );</P>
<P>PixelPacket * <strong>GetCacheView</strong>( ViewInfo *view, const long x, const long y, const unsigned long columns, const unsigned long rows );</P>
<P>IndexPacket * <strong>GetCacheViewIndexes</strong>( const ViewInfo *view );</P>
<P>PixelPacket * <strong>GetImagePixels</strong>( Image *image, const long x, const long y, const unsigned long columns, const unsigned long rows );</P>
<P>VirtualPixelMethod  <strong>GetImageVirtualPixelMethod</strong>( const Image *image );</P>
<P>IndexPacket * <strong>GetIndexes</strong>( const Image *image );</P>
<P>PixelPacket  <strong>GetOnePixel</strong>( const Image image, const long x, const long y );</P>
<P>PixelPacket * <strong>GetPixels</strong>( const Image image );</P>
<P>MagickPassFail  <strong>ModifyCache</strong>( Image *image );</P>
<P>ViewInfo * <strong>OpenCacheView</strong>( Image *image );</P>
<P>Image * <strong>ReadStream</strong>( const ImageInfo *image_info, StreamHandler stream, ExceptionInfo *exception );</P>
<P>Cache  <strong>ReferenceCache</strong>( Cache cache_info );</P>
<P>PixelPacket * <strong>SetCacheView</strong>( ViewInfo *view, const long x, const long y, const unsigned long columns, const unsigned long rows );</P>
<P>PixelPacket * <strong>SetImagePixels</strong>( Image *image, const long x, const long y, const unsigned long columns, const unsigned long rows );</P>
<P><strong>SetImageVirtualPixelMethod</strong>( const Image *image, const VirtualPixelMethod method );</P>
<P>MagickPassFail  <strong>SyncCacheView</strong>( ViewInfo *view );</P>
<P>MagickPassFail  <strong>SyncImagePixels</strong>( Image *image );</P>
<P>MagickPassFail  <strong>WriteStream</strong>( const ImageInfo *image_info, Image *, StreamHandler stream );</P>
<P>
</P>
<hr />
<h1><a name="function_descriptions">FUNCTION DESCRIPTIONS</a></h1>
<P>
</P>
<h2><a name="acquirecacheview">AcquireCacheView</a></h2>
<P>Method AcquireCacheView 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>
<P>The format of the AcquireCacheView method is:</P>
<blockquote>const <A HREF="types.html#PixelPacket">PixelPacket</A> *AcquireCacheView ( const <A HREF="types.html#ViewInfo">ViewInfo</A> *view, const long x, const long y, const unsigned long columns, const unsigned long rows, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_pixels_3a">pixels:</a></strong>

<DD>
<P>Method GetCacheView returns a null pointer if an error occurs, otherwise a pointer to the view pixels.</P>
</dd>
</li>
<dt><strong><a name="item_o_view_3a">view:</a></strong>

<DD>
<P>The address of a structure of type ViewInfo.</P>
</dd>
</li>
<dt><strong><a name="item_o_x_2cy_2ccolumns_2crows_3a">x,y,columns,rows:</a></strong>

<DD>
<P>These values define the perimeter of a region of pixels.</P>
</dd>
</li>
<dt><strong><a name="item_o_exception_3a">exception:</a></strong>

<DD>
<P>Return any errors or warnings in this structure.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="acquireimagepixels">AcquireImagePixels</a></h2>
<blockquote>AcquireImagePixels() obtains a pixel region for read-only access. If the region is successfully accessed, a pointer to it is returned, otherwise NULL is returned. The returned pointer may point to a temporary working copy of the pixels or it may point to the original pixels in memory. Performance is maximized if the selected area is part of one row, or one or more full rows, since then there is opportunity to access the pixels in-place ( without a copy ) if the image is in RAM, or in a memory-mapped file. The returned pointer should *never *be deallocated by the user. </blockquote><P>Pixels accessed via the returned pointer represent a simple array of type PixelPacket.  If the image storage class is PsudeoClass, call <code>GetIndexes()</code> after invoking <code>GetImagePixels()</code> to obtain the colormap indexes (of type IndexPacket) corresponding to the region.</P>
<P>If you plan to modify the pixels, use <code>GetImagePixels()</code> instead.</P>
<blockquote>The format of the AcquireImagePixels() method is: </blockquote><blockquote>const <A HREF="types.html#PixelPacket">PixelPacket</A> *AcquireImagePixels ( const <A HREF="types.html#Image">Image</A> *image, const long x, const long y, const unsigned long columns, const unsigned long rows, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_status_3a">status:</a></strong>

<DD>
<P><code>AcquireImagePixels()</code> returns a pointer to the pixels if they are transferred, otherwise a NULL is returned.</P>
</dd>
</li>
<dt><strong><a name="item_o_image_3a">image:</a></strong>

<DD>
<P>The image.</P>
</dd>
</li>
<dt><strong>x,y,columns,rows:</strong>

<DD>
<P>These values define the perimeter of a region of pixels.</P>
</dd>
</li>
<dt><strong>exception:</strong>

<DD>
<P>Return any errors or warnings in this structure.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="acquireonepixel">AcquireOnePixel</a></h2>
<blockquote>AcquireOnePixel() 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 GetOnePixel ( ) instead. This function is convenient but performance will be poor if it is used too often. </blockquote><blockquote>The format of the AcquireOnePixel() method is: </blockquote><blockquote><A HREF="types.html#PixelPacket">PixelPacket</A> AcquireOnePixel ( const <A HREF="types.html#Image">Image</A> image, const long x, const long y, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>pixels:</strong>

<DD>
<P><code>AcquireOnePixel()</code> returns a pixel at the specified (x,y) location.</P>
</dd>
</li>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
<dt><strong><a name="item_o_x_2cy_3a">x,y:</a></strong>

<DD>
<P>These values define the location of the pixel to return.</P>
</dd>
</li>
<dt><strong>exception:</strong>

<DD>
<P>Return any errors or warnings in this structure.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="destroycacheinfo">DestroyCacheInfo</a></h2>
<blockquote>DestroyCacheInfo() deallocates memory associated with the pixel cache. </blockquote><blockquote>The format of the DestroyCacheInfo() method is: </blockquote><blockquote>void DestroyCacheInfo ( <A HREF="types.html#Cache">Cache</A> cache ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_cache_3a">cache:</a></strong>

<DD>
<P>Specifies a pointer to a Cache structure.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="destroyimagepixels">DestroyImagePixels</a></h2>
<blockquote>DestroyImagePixels() deallocates memory associated with the pixel cache. </blockquote><blockquote>The format of the DestroyImagePixels() method is: </blockquote><blockquote>void DestroyImagePixels ( <A HREF="types.html#Image">Image</A> *image ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="getcacheview">GetCacheView</a></h2>
<blockquote>GetCacheView() 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. </blockquote><P>The format of the GetCacheView method is:</P>
<blockquote><A HREF="types.html#PixelPacket">PixelPacket</A> *GetCacheView ( <A HREF="types.html#ViewInfo">ViewInfo</A> *view, const long x, const long y, const unsigned long columns, const unsigned long rows ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>pixels:</strong>

<DD>
<P>Method GetCacheView returns a null pointer if an error occurs, otherwise a pointer to the view pixels.</P>
</dd>
</li>
<dt><strong>view:</strong>

<DD>
<P>The address of a structure of type ViewInfo.</P>
</dd>
</li>
<dt><strong>x,y,columns,rows:</strong>

<DD>
<P>These values define the perimeter of a region of pixels.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="getcacheviewindexes">GetCacheViewIndexes</a></h2>
<P>Method GetCacheViewIndexes returns the indexes associated with the specified view.</P>
<P>The format of the GetCacheViewIndexes method is:</P>
<blockquote>IndexPacket *GetCacheViewIndexes ( const <A HREF="types.html#ViewInfo">ViewInfo</A> *view ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_indexes_3a">indexes:</a></strong>

<DD>
<P>Method GetCacheViewIndexes returns the indexes associated with the specified view.</P>
</dd>
</li>
<dt><strong>view:</strong>

<DD>
<P>The address of a structure of type ViewInfo.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="getimagepixels">GetImagePixels</a></h2>
<blockquote>GetImagePixels() obtains a pixel region for read/write access. If the region is successfully accessed, a pointer to a <A HREF="types.html#PixelPacket">PixelPacket</A> array representing the region is returned, otherwise NULL is returned. </blockquote><P>The returned pointer may point to a temporary working copy of the pixels or it may point to the original pixels in memory.  Performance is maximized if the selected area is part of one row, or one or more full rows, since then there is opportunity to access the pixels in-place (without a copy) if the image is in RAM, or in a memory-mapped file.  The returned pointer should *never* be deallocated by the user.</P>
<blockquote>Pixels accessed via the returned pointer represent a simple array of type PixelPacket. If the image storage class is PsudeoClass, call GetIndexes() after invoking GetImagePixels ( ) to obtain the colormap indexes ( of type IndexPacket ) corresponding to the region. Once the <A HREF="types.html#PixelPacket">PixelPacket</A> ( and/or IndexPacket ) array has been updated, the changes must be saved back to the underlying image using SyncPixelCache ( ) or they may be lost. </blockquote><blockquote>The format of the GetImagePixels() method is: </blockquote><blockquote><A HREF="types.html#PixelPacket">PixelPacket</A> *GetImagePixels ( <A HREF="types.html#Image">Image</A> *image, const long x, const long y, const unsigned long columns, const unsigned long rows ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>status:</strong>

<DD>
<P><code>GetImagePixels()</code> returns a pointer to the pixels if they are transferred, otherwise a NULL is returned.</P>
</dd>
</li>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
<dt><strong>x,y,columns,rows:</strong>

<DD>
<P>These values define the perimeter of a region of pixels.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="getimagevirtualpixelmethod">GetImageVirtualPixelMethod</a></h2>
<blockquote>GetImageVirtualPixelMethod() gets the "virtual pixels" method for the image. A virtual pixel is any pixel access that is outside the boundaries of the image cache. </blockquote><blockquote>The format of the GetImageVirtualPixelMethod() method is: </blockquote><blockquote><A HREF="types.html#VirtualPixelMethod">VirtualPixelMethod</A> GetImageVirtualPixelMethod ( const <A HREF="types.html#Image">Image</A> *image ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="getindexes">GetIndexes</a></h2>
<blockquote>GetIndexes() returns the colormap indexes associated with the last call to SetImagePixels ( ) or GetImagePixels ( ) . NULL is returned if colormap indexes are not available. </blockquote><blockquote>The format of the GetIndexes() method is: </blockquote><blockquote>IndexPacket *GetIndexes ( const <A HREF="types.html#Image">Image</A> *image ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>indexes:</strong>

<DD>
<P><code>GetIndexes()</code> returns the indexes associated with the last call to <code>SetImagePixels()</code> or GetImagePixels().</P>
</dd>
</li>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="getonepixel">GetOnePixel</a></h2>
<blockquote>GetOnePixel() returns a single pixel at the specified ( x, y ) location. The image background color is returned if an error occurs. This function is convenient but performance will be poor if it is used too often. </blockquote><blockquote>The format of the GetOnePixel() method is: </blockquote><blockquote><A HREF="types.html#PixelPacket">PixelPacket</A> GetOnePixel ( const <A HREF="types.html#Image">Image</A> image, const long x, const long y ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
<dt><strong>x,y:</strong>

<DD>
<P>These values define the location of the pixel to return.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="getpixels">GetPixels</a></h2>
<blockquote>GetPixels() returns the pixels associated with the last call to SetImagePixels ( ) or GetImagePixels ( ) . This is useful in order to access an already selected region without passing the geometry of the region. </blockquote><blockquote>The format of the GetPixels() method is: </blockquote><blockquote><A HREF="types.html#PixelPacket">PixelPacket</A> *GetPixels ( const <A HREF="types.html#Image">Image</A> image ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>pixels:</strong>

<DD>
<P><code>GetPixels()</code> returns the pixels associated with the last call to <code>SetImagePixels()</code> or GetImagePixels().</P>
</dd>
</li>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="modifycache">ModifyCache</a></h2>
<blockquote>ModifyCache() ensures that there is only a single reference to the pixel cache to be modified, updating the provided cache pointer to point to a clone of the original pixel cache if necessary. </blockquote><P>The format of the ModifyCache method is:</P>
<blockquote>MagickPassFail ModifyCache ( <A HREF="types.html#Image">Image</A> *image ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="opencacheview">OpenCacheView</a></h2>
<blockquote>OpenCacheView() opens a view into the pixel cache. </blockquote><P>The format of the OpenCacheView method is:</P>
<blockquote><A HREF="types.html#ViewInfo">ViewInfo</A> *OpenCacheView ( <A HREF="types.html#Image">Image</A> *image ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="readstream">ReadStream</a></h2>
<blockquote>ReadStream() makes the image pixels available to a user supplied callback method immediately upon reading a scanline with the ReadImage ( ) method. </blockquote><blockquote>The format of the ReadStream() method is: </blockquote><blockquote><A HREF="types.html#Image">Image</A> *ReadStream ( const <A HREF="types.html#ImageInfo">ImageInfo</A> *image_info, <A HREF="types.html#StreamHandler">StreamHandler</A> stream, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_image_info_3a">image_info:</a></strong>

<DD>
<P>The image info.</P>
</dd>
</li>
<dt><strong><a name="item_o_stream_3a">stream:</a></strong>

<DD>
<P>a callback method.</P>
</dd>
</li>
<dt><strong>exception:</strong>

<DD>
<P>Return any errors or warnings in this structure.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="referencecache">ReferenceCache</a></h2>
<blockquote>ReferenceCache() increments the reference count associated with the pixel cache returning a pointer to the cache. </blockquote><P>The format of the ReferenceCache method is:</P>
<blockquote><A HREF="types.html#Cache">Cache</A> ReferenceCache ( <A HREF="types.html#Cache">Cache</A> cache_info ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_cache_info_3a">cache_info:</a></strong>

<DD>
<P>The cache_info.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="setcacheview">SetCacheView</a></h2>
<blockquote>SetCacheView() 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. </blockquote><P>The format of the SetCacheView method is:</P>
<blockquote><A HREF="types.html#PixelPacket">PixelPacket</A> *SetCacheView ( <A HREF="types.html#ViewInfo">ViewInfo</A> *view, const long x, const long y, const unsigned long columns, const unsigned long rows ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>view:</strong>

<DD>
<P>The address of a structure of type ViewInfo.</P>
</dd>
</li>
<dt><strong>x,y,columns,rows:</strong>

<DD>
<P>These values define the perimeter of a region of pixels.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="setimagepixels">SetImagePixels</a></h2>
<blockquote>SetImagePixels() initializes a pixel region for write-only access. If the region is successfully intialized a pointer to a <A HREF="types.html#PixelPacket">PixelPacket</A> array representing the region is returned, otherwise NULL is returned. The returned pointer may point to a temporary working buffer for the pixels or it may point to the final location of the pixels in memory. </blockquote><blockquote>Write-only access means that any existing pixel values corresponding to the region are ignored. This is useful while the initial image is being created from scratch, or if the existing pixel values are to be completely replaced without need to refer to their pre-existing values. The application is free to read and write the pixel buffer returned by SetImagePixels() any way it pleases. SetImagePixels ( ) does not initialize the pixel array values. Initializing pixel array values is the application's responsibility. </blockquote><P>Performance is maximized if the selected area is part of one row, or one or more full rows, since then there is opportunity to access the pixels in-place (without a copy) if the image is in RAM, or in a memory-mapped file.  The returned pointer should *never* be deallocated by the user.</P>
<P>Pixels accessed via the returned pointer represent a simple array of type PixelPacket.  If the image storage class is PsudeoClass, call <code>GetIndexes()</code> after invoking <code>GetImagePixels()</code> to obtain the colormap indexes (of type IndexPacket) corresponding to the region.  Once the PixelPacket (and/or IndexPacket) array has been updated, the changes must be saved back to the underlying image using <code>SyncPixelCache()</code> or they may be lost.</P>
<blockquote>The format of the SetImagePixels() method is: </blockquote><blockquote><A HREF="types.html#PixelPacket">PixelPacket</A> *SetImagePixels ( <A HREF="types.html#Image">Image</A> *image, const long x, const long y, const unsigned long columns, const unsigned long rows ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>pixels:</strong>

<DD>
<P>SetImagePixels returns a pointer to the pixels if they are transferred, otherwise a NULL is returned.</P>
</dd>
</li>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
<dt><strong>x,y,columns,rows:</strong>

<DD>
<P>These values define the perimeter of a region of pixels.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="setimagevirtualpixelmethod">SetImageVirtualPixelMethod</a></h2>
<blockquote>SetImageVirtualPixelMethod() sets the "virtual pixels" method for the image. A virtual pixel is any pixel access that is outside the boundaries of the image cache. </blockquote><blockquote>The format of the SetImageVirtualPixelMethod() method is: </blockquote><blockquote>SetImageVirtualPixelMethod ( const <A HREF="types.html#Image">Image</A> *image, const <A HREF="types.html#VirtualPixelMethod">VirtualPixelMethod</A> method ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
<dt><strong><a name="item_o_type_3a">type:</a></strong>

<DD>
<P>choose from these access types:</P>
</dd>
</li>
</dl>
<pre>
      EdgeVPType:  the edge pixels of the image extend infinitely.
      Any pixel outside the image is assigned the same value as the
      pixel at the edge closest to it.
      TileVPType:  the image extends periodically or tiled.  The pixels
      wrap around the edges of the image.
      MirrorVPType:  mirror the image at the boundaries.
      ConstantVPType:  every value outside the image is a constant as
      defines by the pixel parameter.
=head2 SyncCacheView</pre>
<blockquote>SyncCacheView() saves the view pixels to the in-memory or disk cache. The method returns MagickPass if the pixel region is synced, otherwise MagickFail. </blockquote><P>The format of the SyncCacheView method is:</P>
<blockquote>MagickPassFail SyncCacheView ( <A HREF="types.html#ViewInfo">ViewInfo</A> *view ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>view:</strong>

<DD>
<P>The address of a structure of type ViewInfo.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="syncimagepixels">SyncImagePixels</a></h2>
<blockquote>SyncImagePixels() saves the image pixels to the in-memory or disk cache. The method returns MagickPass if the pixel region is synced, otherwise MagickFail. </blockquote><blockquote>The format of the SyncImagePixels() method is: </blockquote><blockquote>MagickPassFail SyncImagePixels ( <A HREF="types.html#Image">Image</A> *image ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>status:</strong>

<DD>
<P><code>SyncImagePixels()</code> returns MagickPass if the image pixels are transferred to the in-memory or disk cache otherwise MagickFail.</P>
</dd>
</li>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="writestream">WriteStream</a></h2>
<blockquote>WriteStream() makes the image pixels available to a user supplied callback method immediately upon writing pixel data with the WriteImage ( ) method. </blockquote><blockquote>The format of the WriteStream() method is: </blockquote><blockquote>MagickPassFail WriteStream ( const <A HREF="types.html#ImageInfo">ImageInfo</A> *image_info, <A HREF="types.html#Image">Image</A> *, <A HREF="types.html#StreamHandler">StreamHandler</A> stream ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image_info:</strong>

<DD>
<P>The image info.</P>
</dd>
</li>
<dt><strong>stream:</strong>

<DD>
<P>A callback method.</P>
</dd>
</dl>

</body>

</html>