Missing line when scaling 0.5 and setting stroke-antialias 0 #50

Open
bf4 opened this Issue Jul 24, 2014 · 0 comments

1 participant

@bf4
rmagick member

Issue by donv
Thursday Aug 01, 2013 at 10:24 GMT
Originally opened as #82


Hi!

Using rmagick (2.13.2) with ImageMagick 6.8.6 on OS X 10.8.4. Given the following example:

script = <<EOF
scale 0.5,0.5
stroke-antialias 0
line 63.2031,377.2 780,377.2
line 63.2031,335 780,335
line 63.2031,292.8 780,292.8
EOF
require 'rmagick'
d = Magick::Draw.new
script.each_line { |line| d.primitive line }
base_image = Magick::Image.new(400, 300)
d.draw(base_image)
base_image.write('three_lines.png')

I get the following image:

three_lines

I expect three lines to be drawn, but there are only two. Any idea why?

Any help is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment