Skip to content

Commit

Permalink
Update image (#26)
Browse files Browse the repository at this point in the history
* Update sample code

* Update images
  • Loading branch information
Watson1978 authored May 10, 2024
1 parent c5f8ca9 commit 3b47651
Show file tree
Hide file tree
Showing 291 changed files with 278 additions and 199 deletions.
2 changes: 1 addition & 1 deletion arc.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ <h1>arc.rb</h1>
# Annotate
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.stroke('transparent')
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')

# xMagick recognizes the braces as delimiters.
gc.gravity(Magick::NorthWestGravity)
Expand Down
1 change: 1 addition & 0 deletions bounding_box.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ <h1>bounding_box.rb</h1>
gc.circle(bb.x + bb.width, bb.y + bb.height, bb.x + bb.width + 2, bb.y + bb.height + 2)

gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
Expand Down
1 change: 1 addition & 0 deletions cbezier1.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h1>cbezier1.rb</h1>
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.text(27, 120, "'20,120'")
gc.text(27, 20, "'20,20'")
Expand Down
1 change: 1 addition & 0 deletions cbezier2.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h1>cbezier2.rb</h1>
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.text(34, 125, "'25,125'")
gc.text(107, 25, "'100,25'")
Expand Down
1 change: 1 addition & 0 deletions cbezier3.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h1>cbezier3.rb</h1>
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.text(107, 150, "'100,150'")
gc.text(30, 50, "'25,50'")
Expand Down
1 change: 1 addition & 0 deletions cbezier4.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h1>cbezier4.rb</h1>
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.text(29, 180, "'20,180'")
gc.text(29, 33, "'20,30'")
Expand Down
1 change: 1 addition & 0 deletions cbezier5.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h1>cbezier5.rb</h1>
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.text(29, 120, "'20,120'")
gc.text(104, 20, "'95,20'")
Expand Down
1 change: 1 addition & 0 deletions cbezier6.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ <h1>cbezier6.rb</h1>
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.text(30, 170, "'50,150'")
gc.text(30, 40, "'50,50'")
Expand Down
1 change: 1 addition & 0 deletions circle.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ <h1>circle.rb</h1>
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.text(132, 125, "'125,125'")
gc.text(32, 125, "'25,125'")
Expand Down
Binary file modified ex/adaptive_threshold.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/add_noise_GaussianNoise.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/add_noise_ImpulseNoise.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/add_noise_LaplacianNoise.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/add_noise_MultiplicativeGaussianNoise.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/add_noise_PoissonNoise.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/add_noise_UniformNoise.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/affine.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/affine_transform.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/arc.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/arcpath.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/arcs01.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/arcs02.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/average_after.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/average_before.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/axes.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/baseline_shift01.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/bilevel_channel.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/blur_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/border.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/bounding_box.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/cbezier1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/cbezier2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/cbezier3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/cbezier4.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ex/cbezier5.gif
Binary file modified ex/cbezier6.gif
Binary file modified ex/channel.jpg
Binary file removed ex/channel_threshold_after.jpg
Diff not rendered.
Binary file removed ex/channel_threshold_before.jpg
Diff not rendered.
Binary file modified ex/charcoal.jpg
Binary file modified ex/chop_after.jpg
Binary file modified ex/chop_before.jpg
Binary file modified ex/circle.gif
Binary file modified ex/circle01.gif
Binary file modified ex/clip_path.gif
Binary file modified ex/coalesce.gif
Binary file modified ex/coalesce_anim.gif
Binary file modified ex/color_fill_to_border_after.gif
Binary file modified ex/color_fill_to_border_before.gif
Binary file modified ex/color_floodfill_after.gif
Binary file modified ex/color_floodfill_before.gif
Binary file modified ex/color_histogram.gif
Binary file modified ex/color_reset.gif
Binary file modified ex/colorize.jpg
Binary file modified ex/colors.gif
Binary file modified ex/colors.miff
Binary file not shown.
Binary file modified ex/compose_mask.gif
Binary file modified ex/compose_mask_example.jpg
Binary file modified ex/compose_mask_source.gif
Binary file modified ex/composite.gif
Binary file modified ex/composite_layers.gif
Binary file modified ex/composite_layers1.gif
Binary file modified ex/composite_tiled.jpg
Binary file removed ex/constitute.jpg
Diff not rendered.
Binary file modified ex/contrast.jpg
Binary file removed ex/crop_after.jpg
Diff not rendered.
Binary file modified ex/crop_after.png
Binary file removed ex/crop_before.jpg
Diff not rendered.
Binary file modified ex/crop_before.png
Binary file removed ex/crop_resized.jpg
Diff not rendered.
Binary file removed ex/crop_with_gravity.miff
Binary file not shown.
Binary file added ex/crop_with_gravity.png
Binary file modified ex/cubic01.gif
Binary file modified ex/cubic02.gif
Binary file modified ex/cycle_colormap.gif
Binary file modified ex/dissolve.jpg
Binary file modified ex/drop_shadow.gif
Binary file modified ex/edge.jpg
Binary file modified ex/ellipse.gif
Binary file modified ex/ellipse01.gif
Binary file modified ex/emboss.jpg
Binary file modified ex/enhance.jpg
Binary file modified ex/equalize.jpg
Binary file modified ex/evenodd.gif
Binary file modified ex/fill_pattern.gif
Binary file modified ex/flatten_images.gif
Binary file modified ex/flip.jpg
Binary file modified ex/flop.jpg
Binary file modified ex/font_styles.gif
Binary file modified ex/frame.jpg
Binary file modified ex/gaussian_blur.jpg
Binary file modified ex/get_multiline_type_metrics.gif
Binary file modified ex/get_pixels.jpg
Binary file modified ex/get_type_metrics.gif
Binary file modified ex/gradientfill.gif
Binary file modified ex/grav.gif
Binary file modified ex/group.gif
Binary file modified ex/hatchfill.gif
Binary file modified ex/image.gif
Binary file added ex/images/Coffee.png
Binary file removed ex/images/Coffee.wmf
Binary file not shown.
Binary file added ex/images/No.png
Binary file removed ex/images/No.wmf
Binary file not shown.
Binary file added ex/images/Snake.png
Binary file removed ex/images/Snake.wmf
Binary file not shown.
Binary file removed ex/images/graydient210x6.gif
Diff not rendered.
Binary file added ex/images/image_with_profile.jpg
Empty file modified ex/images/logo400x83.gif
100644 → 100755
Binary file removed ex/images/small.tif
Binary file not shown.
Binary file modified ex/implode.gif
Binary file modified ex/initial_coords.gif
Binary file modified ex/level.jpg
Binary file removed ex/level_channel.jpg
Diff not rendered.
Binary file modified ex/level_colors.jpg
Binary file modified ex/line.gif
Binary file modified ex/line01.gif
Binary file removed ex/map_after.jpg
Diff not rendered.
Binary file removed ex/map_before.jpg
Diff not rendered.
Binary file removed ex/map_f.jpg
Diff not rendered.
Binary file modified ex/mask.jpg
Binary file modified ex/matte_fill_to_border_after.gif
Binary file modified ex/matte_fill_to_border_before.gif
Binary file modified ex/matte_floodfill_after.gif
Binary file modified ex/matte_floodfill_before.gif
Binary file modified ex/matte_replace_after.gif
Binary file modified ex/matte_replace_before.gif
Binary file modified ex/median_filter.jpg
Binary file modified ex/modulate.jpg
Binary file modified ex/mono.jpg
Binary file modified ex/morph.gif
Binary file modified ex/mosaic.gif
Binary file modified ex/motion_blur.jpg
Binary file modified ex/negate.jpg
Binary file modified ex/negate_channel.jpg
Binary file modified ex/nested_rvg.gif
Binary file modified ex/new_coord_sys.gif
Binary file modified ex/nonzero.gif
Binary file modified ex/normalize.jpg
Binary file modified ex/oil_paint.jpg
Binary file removed ex/opacity.gif
Diff not rendered.
Binary file modified ex/opacity.png
Binary file removed ex/opaque.jpg
Diff not rendered.
Binary file modified ex/ordered_dither.jpg
Binary file modified ex/orig_coord_sys.gif
Binary file modified ex/path.gif
Binary file modified ex/pattern1.gif
Binary file modified ex/pattern2.gif
Binary file modified ex/polaroid.jpg
Binary file modified ex/polygon.gif
Binary file modified ex/polygon01.gif
Binary file modified ex/polyline.gif
Binary file modified ex/polyline01.gif
Binary file modified ex/posterize.jpg
Binary file modified ex/preserve_aspect_ratio.gif
Binary file removed ex/preview.jpg
Diff not rendered.
Binary file added ex/preview_AddNoisePreview.jpg
Binary file added ex/preview_BlurPreview.jpg
Binary file added ex/preview_BrightnessPreview.jpg
Binary file added ex/preview_CharcoalDrawingPreview.jpg
Binary file added ex/preview_DespecklePreview.jpg
Binary file added ex/preview_DullPreview.jpg
Binary file added ex/preview_EdgeDetectPreview.jpg
Binary file added ex/preview_GammaPreview.jpg
Binary file added ex/preview_GrayscalePreview.jpg
Binary file added ex/preview_HuePreview.jpg
Binary file added ex/preview_ImplodePreview.jpg
Binary file added ex/preview_JPEGPreview.jpg
Binary file added ex/preview_OilPaintPreview.jpg
Binary file added ex/preview_QuantizePreview.jpg
Binary file added ex/preview_RaisePreview.jpg
Binary file added ex/preview_ReduceNoisePreview.jpg
Binary file added ex/preview_RollPreview.jpg
Binary file added ex/preview_RotatePreview.jpg
Binary file added ex/preview_SaturationPreview.jpg
Binary file added ex/preview_SegmentPreview.jpg
Binary file added ex/preview_ShadePreview.jpg
Binary file added ex/preview_SharpenPreview.jpg
Binary file added ex/preview_ShearPreview.jpg
Binary file added ex/preview_SolarizePreview.jpg
Binary file added ex/preview_SpiffPreview.jpg
Binary file added ex/preview_SpreadPreview.jpg
Binary file added ex/preview_SwirlPreview.jpg
Binary file added ex/preview_ThresholdPreview.jpg
Binary file added ex/preview_UndefinedPreview.jpg
Binary file added ex/preview_WavePreview.jpg
Binary file modified ex/qbezierpath.gif
Binary file modified ex/quad01.gif
Binary file modified ex/quantize_m_after.jpg
Binary file modified ex/quantize_m_before.jpg
Binary file modified ex/radial_blur.jpg
Binary file modified ex/raise.jpg
Binary file removed ex/random_channel_threshold.jpg
Diff not rendered.
Binary file modified ex/random_threshold_channel.jpg
Binary file modified ex/rect01.gif
Binary file modified ex/rect02.gif
Binary file modified ex/rectangle.gif
Binary file modified ex/reduce_noise.jpg
Binary file modified ex/remap.jpg
Binary file modified ex/remap_images.jpg
Binary file modified ex/resize_to_fill.jpg
Binary file modified ex/resize_to_fit.jpg
Binary file removed ex/rm_demo_out.miff
Binary file not shown.
Binary file added ex/rm_demo_out.png
441 changes: 251 additions & 190 deletions ex/rm_gravity_out.miff

Large diffs are not rendered by default.

Binary file modified ex/roll.jpg
Binary file modified ex/rotate.gif
Binary file modified ex/rotate_f.jpg
Binary file modified ex/rotate_scale.gif
Binary file modified ex/roundrect.gif
Binary file modified ex/rubyname.gif
Binary file modified ex/rvg_clippath.gif
Binary file modified ex/rvg_linecap.gif
Binary file modified ex/rvg_linejoin.gif
Binary file modified ex/rvg_stroke_dasharray.gif
Binary file modified ex/segment.jpg
Binary file modified ex/sepiatone.jpg
Binary file modified ex/shade.jpg
Binary file removed ex/shadow_after.gif
Diff not rendered.
Binary file added ex/shadow_after.png
Binary file removed ex/shadow_before.gif
Diff not rendered.
Binary file added ex/shadow_before.png
Binary file modified ex/shave.jpg
Binary file modified ex/shear.jpg
Binary file modified ex/sketch.jpg
Binary file modified ex/skew.gif
Binary file modified ex/skewx.gif
Binary file modified ex/skewy.gif
Binary file modified ex/smile.gif
Binary file modified ex/solarize.jpg
Binary file modified ex/solidfill.gif
Binary file added ex/sparse_color-0.png
Binary file added ex/sparse_color-1.png
Binary file removed ex/sparse_color.png
Diff not rendered.
Binary file modified ex/splice.jpg
Binary file modified ex/spread.jpg
Binary file modified ex/stroke_dasharray.gif
Binary file modified ex/stroke_fill.gif
Binary file modified ex/stroke_linecap.gif
Binary file modified ex/stroke_linejoin.gif
Binary file modified ex/stroke_width.gif
Binary file modified ex/swirl.gif
Binary file modified ex/text.gif
Binary file modified ex/text01.gif
Binary file modified ex/text_align.gif
Binary file modified ex/text_antialias.gif
Binary file modified ex/text_styles.gif
Binary file modified ex/text_undercolor.gif
Binary file modified ex/texture_fill_to_border_after.gif
Binary file modified ex/texture_fill_to_border_before.gif
Binary file modified ex/texture_floodfill_after.gif
Binary file modified ex/texture_floodfill_before.gif
Binary file modified ex/texturefill.gif
Binary file modified ex/threshold.jpg
Binary file modified ex/to_blob.gif
Binary file modified ex/translate.gif
Binary file modified ex/transparent_after.gif
Binary file modified ex/transparent_before.gif
Binary file modified ex/transpose.jpg
Binary file modified ex/transverse.jpg
Binary file modified ex/tref01.gif
Binary file modified ex/triangle01.gif
Binary file modified ex/trim_after.jpg
Binary file modified ex/trim_before.jpg
Binary file modified ex/tspan01.gif
Binary file modified ex/tspan02.gif
Binary file modified ex/tspan03.gif
Binary file modified ex/unsharp_mask.jpg
Binary file modified ex/use01.gif
Binary file modified ex/use02.gif
Binary file modified ex/use03.gif
Binary file modified ex/view_box_150x200.gif
Binary file modified ex/view_box_300x200.gif
Binary file modified ex/viewex.gif
Binary file modified ex/vignette.jpg
Binary file modified ex/watermark.jpg
Binary file modified ex/wave.jpg
Binary file modified ex/wet_floor.gif
Binary file modified ex/writing_mode01.gif
Binary file modified ex/writing_mode02.gif
3 changes: 2 additions & 1 deletion grav.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ <h1>grav.rb</h1>
# Draw text at all 9 compass points.
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.stroke('transparent')
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.gravity(Magick::NorthWestGravity)
gc.text(20, 20, 'NorthWestGravity')
gc.gravity(Magick::NorthGravity)
Expand Down
8 changes: 4 additions & 4 deletions image3.html
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ <h4>Example</h4>
<p>This half-size preview demonstrates the SolarizePreview argument.</p>

<p>
<a href="javascript:popup('preview.rb.html')"><img src="ex/preview.jpg" alt="preview example" title="Click to see the example script" /></a>
<a href="javascript:popup('preview.rb.html')"><img src="ex/preview_SolarizePreview.jpg" alt="preview example" title="Click to see the example script" /></a>
</p>

<h4>Magick API</h4>
Expand Down Expand Up @@ -2211,15 +2211,15 @@ <h4>Example</h4>
style="padding: 8px; display: none"
id="shadowless"
onmouseout="this.style.display='none';shadowed.style.display='';"
src="ex/shadow_before.gif"
src="ex/shadow_before.png"
alt="shadow example"
title="Click to see the example script" /><!--
This img tag displays the shadowed image when the mouse is not over
--><img
class="hide"
id="shadowed"
onmouseover="this.style.display='none';shadowless.style.display='';"
src="ex/shadow_after.gif"
src="ex/shadow_after.png"
alt="shadow example"
/></a>
<img src="ex/images/spin.gif" alt="" style="margin-bottom: 120px" title="Mouse over the example to see the original image" />
Expand Down Expand Up @@ -2710,7 +2710,7 @@ <h4>Example</h4>

<p>
<a href="javascript:popup('sparse_color.rb.html')"
><img src="ex/sparse_color.png" title="Click to see the example script" alt="sparse_color example"
><img src="ex/sparse_color-0.png" title="Click to see the example script" alt="sparse_color example"
/></a>
</p>

Expand Down
1 change: 1 addition & 0 deletions line.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ <h1>line.rb</h1>
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.text(30, 40, "'50,50'")
gc.text(30, 220, "'50,200'")
Expand Down
3 changes: 2 additions & 1 deletion opacity.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ <h1>opacity.rb</h1>

gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.stroke('transparent')
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.gravity(Magick::SouthGravity)
gc.text(-90, 15, '"25%"')
gc.text(-30, 15, '"50%"')
Expand Down
3 changes: 2 additions & 1 deletion path.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ <h1>path.rb</h1>
# Add labels
gc.font_weight Magick::NormalWeight
gc.font_style Magick::NormalStyle
gc.stroke 'none' # unset stroke color
gc.fill 'black'
gc.fill_opacity 1
gc.stroke 'none' # unset stroke color

# Add end point labels
gc.text 30, 125, "'20,120'"
Expand Down
2 changes: 1 addition & 1 deletion posterize.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1>posterize.rb</h1>
require 'rmagick'

img = Magick::Image.read('images/Flower_Hat.jpg').first
result = img.posterize
result = img.posterize(2)
result.write('posterize.jpg')
exit
</pre>
Expand Down
1 change: 1 addition & 0 deletions rectangle.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ <h1>rectangle.rb</h1>
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.text(30, 35, "'20,20'")
gc.text(230, 175, "'280,180'")
Expand Down
1 change: 1 addition & 0 deletions roundrect.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ <h1>roundrect.rb</h1>
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.text(30, 35, "'20,20'")
gc.text(230, 175, "'280,180'")
Expand Down
1 change: 1 addition & 0 deletions stroke_dasharray.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ <h1>stroke_dasharray.rb</h1>
gc.line(10, 140, 490, 140)

gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
Expand Down
1 change: 1 addition & 0 deletions stroke_linecap.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ <h1>stroke_linecap.rb</h1>

# Annotate
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.pointsize(14)
gc.font_weight(Magick::BoldWeight)
Expand Down
1 change: 1 addition & 0 deletions stroke_linejoin.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ <h1>stroke_linejoin.rb</h1>

# Annotate
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.pointsize(14)
gc.font_weight(Magick::BoldWeight)
Expand Down
1 change: 1 addition & 0 deletions stroke_width.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ <h1>stroke_width.rb</h1>
gc.font_weight(Magick::NormalWeight)
gc.font_style(Magick::NormalStyle)
gc.fill('black')
gc.fill_opacity(1)
gc.stroke('transparent')
gc.text(60, 70, "'5'")
gc.text(180, 70, "'10'")
Expand Down

0 comments on commit 3b47651

Please sign in to comment.