Class Magick::Draw
In: lib/gruff/base.rb
Parent: Object
Draw lib/gruff/base.rb Magick dot/m_4_1.png

Methods

Public Instance methods

Additional method to scale annotation text since Draw.scale doesn‘t.

[Source]

      # File lib/gruff/base.rb, line 1057
1057:     def annotate_scaled(img, width, height, x, y, text, scale)
1058:       scaled_width = (width * scale) >= 1 ? (width * scale) : 1
1059:       scaled_height = (height * scale) >= 1 ? (height * scale) : 1
1060: 
1061:       self.annotate( img,
1062:                       scaled_width, scaled_height,
1063:                       x * scale, y * scale,
1064:                       text)
1065:     end

[Validate]