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 1100
1100:     def annotate_scaled(img, width, height, x, y, text, scale)
1101:       scaled_width = (width * scale) >= 1 ? (width * scale) : 1
1102:       scaled_height = (height * scale) >= 1 ? (height * scale) : 1
1103: 
1104:       self.annotate( img,
1105:       scaled_width, scaled_height,
1106:       x * scale, y * scale,
1107:       text)
1108:     end

[Validate]