lib/gruff/base.rb
# Use with a theme to use an image (800x600 original) background.
Use with a theme to use an image (800x600 original) background.
Use with a theme to use an image ( 800x600 original ) background .
def render_image_background(image_path)
      image = Image.read(image_path)
      if @scale != 1.0
        image[0].resize!(@scale) 
      end
      image[0]
    end
def render_image_background ( image_path ) image = Image . read ( image_path ) if @scale != 1.0 image [ 0 ] . resize! ( @scale ) end image [ 0 ] end
Use with a theme to use an image (800x600 original) background.
Use with a theme to use an image ( 800x600 original ) background .
# TODO Resize with new scale (crop if necessary for wide graph)
image_path
<not_specific>