require 'cairo'
format = Cairo::FORMAT_ARGB32
 width = 300
 height = 200
 radius = height / 3 # 半径

 surface = Cairo::ImageSurface.new(format, width, height)
 context = Cairo::Context.new(surface)
 context.set_source_rgb(1, 1, 1) # 白
 context.fill
 context.set_source_rgb(1, 0, 0) # 赤
 context.set_line_width(2)
 context.move_to(0,0 )
 context.line_to(100, 200)
 context.stroke
 context.fill
 
 surface.write_to_png("strokelineA l9.png")
