Issue Details (XML | Word | Printable)

Key: RMAGICK4J-9
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Serabe
Reporter: Serabe
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
rmagick4j

Draw#rotation doesn't affect annotate method

Created: 03/Jun/09 11:58 AM   Updated: 03/Jun/09 11:58 AM
Component/s: Magick4J, RMagick4j
Affects Version/s: 0.3.8, 0.3.7
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: None
Image Attachments:

1. i486-linux.png
(9 kB)

2. java.png
(2 kB)

Tags: rotation annotate draw rmagick4j magick4j


 Description  « Hide
Reported by Grzegorz Siehie?:

I've investigated the bug a little bit more, and I found that the problem is with the rotation method in Magick::Draw object.

example source:

require 'rubygems'
require 'RMagick'

canvas = Magick::ImageList.new
canvas.new_image(300, 300)
text = Magick::Draw.new
text.font_family = 'helvetica'
text.rotation = -90
text.pointsize = 52
text.gravity = Magick::CenterGravity
text.annotate(canvas, 0,0,-1.5,-1.5, RUBY_PLATFORM)
canvas.write("#{RUBY_PLATFORM}.png")

images generated:
Attached i486-linux.png
Attached java.png

executing the script (which is based on RMagick example form projects page) gives some warnings:

dfenzvps:~# jruby t.rb
/usr/local/jruby/lib/ruby/gems/1.8/gems/rmagick4j-0.3.7/lib/rmagick4j/draw.rb:6 warning: `&' interpreted as argument prefix
/usr/local/jruby/lib/ruby/gems/1.8/gems/rmagick4j-0.3.7/lib/rmagick4j/image.rb:323 warning: `&' interpreted as argument prefix



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.