From fcbf63e62c627deae76c1b8cb8c0876c536ed811 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 16 Mar 2020 18:49:26 +0900 Subject: Fresh start --- jni/ruby/ext/tk/lib/tkextlib/tkimg/README | 26 ++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/bmp.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/dted.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/gif.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/ico.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/jpeg.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/pcx.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/pixmap.rb | 44 ++++++++++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/png.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/ppm.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/ps.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/raw.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/setup.rb | 8 +++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/sgi.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/sun.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/tga.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/tiff.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/window.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/xbm.rb | 33 +++++++++++++++++++++ jni/ruby/ext/tk/lib/tkextlib/tkimg/xpm.rb | 33 +++++++++++++++++++++ 20 files changed, 639 insertions(+) create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/README create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/bmp.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/dted.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/gif.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/ico.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/jpeg.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/pcx.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/pixmap.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/png.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/ppm.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/ps.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/raw.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/setup.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/sgi.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/sun.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/tga.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/tiff.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/window.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/xbm.rb create mode 100644 jni/ruby/ext/tk/lib/tkextlib/tkimg/xpm.rb (limited to 'jni/ruby/ext/tk/lib/tkextlib/tkimg') diff --git a/jni/ruby/ext/tk/lib/tkextlib/tkimg/README b/jni/ruby/ext/tk/lib/tkextlib/tkimg/README new file mode 100644 index 0000000..f5981cb --- /dev/null +++ b/jni/ruby/ext/tk/lib/tkextlib/tkimg/README @@ -0,0 +1,26 @@ + + [ Tcl/Tk Image formats (TkImg) support ] + +TkImg contains a collection of format handlers for the Tk photo +image type, and a new image type, pixmaps. + +Supported formats of TkImg version 1.3 are +------------------------------------------------------- + bmp : Windows Bitmap Format + gif : Graphics Interchange Format + ico : Windows Icon Format + jpeg : Joint Picture Expert Group format + pcx : Paintbrush Format + pixmap : Pixmap Image type + png : Portable Network Graphics format + ppm : Portable Pixmap format + ps : Adobe PostScript Format + sgi : SGI Native Format + sun : Sun Raster Format + tga : Truevision Targa Format + tiff : Tagged Image File Format + window : Tk Windows + xbm : X Window Bitmap Format + xpm : X Window Pixmap Format +------------------------------------------------------- + diff --git a/jni/ruby/ext/tk/lib/tkextlib/tkimg/bmp.rb b/jni/ruby/ext/tk/lib/tkextlib/tkimg/bmp.rb new file mode 100644 index 0000000..ea90181 --- /dev/null +++ b/jni/ruby/ext/tk/lib/tkextlib/tkimg/bmp.rb @@ -0,0 +1,33 @@ +# +# TkImg - format 'bmp' +# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) +# +require 'tk' + +# call setup script for general 'tkextlib' libraries +require 'tkextlib/setup.rb' + +# call setup script +require 'tkextlib/tkimg/setup.rb' + +#TkPackage.require('img::bmp', '1.3') +TkPackage.require('img::bmp') + +module Tk + module Img + module BMP + PACKAGE_NAME = 'img::bmp'.freeze + def self.package_name + PACKAGE_NAME + end + + def self.package_version + begin + TkPackage.require('img::bmp') + rescue + '' + end + end + end + end +end diff --git a/jni/ruby/ext/tk/lib/tkextlib/tkimg/dted.rb b/jni/ruby/ext/tk/lib/tkextlib/tkimg/dted.rb new file mode 100644 index 0000000..cae8336 --- /dev/null +++ b/jni/ruby/ext/tk/lib/tkextlib/tkimg/dted.rb @@ -0,0 +1,33 @@ +# +# TkImg - format 'DTED' +# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) +# +require 'tk' + +# call setup script for general 'tkextlib' libraries +require 'tkextlib/setup.rb' + +# call setup script +require 'tkextlib/tkimg/setup.rb' + +# TkPackage.require('img::dted', '1.4') +TkPackage.require('img::dted') + +module Tk + module Img + module DTED + PACKAGE_NAME = 'img::dted'.freeze + def self.package_name + PACKAGE_NAME + end + + def self.package_version + begin + TkPackage.require('img::dted') + rescue + '' + end + end + end + end +end diff --git a/jni/ruby/ext/tk/lib/tkextlib/tkimg/gif.rb b/jni/ruby/ext/tk/lib/tkextlib/tkimg/gif.rb new file mode 100644 index 0000000..d542d47 --- /dev/null +++ b/jni/ruby/ext/tk/lib/tkextlib/tkimg/gif.rb @@ -0,0 +1,33 @@ +# +# TkImg - format 'gif' +# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) +# +require 'tk' + +# call setup script for general 'tkextlib' libraries +require 'tkextlib/setup.rb' + +# call setup script +require 'tkextlib/tkimg/setup.rb' + +# TkPackage.require('img::gif', '1.3') +TkPackage.require('img::gif') + +module Tk + module Img + module GIF + PACKAGE_NAME = 'img::gif'.freeze + def self.package_name + PACKAGE_NAME + end + + def self.package_version + begin + TkPackage.require('img::gif') + rescue + '' + end + end + end + end +end diff --git a/jni/ruby/ext/tk/lib/tkextlib/tkimg/ico.rb b/jni/ruby/ext/tk/lib/tkextlib/tkimg/ico.rb new file mode 100644 index 0000000..e79bdf4 --- /dev/null +++ b/jni/ruby/ext/tk/lib/tkextlib/tkimg/ico.rb @@ -0,0 +1,33 @@ +# +# TkImg - format 'ico' +# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) +# +require 'tk' + +# call setup script for general 'tkextlib' libraries +require 'tkextlib/setup.rb' + +# call setup script +require 'tkextlib/tkimg/setup.rb' + +# TkPackage.require('img::ico', '1.3') +TkPackage.require('img::ico') + +module Tk + module Img + module ICO + PACKAGE_NAME = 'img::ico'.freeze + def self.package_name + PACKAGE_NAME + end + + def self.package_version + begin + TkPackage.require('img::ico') + rescue + '' + end + end + end + end +end diff --git a/jni/ruby/ext/tk/lib/tkextlib/tkimg/jpeg.rb b/jni/ruby/ext/tk/lib/tkextlib/tkimg/jpeg.rb new file mode 100644 index 0000000..2126120 --- /dev/null +++ b/jni/ruby/ext/tk/lib/tkextlib/tkimg/jpeg.rb @@ -0,0 +1,33 @@ +# +# TkImg - format 'jpeg' +# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) +# +require 'tk' + +# call setup script for general 'tkextlib' libraries +require 'tkextlib/setup.rb' + +# call setup script +require 'tkextlib/tkimg/setup.rb' + +# TkPackage.require('img::jpeg', '1.3') +TkPackage.require('img::jpeg') + +module Tk + module Img + module JPEG + PACKAGE_NAME = 'img::jpeg'.freeze + def self.package_name + PACKAGE_NAME + end + + def self.package_version + begin + TkPackage.require('img::jpeg') + rescue + '' + end + end + end + end +end diff --git a/jni/ruby/ext/tk/lib/tkextlib/tkimg/pcx.rb b/jni/ruby/ext/tk/lib/tkextlib/tkimg/pcx.rb new file mode 100644 index 0000000..6831f4d --- /dev/null +++ b/jni/ruby/ext/tk/lib/tkextlib/tkimg/pcx.rb @@ -0,0 +1,33 @@ +# +# TkImg - format 'pcx' +# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)# + +require 'tk' + +# call setup script for general 'tkextlib' libraries +require 'tkextlib/setup.rb' + +# call setup script +require 'tkextlib/tkimg/setup.rb' + +# TkPackage.require('img::pcx', '1.3') +TkPackage.require('img::pcx') + +module Tk + module Img + module PCX + PACKAGE_NAME = 'img::pcx'.freeze + def self.package_name + PACKAGE_NAME + end + + def self.package_version + begin + TkPackage.require('img::pcx') + rescue + '' + end + end + end + end +end diff --git a/jni/ruby/ext/tk/lib/tkextlib/tkimg/pixmap.rb b/jni/ruby/ext/tk/lib/tkextlib/tkimg/pixmap.rb new file mode 100644 index 0000000..bd1b870 --- /dev/null +++ b/jni/ruby/ext/tk/lib/tkextlib/tkimg/pixmap.rb @@ -0,0 +1,44 @@ +# +# TkImg - format 'pixmap' +# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) +# +require 'tk' + +# call setup script for general 'tkextlib' libraries +require 'tkextlib/setup.rb' + +# call setup script +require 'tkextlib/tkimg/setup.rb' + +# TkPackage.require('img::pixmap', '1.3') +TkPackage.require('img::pixmap') + +module Tk + module Img + module PIXMAP + PACKAGE_NAME = 'img::pixmap'.freeze + def self.package_name + PACKAGE_NAME + end + + def self.package_version + begin + TkPackage.require('img::pixmap') + rescue + '' + end + end + end + end +end + +class TkPixmapImage