Method: ResizableImage#initialize
- Defined in:
- lib/vimamsa/gui_image.rb
#initialize(fpath, view) ⇒ ResizableImage
Returns a new instance of ResizableImage.
6 7 8 9 10 11 12 13 14 |
# File 'lib/vimamsa/gui_image.rb', line 6 def initialize(fpath, view) @fpath = fpath @pixbuf = GdkPixbuf::Pixbuf.new(:file => fpath) @oldimg = @pixbuf @draw_image = @pixbuf @view = view super() end |