I am making a simple image program. I installed the chunky_png gem to handle png images, but I have no idea how to draw in the window:
require 'chunky_png'
require 'tk'
town = ChunkyPNG::Image.from_file("town.png")
root = TkRoot.new
Tk.mainloop
What do I need to do to draw an image in the root window?
Have a look at the
tkdocument http://www.tutorialspoint.com/ruby/ruby_tk_fonts_colors_images.htmHere is an example of how to display image: