Skip to content

Commit

Permalink
Add missing methods (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 authored Nov 19, 2023
1 parent 9606954 commit deab8bf
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 25 deletions.
67 changes: 63 additions & 4 deletions draw.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ <h3>instance methods</h3>
<li><a href="#annotate">annotate</a></li>

<li><a href="#clone">clone</a></li>

<li><a href="#composite">composite</a></li>
</ul>
</div>

Expand All @@ -50,18 +52,20 @@ <h3>instance methods</h3>
<li><a href="#draw">draw</a></li>

<li><a href="#dup">dup</a></li>
</ul>
</div>

<div class="toccol">
<ul>
<li>
<a href="#get_multiline_type_metrics">get_multiline_type_metrics</a>
</li>
</ul>
</div>

<div class="toccol">
<ul>
<li><a href="#get_type_metrics">get_type_metrics</a></li>

<li><a href="#inspect">inspect</a></li>

<li><a href="#primitive">primitive</a></li>
</ul>
</div>

Expand Down Expand Up @@ -557,6 +561,38 @@ <h4>Returns</h4>
<p>A new Draw object.</p>
</div>

<div class="sig">
<h3 id="composite">composite</h3>

<p>
<span class="arg">draw</span>.composite(<span class="arg">x</span>, <span class="arg">y</span>, <span class="arg">width</span>,
<span class="arg">height</span>, <span class="arg">image</span>, [<span class="arg">operator</span>]) -&gt; <em>self</em>
</p>
</div>

<div class="desc">
<h4>Description</h4>

<p>This method draw the image using <a href="constants.html#CompositeOperator">CompositeOperator</a>.</p>

<h4>Arguments</h4>
<dl>
<dt>x</dt>
<dt>y</dt>
<dt>width</dt>
<dt>height</dt>
<dt>image</dt>
<dd>Either an imagelist or a image. If an imagelist, draws on the current image.</dd>

<dt>operator</dt>
<dd>Specify one of <a href="constants.html#CompositeOperator">CompositeOperator</a> enum.</dd>
</dl>

<h4>Returns</h4>

<p>self</p>
</div>

<div class="sig">
<h3 id="draw">draw</h3>

Expand Down Expand Up @@ -785,6 +821,29 @@ <h4>Example</h4>
>
</div>

<div class="sig">
<h3 id="primitive">primitive</h3>

<p><span class="arg">draw</span>.primitive(<span class="arg">primitive</span>) -&gt; <em>self</em></p>
</div>

<div class="desc">
<h4>Description</h4>

<p>Add a drawing primitive to the list of primitives in the Draw object.</p>

<h4>Arguments</h4>

<dl>
<dt>primitive</dt>
<dd>String that it is a drawing primitive to add.</dd>
</dl>

<h4>Returns</h4>

<p>self</p>
</div>

<h2 class="methods">drawing primitive methods</h2>

<div class="sig">
Expand Down
31 changes: 10 additions & 21 deletions info.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ <h3>attribute methods</h3>

<li><a href="#matte_color">matte_color</a></li>

<li><a href="#monitor">monitor</a></li>

<li><a href="#monochrome">monochrome</a></li>

<li><a href="#number_scenes">number_scenes</a></li>

<li><a href="#orientation">orientation</a></li>

<li><a href="#origin">origin</a></li>
Expand Down Expand Up @@ -1062,42 +1062,31 @@ <h4>Arguments</h4>
</div>

<div class="sig">
<h3 id="monitor">monitor</h3>
<h3 id="monochrome">monochrome</h3>

<p><span class="arg">self.</span>monitor= <span class="arg">proc</span></p>
<p>
<span class="arg">self.</span>monochrome= <span class="arg"><code>true</code></span> or
<span class="arg"><code>false</code></span>
</p>
</div>

<div class="desc">
<h4>Description</h4>

<p>
Set a <code>Proc</code> object as a progress monitor. This proc can be used to monitor the progress of methods that accept optional arguments such as
<code>read</code> and <code>write</code>. To stop monitoring, set the monitor to <code>nil</code>. See
<a href="imageattrs.html#monitor">Image#monitor</a> for more information about the proc. This attribute is set-only.
</p>

<p>
If you assign a monitor to an image with
<code>options.monitor=</code> when the image is created, the image object inherits the monitor. Any methods applied to the new image will be monitored
as well.
</p>

<p>This method supercedes the <code>Magick.set_monitor</code> method.</p>
</div>

<div class="sig">
<h3 id="monochrome">monochrome</h3>
<h3 id="number_scenes">number_scenes</h3>

<p>
<span class="arg">self.</span>monochrome= <span class="arg"><code>true</code></span> or
<span class="arg"><code>false</code></span>
<span class="arg">self.</span>number_scenes= <span class="arg"><code>integer</code></span></span>
</p>
</div>

<div class="desc">
<h4>Description</h4>

<p>Transform the image to black and white on input. Only the EPT, PDF, and PS formats respect this attribute.</p>
<p>Set the scene number of an image or the first image in a sequence.</p>
</div>

<div class="sig">
Expand Down

0 comments on commit deab8bf

Please sign in to comment.