Skip to content

Commit deab8bf

Browse files
authored
Add missing methods (#12)
1 parent 9606954 commit deab8bf

File tree

2 files changed

+73
-25
lines changed

2 files changed

+73
-25
lines changed

draw.html

Lines changed: 63 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ <h3>instance methods</h3>
4242
<li><a href="#annotate">annotate</a></li>
4343

4444
<li><a href="#clone">clone</a></li>
45+
46+
<li><a href="#composite">composite</a></li>
4547
</ul>
4648
</div>
4749

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

5254
<li><a href="#dup">dup</a></li>
53-
</ul>
54-
</div>
5555

56-
<div class="toccol">
57-
<ul>
5856
<li>
5957
<a href="#get_multiline_type_metrics">get_multiline_type_metrics</a>
6058
</li>
59+
</ul>
60+
</div>
6161

62+
<div class="toccol">
63+
<ul>
6264
<li><a href="#get_type_metrics">get_type_metrics</a></li>
6365

6466
<li><a href="#inspect">inspect</a></li>
67+
68+
<li><a href="#primitive">primitive</a></li>
6569
</ul>
6670
</div>
6771

@@ -557,6 +561,38 @@ <h4>Returns</h4>
557561
<p>A new Draw object.</p>
558562
</div>
559563

564+
<div class="sig">
565+
<h3 id="composite">composite</h3>
566+
567+
<p>
568+
<span class="arg">draw</span>.composite(<span class="arg">x</span>, <span class="arg">y</span>, <span class="arg">width</span>,
569+
<span class="arg">height</span>, <span class="arg">image</span>, [<span class="arg">operator</span>]) -&gt; <em>self</em>
570+
</p>
571+
</div>
572+
573+
<div class="desc">
574+
<h4>Description</h4>
575+
576+
<p>This method draw the image using <a href="constants.html#CompositeOperator">CompositeOperator</a>.</p>
577+
578+
<h4>Arguments</h4>
579+
<dl>
580+
<dt>x</dt>
581+
<dt>y</dt>
582+
<dt>width</dt>
583+
<dt>height</dt>
584+
<dt>image</dt>
585+
<dd>Either an imagelist or a image. If an imagelist, draws on the current image.</dd>
586+
587+
<dt>operator</dt>
588+
<dd>Specify one of <a href="constants.html#CompositeOperator">CompositeOperator</a> enum.</dd>
589+
</dl>
590+
591+
<h4>Returns</h4>
592+
593+
<p>self</p>
594+
</div>
595+
560596
<div class="sig">
561597
<h3 id="draw">draw</h3>
562598

@@ -785,6 +821,29 @@ <h4>Example</h4>
785821
>
786822
</div>
787823

824+
<div class="sig">
825+
<h3 id="primitive">primitive</h3>
826+
827+
<p><span class="arg">draw</span>.primitive(<span class="arg">primitive</span>) -&gt; <em>self</em></p>
828+
</div>
829+
830+
<div class="desc">
831+
<h4>Description</h4>
832+
833+
<p>Add a drawing primitive to the list of primitives in the Draw object.</p>
834+
835+
<h4>Arguments</h4>
836+
837+
<dl>
838+
<dt>primitive</dt>
839+
<dd>String that it is a drawing primitive to add.</dd>
840+
</dl>
841+
842+
<h4>Returns</h4>
843+
844+
<p>self</p>
845+
</div>
846+
788847
<h2 class="methods">drawing primitive methods</h2>
789848

790849
<div class="sig">

info.html

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ <h3>attribute methods</h3>
121121

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

124-
<li><a href="#monitor">monitor</a></li>
125-
126124
<li><a href="#monochrome">monochrome</a></li>
127125

126+
<li><a href="#number_scenes">number_scenes</a></li>
127+
128128
<li><a href="#orientation">orientation</a></li>
129129

130130
<li><a href="#origin">origin</a></li>
@@ -1062,42 +1062,31 @@ <h4>Arguments</h4>
10621062
</div>
10631063

10641064
<div class="sig">
1065-
<h3 id="monitor">monitor</h3>
1065+
<h3 id="monochrome">monochrome</h3>
10661066

1067-
<p><span class="arg">self.</span>monitor= <span class="arg">proc</span></p>
1067+
<p>
1068+
<span class="arg">self.</span>monochrome= <span class="arg"><code>true</code></span> or
1069+
<span class="arg"><code>false</code></span>
1070+
</p>
10681071
</div>
10691072

10701073
<div class="desc">
10711074
<h4>Description</h4>
10721075

1073-
<p>
1074-
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
1075-
<code>read</code> and <code>write</code>. To stop monitoring, set the monitor to <code>nil</code>. See
1076-
<a href="imageattrs.html#monitor">Image#monitor</a> for more information about the proc. This attribute is set-only.
1077-
</p>
1078-
1079-
<p>
1080-
If you assign a monitor to an image with
1081-
<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
1082-
as well.
1083-
</p>
1084-
1085-
<p>This method supercedes the <code>Magick.set_monitor</code> method.</p>
10861076
</div>
10871077

10881078
<div class="sig">
1089-
<h3 id="monochrome">monochrome</h3>
1079+
<h3 id="number_scenes">number_scenes</h3>
10901080

10911081
<p>
1092-
<span class="arg">self.</span>monochrome= <span class="arg"><code>true</code></span> or
1093-
<span class="arg"><code>false</code></span>
1082+
<span class="arg">self.</span>number_scenes= <span class="arg"><code>integer</code></span></span>
10941083
</p>
10951084
</div>
10961085

10971086
<div class="desc">
10981087
<h4>Description</h4>
10991088

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

11031092
<div class="sig">

0 commit comments

Comments
 (0)