1# 2# tkextlib/bwidget/bitmap.rb 3# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) 4# 5require 'tk' 6require 'tk/image' 7require 'tkextlib/bwidget.rb' 8 9module Tk 10 module BWidget 11 class Bitmap < TkPhotoImage 12 end 13 end 14end 15 16class Tk::BWidget::Bitmap 17 def initialize(name) 18 @path = tk_call_without_enc('Bitmap::get', name) 19 Tk_IMGTBL[@path] = self 20 end 21end 22