| Class | Magick::Draw |
| In: |
lib/gruff/base.rb
|
| Parent: | Object |
Additional method to scale annotation text since Draw.scale doesn‘t.
# 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