| 1 | # ############################################################################## | ||
| 2 | # # Script : Tkx::TclTk::Bind::ImageLibrary.pm # | ||
| 3 | # # -------------------------------------------------------------------------- # | ||
| 4 | # # Copyright : Frei unter GNU General Public License bzw. Artistic License # | ||
| 5 | # # Authors : JVBSOFT - Jürgen von Brietzke 0.001 - 1.400 # | ||
| 6 | # # Version : 1.400 14.Feb.2016 # | ||
| 7 | # # -------------------------------------------------------------------------- # | ||
| 8 | # # Function : Bindet die TclTk 'Img1.4.0.4' Bibliothek an Perl::Tkx # | ||
| 9 | # # -------------------------------------------------------------------------- # | ||
| 10 | # # Language : PERL 5 (V) 5.12.xx - 5.22.xx # | ||
| 11 | # # Coding : ISO 8859-15 / Latin-9 UNIX-Zeilenende # | ||
| 12 | # # Standards : Perl-Best-Practices severity 1 (brutal) # | ||
| 13 | # # -------------------------------------------------------------------------- # | ||
| 14 | # # Module : Enc::C ActivePerl-REPO-Module # | ||
| 15 | # # Modern::PBP::Perl # | ||
| 16 | # # Tkx::TclTk::Bind # | ||
| 17 | # ############################################################################## | ||
| 18 | |||
| 19 | package Tkx::TclTk::Bind::ImageLibrary 1.400; | ||
| 20 | |||
| 21 | # ############################################################################## | ||
| 22 | |||
| 23 | 1 | ▶ | use Modern::PBP::Perl qw{5.12}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | 0 | ▶ | use Tkx::TclTk::Bind qw{ &load_library }; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 25 | |||
| 26 | # ############################################################################## | ||
| 27 | |||
| 28 | sub BEGIN { | ||
| 29 | |||
| 30 | my $path_to_image_library; | ||
| 31 | |||
| 32 | my $temp_dir = load_library( 'image', 'Img1.4.0.4' ); | ||
| 33 | |||
| 34 | # --- Steuervariablen belegen ----------------------------------------------- | ||
| 35 | $path_to_image_library = File::Spec->catfile( $temp_dir, 'Img1.4.0.4' ); | ||
| 36 | |||
| 37 | # --- Image-Library in Tkx binden ------------------------------------------- | ||
| 38 | Tkx::lappend( '::auto_path', $path_to_image_library ); | ||
| 39 | Tkx::package_require('img::bmp'); | ||
| 40 | Tkx::package_require('img::gif'); | ||
| 41 | Tkx::package_require('img::ico'); | ||
| 42 | Tkx::package_require('img::jpeg'); | ||
| 43 | Tkx::package_require('img::pcx'); | ||
| 44 | Tkx::package_require('img::pixmap'); | ||
| 45 | Tkx::package_require('img::png'); | ||
| 46 | Tkx::package_require('img::ppm'); | ||
| 47 | Tkx::package_require('img::tiff'); | ||
| 48 | Tkx::package_require('img::window'); | ||
| 49 | Tkx::package_require('img::xbm'); | ||
| 50 | Tkx::package_require('img::xpm'); | ||
| 51 | |||
| 52 | } # end of sub BEGIN | ||
| 53 | |||
| 54 | # ############################################################################## | ||
| 55 | # # E N D # | ||
| 56 | # ############################################################################## | ||
| 57 | 1; | ||
| 58 | __END__ | ||