Parent

Magick::Draw

Public Instance Methods

annotate_scaled(img, width, height, x, y, text, scale) click to toggle source

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

      # File lib/gruff/base.rb, line 1111
1111:     def annotate_scaled(img, width, height, x, y, text, scale)
1112:       scaled_width = (width * scale) >= 1 ? (width * scale) : 1
1113:       scaled_height = (height * scale) >= 1 ? (height * scale) : 1
1114: 
1115:       self.annotate( img,
1116:                      scaled_width, scaled_height,
1117:                      x * scale, y * scale,
1118:                      text)
1119:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.