2004-07-01 05:38:48 -04:00
|
|
|
#
|
|
|
|
# TkImg extension support
|
|
|
|
# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
|
|
|
|
#
|
|
|
|
|
|
|
|
require 'tk'
|
|
|
|
|
|
|
|
# call setup script for general 'tkextlib' libraries
|
|
|
|
require 'tkextlib/setup.rb'
|
|
|
|
|
|
|
|
# call setup script
|
2004-07-06 05:42:12 -04:00
|
|
|
require 'tkextlib/tkimg/setup.rb'
|
2004-07-01 05:38:48 -04:00
|
|
|
|
|
|
|
# load all image format handlers
|
|
|
|
#TkPackage.require('Img', '1.3')
|
|
|
|
TkPackage.require('Img')
|
|
|
|
|
2004-07-06 05:42:12 -04:00
|
|
|
module Tk
|
|
|
|
module Img
|
2005-05-30 10:53:52 -04:00
|
|
|
PACKAGE_NAME = 'Img'.freeze
|
|
|
|
def self.package_name
|
|
|
|
PACKAGE_NAME
|
|
|
|
end
|
|
|
|
|
2004-07-06 05:42:12 -04:00
|
|
|
def self.package_version
|
|
|
|
begin
|
2004-10-11 00:51:21 -04:00
|
|
|
TkPackage.require('Img')
|
2004-07-06 05:42:12 -04:00
|
|
|
rescue
|
2004-10-11 00:51:21 -04:00
|
|
|
''
|
2004-07-06 05:42:12 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2004-07-01 05:38:48 -04:00
|
|
|
# autoload
|
2004-07-06 05:42:12 -04:00
|
|
|
autoload :TkPixmapImage, 'tkextlib/tkimg/pixmap'
|