Sha256: ad55a485970813b265092c8d7ed8f6e666cef64bfde39df4447e67a592bc1270
Contents?: true
Size: 454 Bytes
Versions: 6
Compression:
Stored size: 454 Bytes
Contents
require 'rrtf' DIR = File.dirname(__FILE__) rtf = RRTF::Document.new rtf.image(DIR+'/resources/images/redshirt.png', "width" => "2in", # can also set "height" "sizing_mode" => "FIX_ASPECT_RATIO", # can also be "ABSOLUTE" "border" => { "sides" => "ALL", "color" => '#ff0000', "line_type" => "DOT", "width" => "5pt", "spacing" => "12pt" } ) File.open(DIR+'/08.rtf', 'w') { |file| file.write(rtf.to_rtf) }
Version data entries
6 entries across 6 versions & 1 rubygems