doc/struct.html in rmagick-1.15.17 vs doc/struct.html in rmagick-2.0.0

- old
+ new

@@ -2,13 +2,13 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="generator" content= - "HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" /> + "HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" /> - <title>RMagick 1.15.17: Miscellaneous classes</title> + <title>RMagick 2.0.0: Miscellaneous classes</title> <meta http-equiv="Content-Type" content= "text/html; charset=us-ascii" /> <meta name="GENERATOR" content="Quanta Plus" /> <meta name="Copyright" content= "Copyright (C) 2006 by Timothy P. Hunter" /> @@ -25,11 +25,11 @@ /*]]>*/ </style> </head> <body> - <h6 id="header">RMagick 1.15.17 User's Guide and Reference</h6> + <h6 id="header">RMagick 2.0.0 User's Guide and Reference</h6> <div class="nav"> &laquo;&nbsp;<a href="draw.html">Prev</a> | <a href= "index.html">Contents</a> | <a href= "info.html">Next</a>&nbsp;&raquo; @@ -88,10 +88,11 @@ <h3><a href="#exception">Exception classes</a></h3> <ul> <li><a href="#MagickError">ImageMagickError</a></li> + <li><a href="#DestroyedImageError">DestroyedImageError</a></li> </ul> </div> <div class="subhd"> <h2 id="view">The Image::View class</h2> @@ -127,11 +128,11 @@ <h5>Description</h5> <p>The easiest way to use an <code>Image::View</code> object is to create it with the <a href= "image3.html#view">Image#view</a> method, which provides a - block-scoped view and automatic syncing. You probably won't + block-scoped view and automatic sync'ing. You probably won't want to create a view by calling <code>new</code>.</p> <h5>Arguments</h5> <dl> @@ -219,11 +220,11 @@ pixels = view[[3]][[1]] # Get all the pixels in the 4th row pixels = view[3][] # Use arrays to specify a non-contiguous set of rows and columns pixels = view[[1,3,5]][[2,4,6]] - # Use ranges to specify a contiguous set of rows and columns + # Use ranges to specify a contigous set of rows and columns pixels = view[1..5][2..6] </pre> </div> <div class="sig"> @@ -324,12 +325,12 @@ indexes.</p> <h5>Examples</h5> <pre> # Set the red channel of all the pixels in the 2nd - # row of the view to MaxRGB - view[1][].red = MaxRGB + # row of the view to QuantumRange + view[1][].red = QuantumRange # Set the green channel of the pixel at [20][30] to # half that of its left-hand neighbor. view[20][30].green = view[20][29].green * 0.5 </pre> </div> @@ -411,12 +412,12 @@ <div class="intro"> <h3>Introduction</h3> <p>The Geometry class contains the same information as an - &times;Magick <a href="imusage.html#geometry">geometry - string</a>. Geometry objects are interchangeable with geometry + ImageMagick <a href="imusage.html#geometry">geometry + string</a>. Geometry objects are interchangable with geometry strings.</p> </div> <h3>class Geometry <span class="superclass">&lt; Object</span></h3> @@ -576,19 +577,19 @@ <div class="intro"> <h3>Introduction</h3> <p>A pixel describes the smallest individually addressable - part of an image. In the RGB <a href= + part of an image. In the RBG <a href= "constants.html#ColorspaceType">colorspace</a>, a pixel's color is described by its intensity in the red, green, and blue channels. Its opacity is described by its intensity in the opacity (also called alpha, or matte) channel. In the CMYK colorspace a pixel's color is described by its intensity in the cyan, magenta, yellow and black (K) channels. Intensity is a value between 0 and <a href= - "constants.html#MaxRGB">MaxRGB</a>.</p> + "constants.html#QuantumRange">QuantumRange</a>.</p> <p>Usually, RMagick methods operate on entire images or on groups of pixels that have been selected by their position or color. Some methods, such as <a href= "image2.html#pixel_color">pixel_color</a> and <a href= @@ -613,11 +614,11 @@ <h5>Description</h5> <p>Constructs a pixel object from the specified red, green, blue, and opacity intensities. The intensity is a number between 0 and <a href= - "constants.html#Miscellaneous_constants">MaxRGB</a>.</p> + "constants.html#Miscellaneous_constants">QuantumRange</a>.</p> <h5>Attributes</h5> <dl> <dt>red, green, blue</dt> @@ -764,11 +765,11 @@ <p>Returns the intensity of the pixel. The intensity is computed as 0.299*R+0.587*G+0.114*B.</p> </div> <div class="sig"> - <h4 id="Pixel_to_color">to_color</h4> + <h4>to_color</h4> <p><span class="arg">pixel</span>.to_color(<span class= "arg">compliance</span>=AllCompliance, <span class= "arg">matte</span>=<code>false</code>, <span class= "arg">depth</span>=<code>QuantumDepth</code>) -&gt; @@ -801,12 +802,12 @@ ignored.</dd> <dt>depth</dt> <dd>An image depth. The default is the quantum depth used - when &times;Magick was compiled. The values 16 and 32 can - be used only when &times;Magick was compiled with the + when ImageMagick was compiled. The values 16 and 32 can + be used only when ImageMagick was compiled with the appropriate QuantumDepth.</dd> </dl> <h5>See also</h5> @@ -1247,25 +1248,21 @@ "superclass">&lt; StandardError</span></h3> <div class="desc"> <h4>Description</h4> - <p>When an &times;Magick function returns an error condition, - RMagick raises an <code>ImageMagickError</code> + <p>When an ImageMagick function returns an error condition, + RMagick raises this exception.</p> - - <h4>Attributes</h4> - - <dl> - <dt>magick_location</dt> - - <dd>With GraphicsMagick 1.1, this attribute contains a - string that indicates the source file (module), function - and line number in which GraphicsMagick raised the error. - The string is in the form <tt>&lt;function&gt; at - &lt;module&gt;:&lt;line&gt;</tt>. (Get-only.)</dd> - </dl> </div> + + <h3 id="DestroyedImageError">class DestroyedImageError + <span class="superclass">&lt; StandardError</span></h3> + <div class="desc"> + <h4>Description</h4> + <p>When any Image method (except <a href="image1.html#destroyed_q">destroyed?</a> and <a href="image2.html#inspect">inspect</a>) is +called after an image has been <a href="image1.html#destroy_bang">destroyed</a>, RMagick raises this +exception.</p> </div> <p class="spacer">&nbsp;</p> <div class="nav">