소스 검색

DERP missed 2libs

git-svn-id: http://repo.nplusc.de/svn/iZink@126 8b19561d-0d00-6744-8ac1-9afc8f58a8aa
masterX244 11 년 전
부모
커밋
28a24391ef
100개의 변경된 파일0개의 추가작업 그리고 37657개의 파일을 삭제
  1. BIN
      TWPUtil/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
  2. 0 4
      TWPUtil/lib/nblibraries.properties
  3. BIN
      TWPUtil/libdir/COmmons-Exec/commons-exec-1.1.jar
  4. BIN
      TWPUtil/libdir/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
  5. BIN
      TWPUtil/libdir/DefaultUiFile/DefaultUiFile.jar
  6. 0 47
      TWPUtil/libdir/DefaultUiFile/src/UIFile.ymlo
  7. 0 18
      TWPUtil/libdir/DefaultUiFile/src/de/nplusc/izc/tools/UIToolz/rsrc/UIFile.java
  8. 0 50
      TWPUtil/libdir/DefaultUiFile/src/de/nplusc/izc/tools/UIToolz/rsrc/UIFile.yml
  9. BIN
      TWPUtil/libdir/DefaultUiFile/src/rsrc/FontPage1.png
  10. BIN
      TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-FIle_TabWritten.png
  11. BIN
      TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-CMD-IP-BTN-Blue.png
  12. BIN
      TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-CMD-IP-BTN-Red.png
  13. BIN
      TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-CMD-IP-Main.png
  14. BIN
      TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-CMD-IP-SLDR.png
  15. BIN
      TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-FullTrans.png
  16. BIN
      TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-OVL-TxA.png
  17. BIN
      TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-mainMEnue.png
  18. BIN
      TWPUtil/libdir/DefaultUiFile/src/rsrc/icon.png
  19. 0 57
      TWPUtil/libdir/JMagix/doc-src/classes/CatalogManager.properties
  20. 0 118
      TWPUtil/libdir/JMagix/doc-src/forrest.properties
  21. 0 24
      TWPUtil/libdir/JMagix/doc-src/forrest.properties.xml
  22. 0 29
      TWPUtil/libdir/JMagix/doc-src/resources/schema/catalog.xcat
  23. 0 51
      TWPUtil/libdir/JMagix/doc-src/resources/schema/hello-v10.dtd
  24. 0 39
      TWPUtil/libdir/JMagix/doc-src/resources/stylesheets/hello2document.xsl
  25. 0 95
      TWPUtil/libdir/JMagix/doc-src/skinconf.xml
  26. 0 41
      TWPUtil/libdir/JMagix/doc-src/template.xml
  27. 0 1001
      TWPUtil/libdir/JMagix/doc-src/xdocs/docs/dev-guide.xml
  28. 0 134
      TWPUtil/libdir/JMagix/doc-src/xdocs/docs/faq.xml
  29. 0 56
      TWPUtil/libdir/JMagix/doc-src/xdocs/docs/howto-template.xml
  30. 0 46
      TWPUtil/libdir/JMagix/doc-src/xdocs/docs/howtos.xml
  31. 0 38
      TWPUtil/libdir/JMagix/doc-src/xdocs/docs/index.xml
  32. 0 26
      TWPUtil/libdir/JMagix/doc-src/xdocs/docs/new-tools.xml
  33. 0 96
      TWPUtil/libdir/JMagix/doc-src/xdocs/docs/reference.xml
  34. 0 66
      TWPUtil/libdir/JMagix/doc-src/xdocs/docs/tests.xml
  35. BIN
      TWPUtil/libdir/JMagix/doc-src/xdocs/images/project-logo.gif
  36. 0 168
      TWPUtil/libdir/JMagix/doc-src/xdocs/index.xml
  37. 0 77
      TWPUtil/libdir/JMagix/doc-src/xdocs/install/index.xml
  38. 0 216
      TWPUtil/libdir/JMagix/doc-src/xdocs/relnotes.xml
  39. 0 35
      TWPUtil/libdir/JMagix/doc-src/xdocs/roadmap.xml
  40. 0 82
      TWPUtil/libdir/JMagix/doc-src/xdocs/site.xml
  41. 0 25
      TWPUtil/libdir/JMagix/doc-src/xdocs/tabs.xml
  42. 0 139
      TWPUtil/libdir/JMagix/doc-src/xdocs/tools/index.xml
  43. BIN
      TWPUtil/libdir/JMagix/im4java-1.4.0.jar
  44. 0 145
      TWPUtil/libdir/JMagix/src/org/im4java/core/CommandException.java
  45. 0 64
      TWPUtil/libdir/JMagix/src/org/im4java/core/CompareCmd.java
  46. 0 65
      TWPUtil/libdir/JMagix/src/org/im4java/core/CompositeCmd.java
  47. 0 65
      TWPUtil/libdir/JMagix/src/org/im4java/core/ConvertCmd.java
  48. 0 59
      TWPUtil/libdir/JMagix/src/org/im4java/core/DCRAWOperation.java
  49. 0 736
      TWPUtil/libdir/JMagix/src/org/im4java/core/DCRAWOps.java
  50. 0 44
      TWPUtil/libdir/JMagix/src/org/im4java/core/DcrawCmd.java
  51. 0 99
      TWPUtil/libdir/JMagix/src/org/im4java/core/DisplayCmd.java
  52. 0 43
      TWPUtil/libdir/JMagix/src/org/im4java/core/DynamicOperation.java
  53. 0 129
      TWPUtil/libdir/JMagix/src/org/im4java/core/ETOperation.java
  54. 0 1039
      TWPUtil/libdir/JMagix/src/org/im4java/core/ETOps.java
  55. 0 44
      TWPUtil/libdir/JMagix/src/org/im4java/core/ExiftoolCmd.java
  56. 0 74
      TWPUtil/libdir/JMagix/src/org/im4java/core/GMOperation.java
  57. 0 9260
      TWPUtil/libdir/JMagix/src/org/im4java/core/GMOps.java
  58. 0 49
      TWPUtil/libdir/JMagix/src/org/im4java/core/GraphicsMagickCmd.java
  59. 0 78
      TWPUtil/libdir/JMagix/src/org/im4java/core/IM4JavaException.java
  60. 0 122
      TWPUtil/libdir/JMagix/src/org/im4java/core/IMOperation.java
  61. 0 16532
      TWPUtil/libdir/JMagix/src/org/im4java/core/IMOps.java
  62. 0 72
      TWPUtil/libdir/JMagix/src/org/im4java/core/IdentifyCmd.java
  63. 0 515
      TWPUtil/libdir/JMagix/src/org/im4java/core/ImageCommand.java
  64. 0 53
      TWPUtil/libdir/JMagix/src/org/im4java/core/ImageMagickCmd.java
  65. 0 659
      TWPUtil/libdir/JMagix/src/org/im4java/core/Info.java
  66. 0 78
      TWPUtil/libdir/JMagix/src/org/im4java/core/InfoException.java
  67. 0 44
      TWPUtil/libdir/JMagix/src/org/im4java/core/JPTOperation.java
  68. 0 363
      TWPUtil/libdir/JMagix/src/org/im4java/core/JPTOps.java
  69. 0 44
      TWPUtil/libdir/JMagix/src/org/im4java/core/JpegtranCmd.java
  70. 0 69
      TWPUtil/libdir/JMagix/src/org/im4java/core/MogrifyCmd.java
  71. 0 69
      TWPUtil/libdir/JMagix/src/org/im4java/core/MontageCmd.java
  72. 0 231
      TWPUtil/libdir/JMagix/src/org/im4java/core/Operation.java
  73. 0 98
      TWPUtil/libdir/JMagix/src/org/im4java/core/Stream2BufferedImage.java
  74. 0 49
      TWPUtil/libdir/JMagix/src/org/im4java/core/UFRawCmd.java
  75. 0 95
      TWPUtil/libdir/JMagix/src/org/im4java/core/UFRawOperation.java
  76. 0 943
      TWPUtil/libdir/JMagix/src/org/im4java/core/UFRawOps.java
  77. 0 22
      TWPUtil/libdir/JMagix/src/org/im4java/core/package.html
  78. 0 140
      TWPUtil/libdir/JMagix/src/org/im4java/process/ArrayListConsumer.java
  79. 0 82
      TWPUtil/libdir/JMagix/src/org/im4java/process/ArrayListErrorConsumer.java
  80. 0 76
      TWPUtil/libdir/JMagix/src/org/im4java/process/ArrayListOutputConsumer.java
  81. 0 47
      TWPUtil/libdir/JMagix/src/org/im4java/process/ErrorConsumer.java
  82. 0 46
      TWPUtil/libdir/JMagix/src/org/im4java/process/InputProvider.java
  83. 0 47
      TWPUtil/libdir/JMagix/src/org/im4java/process/OutputConsumer.java
  84. 0 136
      TWPUtil/libdir/JMagix/src/org/im4java/process/Pipe.java
  85. 0 181
      TWPUtil/libdir/JMagix/src/org/im4java/process/ProcessEvent.java
  86. 0 59
      TWPUtil/libdir/JMagix/src/org/im4java/process/ProcessEventListener.java
  87. 0 211
      TWPUtil/libdir/JMagix/src/org/im4java/process/ProcessExecutor.java
  88. 0 52
      TWPUtil/libdir/JMagix/src/org/im4java/process/ProcessListener.java
  89. 0 663
      TWPUtil/libdir/JMagix/src/org/im4java/process/ProcessStarter.java
  90. 0 106
      TWPUtil/libdir/JMagix/src/org/im4java/process/ProcessTask.java
  91. 0 70
      TWPUtil/libdir/JMagix/src/org/im4java/process/StandardStream.java
  92. 0 22
      TWPUtil/libdir/JMagix/src/org/im4java/process/package.html
  93. 0 340
      TWPUtil/libdir/JMagix/src/org/im4java/script/AbstractScriptGenerator.java
  94. 0 109
      TWPUtil/libdir/JMagix/src/org/im4java/script/BashScriptGenerator.java
  95. 0 104
      TWPUtil/libdir/JMagix/src/org/im4java/script/CmdScriptGenerator.java
  96. 0 55
      TWPUtil/libdir/JMagix/src/org/im4java/script/ScriptGenerator.java
  97. 0 22
      TWPUtil/libdir/JMagix/src/org/im4java/script/package.html
  98. 0 85
      TWPUtil/libdir/JMagix/src/org/im4java/test/AbstractTestCase.java
  99. 0 125
      TWPUtil/libdir/JMagix/src/org/im4java/test/Test.java
  100. 0 50
      TWPUtil/libdir/JMagix/src/org/im4java/test/TestCase.java

BIN
TWPUtil/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar


+ 0 - 4
TWPUtil/lib/nblibraries.properties

@@ -1,4 +0,0 @@
-libs.CopyLibs.classpath=\
-    ${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
-libs.CopyLibs.displayName=CopyLibs Task
-libs.CopyLibs.prop-version=1.0

BIN
TWPUtil/libdir/COmmons-Exec/commons-exec-1.1.jar


BIN
TWPUtil/libdir/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar


BIN
TWPUtil/libdir/DefaultUiFile/DefaultUiFile.jar


+ 0 - 47
TWPUtil/libdir/DefaultUiFile/src/UIFile.ymlo

@@ -1,47 +0,0 @@
-FontColor: 
-  R: I|170
-  G: I|220
-  B: I|240
-  A: I|200
-Font:
-  FontName: S|Lucida Console
-  Bold: B|Yes
-  Size: I|15
-tabBar:
-  Gfx: U|rsrc/GUI-FIle_TabWritten.png
-  BarBasePoint: 'P|0|0'
-  BarWidth: I|1000
-  BarHeight: I|20
-  TabWidth: I|200
-  TabHeight: I|20
-  TabBasePoint: P|50|0
-MainCfg:
-  WindowBasePoint: P|200|120
-  LinesBasePoint: P|5|25
-  LineWidth: I|930
-  LineHeight: I|14
-  LineCount: I|25
-  ScrollBarHeight: Remark|Determined by LineCount*LineSize
-  ScrollBarWidth: I|15
-  ScrollBarBasePoint: P|935|25
-  InputLineHeight: I|17
-  InputLineWidth: I|860 
-  InputLineBasePoint: P|54|412#
-  ICO: U|rsrc/icon.png
-  GFX: U|rsrc/GUI-File-CMD-IP-Main.png
-okButton:
-  BP1: P|27|16
-  BP2: P|73|16
-  BP3: P|85|1
-  BP4: P|152|1
-  BP5: P|155|8
-  BP6: P|209|7
-  BP7: P|229|27
-  BP8: P|168|47
-  BP9: P|12|47
-  BP10: P|6|36
-  ButtonGlowGFX: U|rsrc/GUI-File-CMD-IP-BTN-Red.png,
-  ButtonDfltGFX: U|rsrc/GUI-File-CMD-IP-BTN-Blue.png
-  ButtonAreaHeight: I|48
-  ButtonAreaWidth: I|233
-  ButtonAreaPos: P|630|432

+ 0 - 18
TWPUtil/libdir/DefaultUiFile/src/de/nplusc/izc/tools/UIToolz/rsrc/UIFile.java

@@ -1,18 +0,0 @@
-package de.nplusc.izc.tools.UIToolz.rsrc;
-
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-
-/**
- *
- * @author LH
- */
-public class UIFile
-{
-    private UIFile()
-    {
-        //used to get it as a library
-    }
-}

+ 0 - 50
TWPUtil/libdir/DefaultUiFile/src/de/nplusc/izc/tools/UIToolz/rsrc/UIFile.yml

@@ -1,50 +0,0 @@
-FontColor: 
-  R: I|170
-  G: I|220
-  B: I|240
-  A: I|200
-Font:
-  FontName: S|Lucida Console
-  Bold: B|Yes
-  Size: I|15
-tabBar:
-  Gfx: U|rsrc/GUI-FIle_TabWritten.png
-  BarBasePoint: P|0|0
-  BarWidth: I|1000
-  BarHeight: I|20
-  TabWidth: I|200
-  TabHeight: I|20
-  TabBasePoint: P|50|0
-MainCfg:
-  WindowBasePoint: P|200|120
-  LinesBasePoint: P|5|25
-  LineWidth: I|930
-  LineHeight: I|14
-  LineCount: I|25
-  ScrollBarHeight: Remark|Determined by LineCount*LineSize
-  ScrollBarWidth: I|15
-  ScrollBarBasePoint: P|935|25
-  InputLineHeight: I|17
-  InputLineWidth: I|860 
-  InputLineBasePoint: P|54|412
-  ICO: U|rsrc/icon.png
-  GFX: U|rsrc/GUI-File-CMD-IP-Main.png
-  FullTrans: U|rsrc/GUI-File-FullTrans.png
-  WindowSizeX: I|960
-  WindowSizeY: I|480
-okButton:
-  BP1: P|27|16
-  BP2: P|73|16
-  BP3: P|85|1
-  BP4: P|152|1
-  BP5: P|155|8
-  BP6: P|209|7
-  BP7: P|229|27
-  BP8: P|168|47
-  BP9: P|12|47
-  BP10: P|6|36
-  ButtonGlowGFX: U|rsrc/GUI-File-CMD-IP-BTN-Red.png
-  ButtonDfltGFX: U|rsrc/GUI-File-CMD-IP-BTN-Blue.png
-  ButtonAreaHeight: I|48
-  ButtonAreaWidth: I|233
-  ButtonAreaBasePoint: P|630|432

BIN
TWPUtil/libdir/DefaultUiFile/src/rsrc/FontPage1.png


BIN
TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-FIle_TabWritten.png


BIN
TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-CMD-IP-BTN-Blue.png


BIN
TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-CMD-IP-BTN-Red.png


BIN
TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-CMD-IP-Main.png


BIN
TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-CMD-IP-SLDR.png


BIN
TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-FullTrans.png


BIN
TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-OVL-TxA.png


BIN
TWPUtil/libdir/DefaultUiFile/src/rsrc/GUI-File-mainMEnue.png


BIN
TWPUtil/libdir/DefaultUiFile/src/rsrc/icon.png


+ 0 - 57
TWPUtil/libdir/JMagix/doc-src/classes/CatalogManager.properties

@@ -1,57 +0,0 @@
-# Copyright 2002-2005 The Apache Software Foundation or its licensors,
-# as applicable.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-#=======================================================================
-# CatalogManager.properties for Catalog Entity Resolver.
-#
-# This is the default properties file for your project.
-# This facilitates local configuration of application-specific catalogs.
-# If you have defined any local catalogs, then they will be loaded
-# before Forrest's core catalogs.
-#
-# See the Apache Forrest documentation:
-# http://forrest.apache.org/docs/your-project.html
-# http://forrest.apache.org/docs/validation.html
-
-# verbosity:
-# The level of messages for status/debug (messages go to standard output).
-# The setting here is for your own local catalogs.
-# The verbosity of Forrest's core catalogs is controlled via
-#  main/webapp/WEB-INF/cocoon.xconf
-#
-# The following messages are provided ...
-#  0 = none
-#  1 = ? (... not sure yet)
-#  2 = 1+, Loading catalog, Resolved public, Resolved system
-#  3 = 2+, Catalog does not exist, resolvePublic, resolveSystem
-#  10 = 3+, List all catalog entries when loading a catalog
-#    (Cocoon also logs the "Resolved public" messages.)
-verbosity=1
-
-# catalogs ... list of additional catalogs to load
-#  (Note that Apache Forrest will automatically load its own default catalog
-#  from main/webapp/resources/schema/catalog.xcat)
-# Use either full pathnames or relative pathnames.
-# pathname separator is always semi-colon (;) regardless of operating system
-# directory separator is always slash (/) regardless of operating system
-catalogs=../resources/schema/catalog.xcat
-
-# relative-catalogs
-# If false, relative catalog URIs are made absolute with respect to the
-# base URI of the CatalogManager.properties file. This setting only 
-# applies to catalog URIs obtained from the catalogs property in the
-# CatalogManager.properties file
-# Example: relative-catalogs=[yes|no]
-relative-catalogs=no

+ 0 - 118
TWPUtil/libdir/JMagix/doc-src/forrest.properties

@@ -1,118 +0,0 @@
-##############
-# Properties used by forrest.build.xml for building the website
-# These are the defaults, un-comment them only if you need to change them.
-#
-# $Revision: 1.1 $
-# $Author: bablokb $
-#
-##############
-
-# Prints out a summary of Forrest settings for this project
-#forrest.echo=true
-
-# Project name (used to name .war file)
-project.name=im4java
-
-# Specifies name of Forrest skin to use
-# See list at http://forrest.apache.org/docs/skins.html
-#project.skin=pelt
-
-# Descriptors for plugins and skins
-# comma separated list, file:// is supported
-#forrest.skins.descriptors=http://forrest.apache.org/skins/skins.xml,file:///c:/myskins/skins.xml
-#forrest.plugins.descriptors=http://forrest.apache.org/plugins/plugins.xml,http://forrest.apache.org/plugins/whiteboard-plugins.xml
-
-##############
-# behavioural properties
-#project.menu-scheme=tab_attributes
-#project.menu-scheme=directories
-
-##############
-# layout properties
-
-# Properties that can be set to override the default locations
-#
-# Parent properties must be set. This usually means uncommenting
-# project.content-dir if any other property using it is uncommented
-
-#project.status=status.xml
-project.content-dir=.
-project.raw-content-dir=${project.content-dir}
-#project.conf-dir=${project.content-dir}/conf
-#project.sitemap-dir=${project.content-dir}
-project.xdocs-dir=${project.content-dir}/xdocs
-#project.resources-dir=${project.content-dir}/resources
-#project.stylesheets-dir=${project.resources-dir}/stylesheets
-#project.images-dir=${project.resources-dir}/images
-#project.schema-dir=${project.resources-dir}/schema
-#project.skins-dir=${project.content-dir}/skins
-#project.skinconf=${project.content-dir}/skinconf.xml
-#project.lib-dir=${project.content-dir}/lib
-#project.classes-dir=${project.content-dir}/classes
-#project.translations-dir=${project.content-dir}/translations
-
-##############
-# validation properties
-
-# This set of properties determine if validation is performed
-# Values are inherited unless overridden.
-# e.g. if forrest.validate=false then all others are false unless set to true.
-#forrest.validate=true
-#forrest.validate.xdocs=${forrest.validate}
-#forrest.validate.skinconf=${forrest.validate}
-forrest.validate.sitemap=false
-#forrest.validate.stylesheets=${forrest.validate}
-#forrest.validate.skins=${forrest.validate}
-#forrest.validate.skins.stylesheets=${forrest.validate.skins}
-
-# *.failonerror=(true|false) - stop when an XML file is invalid
-#forrest.validate.failonerror=true
-
-# *.excludes=(pattern) - comma-separated list of path patterns to not validate
-# e.g.
-#forrest.validate.xdocs.excludes=samples/subdir/**, samples/faq.xml
-#forrest.validate.xdocs.excludes=
-
-
-##############
-# General Forrest properties
-
-# The URL to start crawling from
-#project.start-uri=linkmap.html
-
-# Set logging level for messages printed to the console
-# (DEBUG, INFO, WARN, ERROR, FATAL_ERROR)
-#project.debuglevel=ERROR
-
-# Max memory to allocate to Java
-forrest.maxmemory=1000m
-
-# Any other arguments to pass to the JVM. For example, to run on an X-less
-# server, set to -Djava.awt.headless=true
-#forrest.jvmargs=
-
-# The bugtracking URL - the issue number will be appended
-#project.bugtracking-url=http://issues.apache.org/bugzilla/show_bug.cgi?id=
-#project.bugtracking-url=http://issues.apache.org/jira/browse/
-
-# The issues list as rss
-#project.issues-rss-url=
-
-#I18n Property. Based on the locale request for the browser.
-#If you want to use it for static site then modify the JVM system.language
-# and run once per language
-#project.i18n=true
-
-# The names of plugins that are required to build the project
-# comma separated list (no spaces)
-# You can request a specific version by appending "-VERSION" to the end of
-# the plugin name. If you exclude a version number the latest released version
-# will be used, however, be aware that this may be a development version. In
-# a production environment it is recomended that you specify a known working 
-# version.
-# Run "forrest available-plugins" for a list of plug-ins currently available
-project.required.plugins=org.apache.forrest.plugin.output.pdf
-
-# Proxy configuration
-# proxy.host=
-# proxy.port=

+ 0 - 24
TWPUtil/libdir/JMagix/doc-src/forrest.properties.xml

@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<properties>
-<!-- Project identity -->
-  <property name="projectInfo.project" value="im4java"/>
-  <property name="projectInfo.project.fullname" value="im4java"/>
-  <property name="projectInfo.project.url" value="http://im4java.sourceforge.net"/>
-
-</properties>

+ 0 - 29
TWPUtil/libdir/JMagix/doc-src/resources/schema/catalog.xcat

@@ -1,29 +0,0 @@
-<?xml version="1.0"?>
-<!--
-  Copyright 2002-2004 The Apache Software Foundation or its licensors,
-  as applicable.
-
-  Licensed under the Apache License, Version 2.0 (the "License");
-  you may not use this file except in compliance with the License.
-  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
-"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
-
-<!-- OASIS XML Catalog for Forrest Documents -->
-<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
-         prefer="public">
-
-<!-- Download  -->
-<public publicId="-//Acme//DTD Hello Document V1.0//EN"
-        uri="hello-v10.dtd"/>
-
-</catalog>

+ 0 - 51
TWPUtil/libdir/JMagix/doc-src/resources/schema/hello-v10.dtd

@@ -1,51 +0,0 @@
-<!--
-  Copyright 2002-2004 The Apache Software Foundation or its licensors,
-  as applicable.
-
-  Licensed under the Apache License, Version 2.0 (the "License");
-  you may not use this file except in compliance with the License.
-  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-<!-- ===================================================================
-
-     Apache Hello DTD (Version 1.0)
-
-PURPOSE:
-  
-
-TYPICAL INVOCATION:
-
-  <!DOCTYPE greeting PUBLIC
-       "-//Acme//DTD Hello Document Vx.y//EN"
-       "hello.dtd">
-
-  where
-
-    x := major version
-    y := minor version
-
-FIXME:
-
-CHANGE HISTORY:
-[Version 1.0]
-  20041009 Initial version. (JJP)
-
-==================================================================== -->
-
-<!-- =============================================================== -->
-<!-- Greeting type element -->
-<!-- =============================================================== -->
-
-<!ELEMENT greeting (#PCDATA)>
-
-<!-- =============================================================== -->
-<!-- End of DTD -->
-<!-- =============================================================== -->

+ 0 - 39
TWPUtil/libdir/JMagix/doc-src/resources/stylesheets/hello2document.xsl

@@ -1,39 +0,0 @@
-<?xml version="1.0"?>
-<!--
-  Copyright 2002-2004 The Apache Software Foundation or its licensors,
-  as applicable.
-
-  Licensed under the Apache License, Version 2.0 (the "License");
-  you may not use this file except in compliance with the License.
-  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
--->
-
-<!--+
-    | Transforms Hello document format.
-    +-->
-
-<xsl:stylesheet version="1.0"
-                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-  <xsl:template match="/">
-    <document>
-      <header>
-        <title>
-          <xsl:value-of select="greeting"/>
-        </title>
-      </header>
-      <body>
-          <xsl:value-of select="greeting"/>
-      </body>
-    </document>
-  </xsl:template>
- 
-</xsl:stylesheet>

+ 0 - 95
TWPUtil/libdir/JMagix/doc-src/skinconf.xml

@@ -1,95 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 
- Copyright (c) 2008-2010 by Bernhard Bablok (bablokb at users.sourceforge.net)
-
- $Revision: 1.2 $
- $Author: bablokb $
-
--->
-
-<!DOCTYPE skinconfig PUBLIC 
-    "-//APACHE//DTD Skin Configuration V0.7-1//EN" 
-    "http://forrest.apache.org/dtd/skinconfig-v07-1.dtd">
-
-<skinconfig>
-
-  <disable-print-link>true</disable-print-link>  
-  <disable-pdf-link>false</disable-pdf-link>
-  <disable-pod-link>true</disable-pod-link>
-  <disable-txt-link>true</disable-txt-link>
-  <disable-xml-link>true</disable-xml-link>
-
-  <disable-external-link-image>true</disable-external-link-image>
-
-  <disable-compliance-links>false</disable-compliance-links>
-
-  <obfuscate-mail-links>true</obfuscate-mail-links>
-  <obfuscate-mail-value> . a t . </obfuscate-mail-value>
-
-  <project-name>im4java</project-name>
-  <project-description>A pure Java wrapper for ImageMagick and other
-    commandline-tools</project-description>
-  <project-url>http://im4java.sourceforge.net</project-url>
-  <project-logo>images/project-logo.gif</project-logo>
-
-  <host-url>http://sourceforge.net/projects/im4java</host-url>
-  <host-logo>http://sflogo.sourceforge.net/sflogo.php?group_id=251357&amp;type=14</host-logo>
-
-  <favicon-url></favicon-url>
-
-  <year>2008-2010</year>
-  <vendor>Bernhard Bablok</vendor>
-
-  <trail>
-    <link1 name="im4java" href="http://im4java.sourceforge.net"/>
-    <link2 name="" href=""/>
-    <link3 name="" href=""/>
-  </trail>
-
-  <toc max-depth="2" min-sections="2" location="menu"/>
-  <headings type="boxed"/>
-  <feedback to="bablokb . at . users.sf.net"
-    href="mailto:bablokb . at . users.sf.net?subject=Feedback&#160;" >
-    Send feedback about the website to:
-  </feedback>
-
-  <extra-css>
-    p.quote {
-      margin-left: 2em;
-      padding: .5em;
-      background-color: #f0f0f0;
-      font-family: monospace;
-    }
-    #footer a { color: #0F3660; }
-    #footer a:visited { color: #009999; }
-  </extra-css>
-
-  <colors>
-  </colors>
-
-  <pdf>
-    <page size="a4" orientation="portrait" text-align="left"/>
-    <page-numbering-format>Page 1</page-numbering-format>
-
-    <margins double-sided="false">
-      <top>1in</top>
-      <bottom>1in</bottom>
-      <inner>1.25in</inner>
-      <outer>1in</outer>
-    </margins>
-
-    <show-external-urls>false</show-external-urls>
-    <disable-copyright-footer>false</disable-copyright-footer>
-  </pdf>
-
-  <credits>
-    <credit box-location="alt">
-      <name>Built with Apache Forrest</name>
-      <url>http://forrest.apache.org/</url>
-      <image>images/built-with-forrest-button.png</image>
-      <width>88</width>
-      <height>31</height>
-    </credit>
-  </credits>
-</skinconfig>

+ 0 - 41
TWPUtil/libdir/JMagix/doc-src/template.xml

@@ -1,41 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
-"http://forrest.apache.org/dtd/document-v20.dtd">
-
-<!--
-  Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
-  $Revision: 1.2 $
-  $Author: bablokb $
--->
-
-<document id="">
-
-  <header>
-    <title></title>
-  </header>
-
-  <body>
-    <section id="">
-      <title></title>
-      <p></p>
-      <p></p>
-      <p></p>
-    </section>
-
-    <section id="">
-      <title></title>
-      <p></p>
-      <p></p>
-      <p></p>
-    </section>
-
-    <section id="">
-      <title></title>
-      <p></p>
-      <p></p>
-      <p></p>
-    </section>
-
-  </body>
-</document>

+ 0 - 1001
TWPUtil/libdir/JMagix/doc-src/xdocs/docs/dev-guide.xml

@@ -1,1001 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
-"http://forrest.apache.org/dtd/document-v20.dtd">
-<!--
-  Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
-  $Revision: 1.23 $
-  $Author: bablokb $
--->
-
-<document id="devguide">
-  <header>
-    <title>Developer's Guide</title>
-  </header>
-
-  <body>
-    <section id="intro">
-      <title>Introduction</title>
-
-      <p>
-	This guide is an introduction to the im4java-library. You
-	should be familiar with java-programming and should know how
-	to read the <a href="ext:im4javaapi">API
-	  documentation</a>. Also, this is no guide for the usage of
-	the underlying tools (<a
-	  href="ext:imagemagick">ImageMagick</a>, <a
-	  href="ext:graphicsmagick">GraphicsMagick</a> and so on). You
-	should be familiar with them and know how to read the
-	respective documentation.
-      </p>
-      <p>
-	The basic architecture of im4java is quite simple. It boils
-	down to calling all underlying tools simply by using a
-	<code>ProcessBuilder</code>-object. All the magic of im4java ist
-	to hide the complexities. If you have just one simple call of
-	an external tool in your program, you might be better of by
-	hardcoding the <code>ProcessBuilder</code>-call yourself. If you
-	don't need the simplicity or the advanced features of the
-	im4java-library, your code will certainly be faster and more
-	efficient.
-      </p>
-    </section>
-
-    <section id="environment">
-      <title>Before you begin: Setting up the Environment</title>
-      <p>
-	To use the im4java-library, you should add the im4java-jarfile
-	to you classpath. This is the first part of the setup. The
-	second part is optional and only necessary, if the <a
-	  href="../tools/index.html">tools</a> you want to use
-	(e.g. <code>convert</code> or <code>exiftool</code>) are not
-	on your <em>PATH</em>. This is typically a problem on
-	Windows-systems. 
-      </p>
-      <p>
-	To setup your searchpath for the tools you have three options:
-      </p>
-      <ul>
-	  <li>
-	    Set the environment-variable
-	    <em>IM4JAVA_TOOLPATH</em>. This variable should contain a
-	    list of directories to search for your tools separated by
-	    your platform-pathdelemiter (on *NIX typically ":", on
-	    Windows ";").
-	  </li>
-	  <li>
-	    Globally set the searchpath from within your java-progam:
-	    <source>
-String myPath="C:\\Programs\\ImageMagick;C:\\Programs\\exiftool";
-ProcessStarter.setGlobalSearchPath(myPath);
-	    </source>
-	    This will override any values set with
-	    <em>IM4JAVA_TOOLPATH</em>. 
-	  </li>
-	  <li>
-	    Set the search path for an individual command:
-	    <source>
-String imPath="C:\\Programs\\ImageMagick";
-ConvertCmd cmd = new ConvertCmd();
-cmd.setSearchPath(imPath);
-	    </source>
-	    This will override any values set with
-	    <em>IM4JAVA_TOOLPATH</em> or with
-	    <code>ProcessStarter.setGlobalSearchPath()</code>.
-	  </li>
-	</ul>
-      <warning>
-	Note that I also encountered a problem using OpenJDK with a
-	language-setting of <em>LANG=de_DE.UTF-8</em>. With
-	<em>LANG=C</em> everything worked fine. With SUN's JDK, there
-	were no problems regardless of the language-setting.
-      </warning>
-    </section>
-
-    <section id="simpleUse">
-      <title>Simple Use</title>
-      <p>
-	Basically, to use im4java, you need objects of two classes: an
-	<code>ImageCommand</code> like <code>ConvertCmd</code>, and an
-	<code>Operation</code> like <code>IMOperation</code>. The
-	<code>ImageCommand</code> is more or less static, you would
-	create an instance once and reuse it for the lifetime of your
-	program. Exceptions to this rule are more advanced use
-	cases, see the section below about parallel processing. In
-	contrast, the <em>Operation</em> is the object 
-	wrapping all the commandline options you intend to pass to the
-	given command. So you would typically create one
-	<code>Operation</code> for every action (resizing, conversion)
-	you intend to do.
-      </p>
-
-      <p>
-	As an example, consider resizing an image:
-      </p>
-      <source>
-// create command
-ConvertCmd cmd = new ConvertCmd();
-
-// create the operation, add images and operators/options
-IMOperation op = new IMOperation();
-op.addImage("myimage.jpg");
-op.resize(800,600);
-op.addImage("myimage_small.jpg");
-
-// execute the operation
-cmd.run(op);
-      </source>
-    </section>
-
-    <section id="imageCommands">
-      <title>About ImageCommand</title>
-      <p>
-	All command-classes subclass <code>ImageCommand</code>, which
-	itself subclasses
-	<code>org.im4java.process.ProcessStarter</code>. The latter
-	class wraps <code>java.lang.ProcessBuilder</code>, handles
-	input and output streams and supports <a
-	  href="#asynchronousExecution">asynchronous execution</a>.  
-      </p>
-      <p>
-	The <code>ImageCommand</code> class adds methods useful for
-	all command-classes, things like support for <a
-	  href="#reusingOperations">reusing operations</a> or for <a
-	  href="#dynamicOperations">dynamic operations</a>. 
-      </p>
-      <p>
-	Note that <code>ImageCommand</code> is not stateless. In the
-	default setting, it captures everything written to stderr. It
-	also holds an internal <em>process ID</em> (unrelated to any
-	operating system PID) via
-	<code>ProcessStarter</code>. Nevertheless, if you only use the
-	<code>ImageCommand</code> in synchronous mode, you can reuse
-	the instance.
-      </p>
-    </section>
-
-    <section id="graphicsMagick">
-      <title>Using GraphicsMagick</title>
-      <p>
-	<a href="ext:graphicsmagick">GraphicsMagick</a> is a fork of
-	<a href="ext:imagemagick">ImageMagick</a>. GraphicsMagick has
-	a number of advantages compared to ImageMagick, the most
-	prominent is it's superior performance. Since the fork
-	ImageMagick has improved the expressive power of it's
-	command-line syntax, therefore, an ImageMagick commandline is
-	not necessarely compatible with GraphicsMagick. But for most
-	single-operation conversions it still is.
-      </p>
-      <p>
-	With im4java, you have three options if you want to use
-	GraphicsMagick: 
-      </p>
-      <ul>
-	<li>
-	  use GraphicsMagick explicitely, passing the command at
-	  object-creation: <code>GraphicsMagickCmd cmd = new
-	    GraphicsMagickCmd("convert");</code>. 
-	</li>
-	<li>
-	  use GraphicsMagick explicitely, using wrapper classes:
-	  <code>ConvertCmd cmd = new ConvertCmd(true);</code>.
-	</li>
-	<li>
-	  decide at runtime: setting the system-property
-	  <em>im4java.useGM</em> to true will select GraphicsMagick
-	  at runtime. You can use this feature to compare the
-	  results and timings of both toolsets, provided that the
-	  commandline is compatible.
-	</li>
-      </ul>
-    </section>
-
-    <section id="reusingOperations">
-      <title>Reusing Operations</title>
-      <p>
-	In the example <a href="#simpleUse">above</a>, image-names
-	were hard-coded. The 
-	im4java-library supports an alternative use. Instead of
-	hard-coding the image-names, you just add placeholders and
-	resolve the image-names at execution time. This allows the
-	reuse of operations for example within a loop.
-      </p>
-      <p>
-	The following example extends the example of the first section
-	and loops over all images passed as method parameters:
-      </p>
-      <source>
-public void resizeImages(String... pImageNames) {
-  // create command
-  ConvertCmd cmd = new ConvertCmd();
-
-  // create the operation, add images and operators/options
-  IMOperation op = new IMOperation();
-  op.addImage();
-  op.resize(800,600);
-  op.addImage();
-
-  for (String srcImage:pImageNames) {
-    int lastDot = srcImage.lastIndexOf('.');
-    String dstImage = 
-       srcImage.substring(1,lastDot-1)+"_small.jpg";
-    cmd.run(op,srcImage,dstImage);
-  }
-}
-      </source>
-      <p>
-	You can pass an arbitrary
-	number of image-names to <code>cmd.run()</code>, you can even
-	pass an array of image-names. In the latter case you have to
-	cast the array to <code>Object[]</code>,
-	e.g. <code>cmd.run(op,(Object[]) imgNames)</code>.
-      </p>
-
-      <p>
-	Note that <code>op.addImage()</code> is actually a short form
-	for <code>op.addImage(Operation.IMG_PLACEHOLDER)</code>. You
-	can also add more than one placeholder at the same time with
-	<code>op.addImage(int count)</code>. 
-      </p>
-
-      <p>
-	The <code>op.addImage(String... images)</code>-method also
-	supports ImageMagick's <em>read-modifiers</em>. Adding a
-	read-modifier for hard-coded images is of course
-	straightforward (you just add it to the argument string). For
-	placeholders, you add only the read-modifier. The following
-	two lines of code therefore have the same effect:
-      </p>
-      <source>
-op.addImage("[300x200]");
-op.addImage(Operation.IMG_PLACEHOLDER+"[300x200]");
-      </source>
-
-      <p>
-	The test-case class <code>org.im4java.test.TestCase7</code>
-	uses read-modifiers to crop the source-images prior to
-	composing them:
-      </p>
-
-      <source>
-IMOperation op = new IMOperation();
-op.blend(50);
-op.addImage("[300x200+0+0]");  // read and crop first image
-op.addImage("[300x200+0+0]");  // read and crop second image
-op.addImage();                 // output image
-
-CompositeCmd composite = new CompositeCmd();
-composite.run(op,"rose1.jpg","rose2.jpg",outfile);
-      </source>
-
-    </section>
-
-    <section id="AddingOperations">
-      <title>Adding Operations to Operations</title>
-      <p>
-	Im4java supports a second variant of operation-reuse. You can
-	define one <code>Operation</code> and just add it to another
-	one. The following snippet defines a
-	<em>rotate-resize-frame</em>-operation and adds it to another
-	operation: 
-      </p>
-	<source>
-IMOperation frame = new IMOperation();
-frame.rotate("90");
-frame.resize(640);
-frame.border(10,10);
-
-IMOperation row = new IMOperation();
-row.addImages(3);
-row.add(frame);
-row.p_append();
-	</source>
-      <p>
-	Adding operations as just described is valid for all
-	supported im4java-tools. <a
-	  href="ext:imagemagick">ImageMagick</a> additionally supports
-	options and operations within parenthesis thus limiting the
-	effect of settings and operators on everything within the
-	parenthesis. You add parenthesis with the methods
-	<code>op.openOperation()</code> and
-	<code>op.closeOperation()</code>:  
-      </p>
-	<source>
-IMOperation frame = new IMOperation();
-frame.openOperation();
-frame.rotate("90");
-frame.resize(640);
-frame.border(10,10);
-frame.closeOperation();
-	</source>
-      <p>
-	An alternatative way of coding this is:
-      </p>
-	<source>
-IMOperation frame = new IMOperation();
-frame.rotate("90");
-frame.resize(640);
-frame.border(10,10);
-
-IMOperation row = new IMOperation();
-row.addImages(3);
-row.addSubOperation(frame);
-row.p_append();
-	</source>
-      <p>
-	The <code>op.addSubOperation()</code>-method just adds the
-	surrounding parenthesis.
-      </p>
-    </section>
-
-    <section id="dynamicOperations">
-      <title>Dynamic Operations</title>
-      <p>
-	<em>Dynamic Operations</em> are an advanced
-	technique. Sometimes you only want to apply some operations to
-	images fulfilling some requirements. <a
-	  href="ext:imagemagick">ImageMagick</a> itself has some
-	special option-flags for this purpose, e.g. an image is only
-	scaled (down) if it has a larger size than the
-	target-size. For special cases not directly supported by
-	ImageMagick, you can make use of im4java's <em>Dynamic
-	  Operations</em>. Basically, you implement the interface
-	<code>org.im4java.core.DynamicOperation</code>, which has
-	exactly one method <em>resolveOperation()</em>. At execution
-	time, this method gets all argument images passed as
-	parameters, and it must return an <code>Operation</code>. The
-	returned object could also be <em>null</em>, in this case no
-	<code>Operation</code> is added.
-      </p>
-      <p>
-	The test-case class <code>org.im4java.test.TestCase11</code>
-	shows an example of dynamic operations. In this case, the
-	<code>despeckle()</code> method is only added for images with
-	a high iso-noise level.
-      </p>
-    </section>
-
-    <section id="capturingOutput">
-      <title>Capturing Output</title>
-      <p>
-	The default behaviour of all <code>ImageCommand</code>s is to
-	pass all output of the wrapped commands to stdout, and to
-	capture everything from stderr in an
-	<code>CommandException</code>-object. You can change this
-	behaviour with the methods
-	<code>ImageCommand.setOutputConsumer(OutputConsumer oc)</code>
-	and <code>ImageCommand.setErrorConsumer(ErrorConsumer
-	  ec)</code>. Both <code>OutputConsumer</code> and
-	<code>ErrorConsumer</code> are interfaces in the
-	<code>org.im4java.process</code>-package with single methods
-	(<code>consumeOutput()</code> and
-	<code>consumeError()</code>). These methods just read
-	everything from the argument <code>InputStream</code>.
-      </p>
-      <p>
-	In the process-package there is an utility-class called
-	<code>ArrayListOutputConsumer</code> which collects all lines
-	of output in a String-array.
-      </p>
-    </section>
-
-    <section id="piping">
-      <title>Piping</title>
-      <p>
-	Most commandline tools allow piping of input or output. With
-	the im4java-library you can create instances of
-	<code>org.im4java.process.Pipe</code> to mimic this
-	behaviour. This class implements the
-	<code>OutputConsumer</code> and
-	<code>ErrorConsumer</code>-interfaces mentioned above and are
-	useful for 
-	piping the output of a commandline tool to an
-	<code>OutputStream</code> (e.g. a network-socket). To use the
-	pipe, instantiate it with an <code>OutputStream</code> and use
-	the method <code>ImageCommand.setOutputConsumer(pipe)</code>.
-      </p>
-      <p>
-	If you want to provide input to stdin of a commandline tool,
-	you have to create a pipe-object initialized with an
-	<code>InputStream</code> and use the method
-	<code>ImageCommand.setInputProvider(pipe)</code>. The pipe
-	will read from the <code>InputStream</code> and write to the
-	stdin of the respective <code>ImageCommand</code>.
-      </p>
-      <p>
-	The test-case <code>org.im4java.test.TestCase10</code>
-	features pipes, reading from one image and writing to
-	another. In real-life, you would of course process the files
-	directly, but the example just wants to demonstrate what to do:
-      </p>
-      <source>
- IMOperation op = new IMOperation();
- op.addImage("-");                   // read from stdin
- op.addImage("tif:-");               // write to stdout in tif-format
-
-// set up pipe(s): you can use one or two pipe objects
-FileInputStream fis = new FileInputStream(iImageDir+"ipomoea.jpg");
-FileOutputStream fos = new FileOutputStream(iImageDir+"ipomoea.tif");
-// Pipe pipe = new Pipe(fis,fos);
-Pipe pipeIn  = new Pipe(fis,null);
-Pipe pipeOut = new Pipe(null,fos);
-
-// set up command
-ConvertCmd convert = new ConvertCmd();
-convert.setInputProvider(pipeIn);
-convert.setOutputConsumer(pipeOut);
-convert.run(op);
-fis.close();
-fos.close();
-      </source>
-    </section>
-
-    <section id="bufferedImages">
-      <title>Using BufferedImages</title>
-      <p>
-	A <code>BufferedImage</code> is in a way the <em>java
-	  native</em> representation of an image-object. No
-	commandline tool can deal directly with a
-	<code>BufferedImage</code>. The good news is that im4java uses
-	objects of type <code>BufferedImage</code> transparently, if
-	you use pass these objects at invocation time:
-      </p>
-      <source>
-IMOperation op = new IMOperation();
-op.addImage();                        // input
-op.blur(2.0).paint(10.0);
-op.addImage();                        // output
-
-ConvertCmd convert = new ConvertCmd();
-BufferedImage img = ...;
-String outfile = ...;
-...
-convert.run(op,img,outfile);
-      </source>
-      <p>
-	Note that the above use of <code>BufferedImage</code>s
-	works fine for input-images.
-	If you need to write to a <code>BufferedImage</code>, you must
-	pipe the output of the commandline-tool to stdout,
-	create an instance of the class 
-	<code>org.im4java.core.Stream2BufferedImage</code> and set it
-	as the <code>OutputConsumer</code> of the command:
-      </p>
-      <source>
-IMOperation op = new IMOperation();
-op.addImage();                        // input
-....
-op.addImage("png:-");                 // output: stdout
-...
-images = ...;	
-	
-// set up command
-ConvertCmd convert = new ConvertCmd();
-Stream2BufferedImage s2b = new Stream2BufferedImage();
-convert.setOutputConsumer(s2b);
-
-// run command and extract BufferedImage from OutputConsumer
-convert.run(op,(Object[]) images);
-BufferedImage img = s2b.getImage();
-      </source>
-    </section>
-
-    <section id="asynchronousExecution">
-      <title>Asynchronous Execution</title>
-      <p>
-	Long running operations belong into a seperate thread,
-	especially in graphical applications. The im4java-library
-	supports asynchronous execution with and without callbacks.
-      </p>
-      <p>
-	The latter case is simple (fire-and-forget). Befor you start the
-	command, you just set the aynchronous-mode to true:
-      </p>
-      <source>
-ConvertCmd cmd = new ConvertCmd();
-cmd.setAsyncMode(true);
-...
-cmd.run(op);
-      </source>
-      <p>
-	In this case, you will know nothing about success or
-	failure. If you need feedback (e.g. because you want to
-	asynchronously convert a file and load the result into a
-	window), you must write a class implementing the interface
-	<code>org.im4java.process.ProcessEventListener</code>. This
-	interface defines three methods:
-	<code>processInitiated()</code>, <code>processStarted()</code>
-	and <code>processTerminated()</code>. The first method is
-	called synchronously from the original thread calling the
-	run-method, the latter two methods are callbacks from the
-	asynchronous thread. See
-	<code>org.im4java.test.TestCase16</code> for a complete example.
-      </p>
-
-      <p>
-	With <code>cmd.setAsyncMode(true)</code> you only need minimal
-	code-changes for asynchronous execution. If you prefer to
-	control the flow of execution yourself, you could use some
-	standard methods from <code>java.util.concurrent</code> to
-	control execution:
-      </p>
-
-      <source>
-ProcessTask pt = cmd.getProcessTask(op);
-ExecutorService exec = Executors.newSingleThreadExecutor();
-exec.execute(pt);
-exec.shutdown();
-      </source>
-      
-      <p>
-	The test-case 16a will give you a complete example. The third
-	variant, test-case 16b replaces the standard executor returned
-	by <code>Executors.newSingleThreadExecutor()</code> with an
-	instance of class
-	<code>org.im4java.process.ProcessExecutor</code>. For a
-	discussion of this class, proceed to the next section.
-      </p>
-    </section>
-
-    <section id="parallelProcessing">
-      <title>Parallel Processing</title>
-      <p>
-	The use case described above is fine for typical graphical
-	applications with one asynchronous thread. In contrast, if you
-	want to convert a number of files asynchronously, additional
-	problems arise. Consider the following piece of code:
-      </p>
-      <source>
-// load images into an array, e.g. from a directoy
-ArrayList&lt;String&gt; images = load(myDir);
-
-// convert all images
-ConvertCmd cmd = new ConvertCmd();
-cmd.setAsyncMode(true);
-Operation op = ...;
-for (String img:images) {
-  String outfile = ...;
-  cmd.run(op,img,outfile);
-}
-      </source>
-      <p>
-	Although this will run perfectly fine, this code will flood
-	your system with parallel convert-processes, making your
-	system unusable for a while. So one of the issues is
-	<em>ressource management</em>. Another issue is that you don't
-	know when you are finished. In addition, you don't know which
-	of your conversions succeeded and which failed.
-      </p>
-
-      <p>
-	The following sections deal with these three issues. This is
-	advanced stuff, and you might not even need it. If you have to
-	convert multiple images, you could first try to use the class
-	<code>org.im4java.utils.BatchConverter</code>, which uses the
-	building blocks described below. The class
-	<code>BatchConverter</code> is covered <a
-	  href="#BatchConverter">here</a>. 
-      </p>
-
-      <section id="processExecutor">
-	<title>The ProcessExecutor</title>
-
-	<p>
-	  The classes in <code>java.util.concurrent</code> address
-	  these issues. All classes returned by the factory class
-	  <code>java.util.concurrent.Executors</code> operate on
-	  threads. They provide methods to queue and start requests up
-	  to a given limit, and also allow you to stop the queue and
-	  destroy running threads.
-	</p>
-
-	<p>
-	  There is one big drawback with these thread-based
-	  executors. Once an <code>ImageCommand</code> is running
-	  within a java-thread, the thread will not be killable due to
-	  the active process. Therefore you should not use any of the
-	  standard executors, but use an instance of the class
-	  <code>org.im4java.process.ProcessExecutor</code>. A basic
-	  usage is very simple, the example above then looks like
-	  this:
-	</p>
-	<source>
-// load images into an array, e.g. from a directoy
-ArrayList&lt;String&gt; images = load(myDir);
-
-// convert all images
-ProcessExecutor exec = new ProcessExecutor();
-Operation op = ...;
-for (String img:images) {
-  String outfile = ...;
-  ConvertCmd cmd = new ConvertCmd();
-  ProcessTask pt = cmd.getProcessTask(op,img,outfile);
-  exec.execute(pt);
-}
-exec.shutdown();
-	</source>
-	<p>
-	  The default constructor of <code>ProcessExecutor</code> will
-	  query the number of processors on the system and limit the
-	  number of parallel running processes to that number. You can
-	  also pass an integer to the constructor if you want to set
-	  the limit yourself.
-	</p>
-
-	<p>
-	  The class <code>ProcessTask</code> extends
-	  <code>java.util.concurrent.FutureTask</code>. You can use
-	  all the standard methods of this class, e.g. to query
-	  results or to wait for termination.
-	</p>
-      </section>
-
-      <section id="processTermination">
-	<title>Waiting for process termination</title>
-	
-	<p>
-	  It is usually important to know when your processes have
-	  finished, maybe to give feedback to a user by updating a
-	  progress bar or to start some follow-up activity. If the
-	  processes take too long, you might also consider killing
-	  them.
-	  </p>
-	
-	<p>
-	  Since <code>ProcessExecutor</code> extends
-	  <code>java.util.concurrent.ThreadPoolExecutor</code>, you
-	  can use the standard methods provided by this class. If you
-	  want to block until your processes terminate, you would use
-	  the following code snippet (this one extends the example above):
-	  </p>
-	<source>
-ProcessExecutor exec = new ProcessExecutor();
-for (String img:images) {
-...
-}
-exec.shutdown();
-if (exec.awaitTermination(10,TimeUnit.SECONDS)) {
-  System.err.println("processes terminated on their own");
-} else {
-  System.err.println("trying to cancel all running processes ...");
-  exec.shutdownNow();
-}
-	</source>
-	<p>
-	  As an alternative to the blocking
-	  <code>awaitTermination()</code>-call you could also subclass
-	  <code>ProcessExecutor</code> and implement it's
-	  <code>terminated()</code>-method. Then you will receive a
-	  callback once all processes have terminated.
-	</p>
-
-	<p>
-	  One final warning: the code implementing the parallel
-	  processing of commands is new and therefore untested in the
-	  wild. During development, a number of race-conditions came
-	  up (and were solved), but feedback on stability,
-	  functionality and implementation is highly welcome.
-	</p>
-      </section>
-
-      <section id="processControl">
-	<title>Exit status of finished asynchronous processes</title>
-	<p>
-	  The last issue with asynchronous processes is the exit
-	  status. For a single asynchronous process this is quite
-	  simple, you would implement a
-	  <code>ProcessEventListener</code> and use it's
-	  <code>processTerminated()</code>-method (see the section <a
-	    href="#asynchronousExecution">Asynchronous Execution</a> above).
-	</p>
-	
-	<p>
-	  For multiple parallel process the situation is a bit more
-	  complicated. You have to link the processTerminated-event
-	  with the correct process. The class
-	  <code>ProcessEvent</code> implements a number of methods
-	  which help to identify the process. One is
-	  <code>ProcessEvent.getPID()</code>. The <em>PID</em> is an
-	  internal field of each <code>ImageCommand</code>. You can
-	  set this field explicitly overriding the PID set during
-	  object-creation. You can also query the
-	  <code>ImageCommand</code> object itself with
-	  <code>ProcessEvent.getProcessStarter()</code> (remenber that
-	  <code>ProcessStarter</code> is the base-class of
-	  <code>ImageCommand</code>). 
-	</p>
-	
-	<p>
-	  For a complete example using these methods, see the class
-	  <code>org.im4java.test.TestCase21</code>. 
-	</p>
-      </section>
-    </section>
-
-    <section id="utils">
-      <title>Utilities</title>
-      <p>
-	This section describes a number of utility-classes which
-	facilitate the coding.
-      </p>
-
-      <section id="Info">
-	<title>Image Information</title>
-	<p>
-	  If you only want to query image-information (e.g. width and
-	  height), you could typically use the class
-	  <code>IdentifyCmd</code>, wrapping ImageMagick's
-	  <em>identify</em>-command. Instead of using this class
-	  directly, you could instead use the <code>Info</code> class. The
-	  following code-snippet demonstrates its use:
-	</p>
-	<source>
-Info imageInfo = new Info(filename,true);
-System.out.println("Format: " + imageInfo.getImageFormat());
-System.out.println("Width: " + imageInfo.getImageWidth());
-System.out.println("Height: " + imageInfo.getImageHeight());
-System.out.println("Geometry: " + imageInfo.getImageGeometry());
-System.out.println("Depth: " + imageInfo.getImageDepth());
-System.out.println("Class: " + imageInfo.getImageClass());
-	</source>
-	<p>
-	  The second parameter (<em>true</em>) in the example requests
-	  <em>basic</em>-information. This is a bit faster than
-	  requesting and parsing the
-	  complete (verbose) output of the class
-	  <code>IndentifyCmd</code>. See the test-case class
-	  <code>org.im4java.test.TestCase8</code> for a complete example.
-	</p>
-	<p>
-	  Prior to version 1.3.0 the implementation of the
-	  <code>Info</code>-class was severely flawed. It did not take
-	  into account that there are image-formats like TIF or GIF
-	  that support multiple images (ImageMagick calls them
-	  <em>scenes</em>) within a single file. As a consequence, the
-	  method
-	</p>
-	<source>
-imageInfo.getImageWidth()
-	</source>
-	<p>
-	  returns the image-width of the <em>first</em> scene (from
-	  basic-information), whereas the method
-	</p>
-	<source>
-imageInfo.getProperty("Width")
-	</source>
-	<p>
-	  will return the image-width of the <em>last</em>
-	  scene (from complete information). Starting with version
-	  1.3.0, there are new methods with an additional parameter,
-	  the scene-number, e.g. 
-	</p>
-	<source>
-imageInfo.getImageWidth(3)
-imageInfo.getProperty("Width",3)
-	</source>
-	<p>
-	  To query the number of scenes use the method
-	  <code>getSceneCount()</code>. Note that information about
-	  multiple scenes is only available with complete-information.
-	</p>
-	<p>
-	  Note that parsing the output of <code>identify
-	    -verbose</code> is inherently flawed, since this output is
-	  meant to be human-readable and not an an interface for computer
-	  programs. The parser makes a number of assumptions about the
-	  output, some of them are known to be incorrect in special
-	  situations (e.g. multi-line attribute-values with embedded
-	  colons). Also note that basic-information should always be
-	  correct, since it uses a different method to aquire the
-	  information. As an alternative to the
-	  <code>Info</code>-class you might consider using the wrapper
-	  class <code>ExiftoolCmd</code> for <code>exiftool</code>.
-	</p>
-      </section>
-
-      <section id="FilenameLoader">
-	<title>FilenameLoader</title>
-	<p>
-	  The class <code>org.im4java.utils.FilenameLoader</code> is
-	  useful for batch-processing a number of files from a
-	  directory. The core method is <code> public
-	    List&lt;String&gt; loadFilenames(String pDir)</code>. It
-	  loads all files from the given directory into a list of
-	  strings.
-	</p>
-	<p>
-	  The constructor accepts an <code>ExtensionFilter</code>. You
-	  can instantiate your own filter as in the example below or
-	  use one of the predefined filters of the
-	  ExtensionFilter-class. 
-	</p>
-	<source>
-ExtensionFilter filter = new ExtensionFilter("jpg");
-filter.setRecursion(true);
-filter.ignoreDotDirs(true);
-FilenameLoader  loader = new FilenameLoader(filter);
-List&lt;String&gt; files = loader.loadFilenames(mydir);
-	</source>
-	<p>
-	  As always, you should check the <a
-	    href="ext:im4javaapi">API-documentation</a> for all the
-	  features of this class.
-	</p>
-      </section>
-
-      <section id="FilenamePatternResolver">
-	<title>FilenamePatternResolver</title>
-	<p>
-	  When converting multiple files, the target filename usually
-	  depends on the source filename. For example a standard
-	  conversion from jpg to tif would keep the filename and just
-	  change the extension. Or all converted files should
-	  additionally go to a separate directory.
-	</p>
-	<p>
-	  This is where the class
-	  <code>org.im4java.utils.FilenamePatternResolver</code> is
-	  useful. The following snippet will convert all
-	  argument-files to tif.
-	</p>
-	<source>
-// define operation and command
-IMOperation op = new IMOperation();
-op.addImage();                         // input-file
-op.addImage();                         // output-file
-ConvertCmd cmd = new ConvertCmd();
-
-// load files
-ExtensionFilter filter = new ExtensionFilter("jpg");
-FilenameLoader  loader = new FilenameLoader(filter);
-List&lt;String&gt; files = loader.loadFilenames(mydir);
-
-// create the resolver
-FilenamePatternResolver resolver = 
-    new FilenamePatternResolver("%P/%f.tif");
-
-// now iterate over all files
-for (String img:files) {
-  cmd.run(op,img,resolver.createName(img));
-}
-	</source>
-	<p>
-	  The FilenamePatternResolver recognizes the following
-	  escape-sequences within it's pattern:
-	</p>
-	<ul>
-	  <li>%P: full pathname of source-image (i.e. the directory)</li>
-	  <li>%p: last component of %P</li>
-	  <li>%F: full filename without directory part</li>
-	  <li>%f: filename without directory part and extension</li>
-	  <li>%e: only the extension</li>
-	  <li>%D: drive-letter (on windows systems). Not
-	    available for source-files with an UNC-name.</li>
-	</ul>
-      </section>
-
-      <section id="BatchConverter">
-	<title>BatchConverter</title>
-
-	<p>
-	  The class <code>org.im4java.utils.BatchConverter</code> is a
-	  utility-class for client-applications. It will convert a
-	  given list of files in parallel making use of all available processors
-	  to speed up execution. It is not well suited for
-	  web-applications, since you don't want a single request to use
-	  up all of your ressources.
-	</p>
-
-	<p>
-	  Usage of this utility-class is straightforward. First you load
-	  your files into a <code>List</code>. This could be from a
-	  GUI-application where a user selects multiple files. Or the
-	  list could contain all files from a given directory (see the
-	  section <a href="#FilenameLoader">FilenameLoader</a> above).
-	</p>
-
-	<source>
- ExtensionFilter filter = new ExtensionFilter("jpg");
- filter.setRecursion(false);
- FilenameLoader loader =  new FilenameLoader(filter);
- List&lt;String&gt; images=loader.loadFilenames(dir);
-	</source>
-
-	<p>
-	  After you have the list, you create your
-	  <code>BatchConverter</code> and use it's
-	  <code>run()</code>-method to process the images:
-	</p>
-
-	<source>
-// create a simple thumbnail operation
-op = new IMOperation();
-op.size(80);
-op.addImage();     // placeholder input filename
-op.thumbnail(80);
-op.addImage();     // placeholder output filename
-
-// create a template for the output-files:
-// we put them in targetDir with the same filename as the original
-// images
-String template=targetDir+"%F";
-
-// create instance of BatchConverter and convert images
-BatchConverter bc = new BatchConverter(BatchConverter.Mode.PARALLEL);
-bc.run(op,images,targetDir+"%F");
-	</source>
-
-	<p>
-	  Since <code>BatchConverter</code> extends
-	  <code>ProcessExecutor</code>, you can use the methods
-	  described in the section about <a
-	    href="#processTermination">process termination</a> to wait
-	  for the termination of the command (note that the
-	  <code>shutdown()</code>-method is called automatically).
-	</p>
-	
-	<p>
-	  The class <code>BatchConverter</code> knows three modes of
-	  operation: <code>BatchConverter.SEQUENTIAL</code>,
-	  <code>BatchConverter.PARALLEL</code> and
-	  <code>BatchConverter.BATCH</code>. The first mode is more or
-	  less for benchmarking the other two, it converts the images
-	  one after another sequentially. The second mode uses
-	  parallel processing, it runs in it's default setting on all
-	  available processors. The last mode uses convert's ability
-	  to process more than one image at the same time:
-	</p>
-	<source>
-convert image1.jpg image2.jpg target_%d.tif
-mv target_1.tif image1.tif
-mv target_2.tif image2.tif
-	</source>
-	
-	<p>
-	  On modern computers with more than one processor
-	  <code>BatchConverter.PARALLEL</code> should be the
-	  fastest. If only one (real) processor is available,
-	  <code>BatchConverter.BATCH</code> should make the game.
-	</p>
-
-	<p>
-	  For a complete example see <code>TestCase22</code>. This
-	  test-case subclasses <code>BatchConverter</code> and uses the
-	  <code>terminated()</code>-method to receive a callback after
-	  termination. After termination, the callback-methods uses
-	  the <code>getFailedConversions()</code>-method of
-	  <code>BatchConverter</code> to query a list of
-	  <code>BatchConverter.ConvertException</code>-objects. These
-	  objects wrap the cause and the index of the image
-	  responsible of the failure. 
-	</p>
-      </section>
-    </section>
-
-    <section id="debug">
-      <title>Debugging</title>
-      <p>
-	Since version 1.0 im4java has a new method
-	<code>ImageCommand.createScript()</code> to aid in debugging:
-      </p>
-      <source>
-IMOperation op = new IMOperation();
-...
-ConvertCmd cmd = new ConvertCmd();
-cmd.createScript("myscript.sh",op);
-      </source>
-      <p>
-	This will dump your command and operation to a
-	script-file. You should change the execution-permission of the
-	file and try the script to make sure that you in fact generate
-	the commandline you intend to use.
-      </p>
-      <p>Note that on windows-platforms,
-	<code>createScript()</code>-method will automatically add the
-	extension <code>.cmd</code> to the filename passed to the
-	method.
-      </p>
-    </section>
-  </body>
-</document>

+ 0 - 134
TWPUtil/libdir/JMagix/doc-src/xdocs/docs/faq.xml

@@ -1,134 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE faqs PUBLIC "-//APACHE//DTD FAQ V2.0//EN"
- "http://forrest.apache.org/dtd/faq-v20.dtd">
-
-<!--
- Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
- $Revision: 1.2 $
- $Author: bablokb $
--->
-
-<faqs>
-    <title>im4java Frequently Asked Questions</title>
-
-  <faqsection id="general">
-    <title>General Questions</title>
-    <faq id="jni">
-      <question>
-	What exactly do you mean with <em>JNI-hazard</em>?
-      </question>
-      <answer>
-        <p>
-	  Running native code using JNI from within java always
-	  imposes additional risks. The JVM is no longer sandboxed, so
-	  there 
-	  might be some security issues. In addition, there could be
-	  errors like memory leaks or memory corruption within the
-	  JNI-layer (JMagick) or within the native code (ImageMagick).
-	</p>
-	<p>
-	  This is especially dangerous for long running processes
-	  (typically web-application-servers). Memory corruption or a
-	  segmentation fault (maybe triggered by a intentionally
-	  manipulated image) might bring down the whole server.
-	</p>
-	<p>
-	  On the other side, in reality the situation is not as bad as
-	  it sounds above. JMagick is well tested, and for standard
-	  use-cases it prooves to be very stable.
-	</p>
-	<p>
-	  Some additional information is available on the
-	  JMagick-users mailing list where <a href="ext:jumljni">this
-	    topic</a> has been discussed to some detail.
-	</p>
-      </answer>
-    </faq>
-
-    <faq id="winconvert">
-      <question>
-        The library does not use ImageMagicks <code>convert</code>
-	command, but the one supplied by Microsoft. What can I do?
-      </question>
-      <answer>
-        <p>
-	  Read the Developer's Guide, section <a
-	    href="dev-guide.html#environment">Setting up the
-	    Environment</a>. 
-        </p>
-      </answer>
-    </faq>
-
-    <faq id="cmdoption">
-      <question>
-	The program xxx supports option <code>-foo</code>, but im4java
-	does not. Why? And what can I do about it?
-      </question>
-      <answer>
-        <p>
-	  Keeping up with actively devolped tools is not easy, im4java
-	  will always lag behind in the support of new commandline
-	  options. But adding support for a new option is
-	  straightforward: 
-	</p>
-	  <ol>
-	    <li>Download the source-distribution of im4java.</li>
-	    <li>Edit the file <code>input/XXXinterface.txt</code> and
-	      add your new option. The syntax of the file should be
-	      clear.
-	    </li>
-	    <li>Run <code>make src jar</code>. That's it!</li>
-	    <li>Post the diff of <code>input/XXXinterface.txt</code>
-	      on the jmagick-users mailing-list. I will add it to the
-	      next version of im4java.
-	    </li>
-	  </ol>
-      </answer>
-    </faq>
-
-    <faq id="exception">
-      <question>
-	Running my code just throws a
-	<code>CommandException</code>. What can I do?
-      </question>
-      <answer>
-        <p>
-	  In case there is a CommandException, you should always print
-	  the associated error-text:
-	</p>
-	<source>
-	  try {
-            ...
-          } catch (CommandException ce) {
-            ce.printStackTrace();
-            ArrayList&lt;String&gt; cmdError = ce.getErrorText();
-            for (String line:cmdError) {
-              System.err.println(line);
-            }
-          } catch (Exception e) {
-            e.printStackTrace();
-          }
-	</source>
-	<p>The error-text ist the stderr of the used
-	  command. Hopefully it tells you why it failed.
-	</p>
-      </answer>
-    </faq>
-    <!-- More faqs or parts here -->
-  </faqsection>
-
-  <faqsection id="implementation">
-    <title>Implementation related</title>
-    <faq id="meta">
-      <question>
-        To be asked.
-      </question>
-      <answer>
-        <p>To be answered.
-        </p>
-      </answer>
-    </faq>
-    <!-- More faqs or parts here -->
-  </faqsection>
-</faqs>

+ 0 - 56
TWPUtil/libdir/JMagix/doc-src/xdocs/docs/howto-template.xml

@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE howto PUBLIC "-//APACHE//DTD How-to V2.0//EN"
-"http://forrest.apache.org/dtd/howto-v20.dtd">
-
-<!--
- Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
- $Revision: 1.1 $
- $Author: bablokb $
--->
-
-<howto>
-  <header>
-    <title>im4java HOWTO-Template</title>
-
-    <version>1</version>
-
-    <abstract>This is a generic HowTO template.
-    </abstract>
-    <last-modified-content-date date="2010-03-08" />
-  </header>
-
-  <audience title="Intended Audience">
-    <p></p>
-  </audience>
-
-  <purpose title="Purpose">
-    <p></p>
-  </purpose>
-
-  <prerequisites title="Prerequisites">
-    <p></p>
-  </prerequisites>
-
-  <steps title="Steps">
-    <p></p>
-
-    <section id="a">
-      <title></title>
-      <p></p>
-    </section>
-
-    <section id="b">
-      <title></title>
-      <p></p>
-    </section>
-  </steps>
-
-  <extension title="Extension">
-    <p></p>
-  </extension>
-
-  <references title="References">
-    <p></p>
-  </references>
-</howto>

+ 0 - 46
TWPUtil/libdir/JMagix/doc-src/xdocs/docs/howtos.xml

@@ -1,46 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
-"http://forrest.apache.org/dtd/document-v20.dtd">
-
-<!--
- Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
- $Revision: 1.1 $
- $Author: bablokb $
--->
-
-<document>
-  <header>
-    <title>im4java HowTos</title>
-  </header>
-
-  <body>
-    <section id="Overview">
-      <title>Overview</title>
-      <p>If you want to share your ideas and experiences, please write
-      a HOWTO. You should use the template available in the
-	source-distribution
-	(<em>doc-src/xdocs/docs/howto-template.xml</em>).
-      </p>
-    </section>
-
-    <section id="howtos">
-      <title>Available HowTos</title>
-      <p>This is the list of currently available HowTos.</p>
-
-      <table>
-	<caption>Available HowTos</caption>
-	<tr>
-	  <th>HowTo</th>
-	  <th>Description</th>
-	</tr>
-	<tr>
-	  <td><a href="site:newtools">Howto add support for a new tool</a></td>
-	  <td>A step-by-step guide on howto add support for a new
-	    commandline-tool to im4java. This howto is not yet written
-	  but due for the next release of im4java.</td>
-	</tr>
-      </table> 
-    </section>
-  </body>
-</document>

+ 0 - 38
TWPUtil/libdir/JMagix/doc-src/xdocs/docs/index.xml

@@ -1,38 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
-"http://forrest.apache.org/dtd/document-v20.dtd">
-<!--
-  Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
-  $Revision: 1.1 $
-  $Author: bablokb $
--->
-
-<document>
-  <header>
-    <title>im4java Documentation</title>
-  </header>
-
-  <body>
-    <section id="Overview">
-      <title>Overview</title>
-      <p>
-	After you downloaded and installed the software, you should
-	start by reading the <a
-	  href="site:devguide">Developer's Guide</a>. For the details, you
-	should browse the <a href="ext:im4javaapi">im4java API</a>.
-      </p>
-
-      <p>
-	If you want to add a new tool to the list of supported
-	commandline tools, you should read about <a
-	  href="site:newtools">Adding new Tools</a> 
-      </p>
-
-      <p>
-	Various aspects of the im4java-library are documented in the <a
-	  href="site:reference">reference</a>. 
-      </p>
-    </section>
-  </body>
-</document>

+ 0 - 26
TWPUtil/libdir/JMagix/doc-src/xdocs/docs/new-tools.xml

@@ -1,26 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
-"http://forrest.apache.org/dtd/document-v20.dtd">
-
-<!--
- Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
- $Revision: 1.1 $
- $Author: bablokb $
--->
-
-<document id="new-tools">
-  <header>
-    <title>Adding support for additional commandline-tools</title>
-  </header>
-
-  <body>
-    <section id="intro">
-      <title>Introduction</title>
-      <p>
-	This document is a step-by-step introduction on howto add
-	support for a new commandline-tool to im4java.
-      </p>
-    </section>
-  </body>
-</document>

+ 0 - 96
TWPUtil/libdir/JMagix/doc-src/xdocs/docs/reference.xml

@@ -1,96 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
-"http://forrest.apache.org/dtd/document-v20.dtd">
-<!--
-  Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
-  $Revision: 1.6 $
-  $Author: bablokb $
--->
-
-<document>
-  <header>
-    <title>im4java Reference</title>
-  </header>
-
-  <body>
-    <section id="config">
-      <title>Configuration</title>
-      <p>
-	You can configure the behaviour of the im4java-library with
-	the following environment-variables and system-properties:
-      </p>
-      <dl>
-	<dt>IM4JAVA_TOOLPATH (environment)</dt>
-	<dd>Default searchpath for <a href="../tools/index.html">commandline
-	    tools</a>. Must use the platform-specific
-	  path-delimiter.
-	</dd>
-      </dl>
-      <dl>
-	<dt>im4java.useGM (system-property)</dt>
-	<dd>If true, use <a href="ext:graphicsmagick">GraphicsMagick</a>
-	  instead of <a href="ext:imagemagick">ImageMagick</a>.
-	</dd>
-      </dl>
-      <dl>
-	<dt>im4java.maxProcs (system-property)</dt>
-	<dd>The maximum number of asynchronous processes the
-	  <code>org.im4java.process.ProcessExecutor</code> will run
-	  concurrently.  If unset or if the 
-	  property has the value <em>auto</em>, the number returned by
-	  <code>Runtime.availableProcessors()</code> is used. Note
-	  that the ProcessExecutor will at least use one process.
-	</dd>
-      </dl>
-    </section>
-
-    <section id="tests">
-      <title>Test Cases</title>
-      <p>
-	The package <code>org.im4java.test</code> contains a growing
-	number of test-cases, demonstrating the various features of
-	the im4java-library. Here is a quick overview.
-      </p>
-      <dl>
-	<dt>TestCase1</dt><dd>Simple use of convert</dd>
-	<dt>TestCase2</dt><dd>Operation and sub-operations</dd>
-	<dt>TestCase3</dt><dd>Using montage</dd>
-	<dt>TestCase4</dt><dd>The ChannelMixer-class</dd>
-	<dt>TestCase5</dt><dd>Using mogrify</dd>
-	<dt>TestCase6</dt><dd>Using identify</dd>
-	<dt>TestCase7</dt><dd>Using composite</dd>
-	<dt>TestCase8</dt><dd>Using the Info-class</dd>
-	<dt>TestCase9</dt><dd>The NoiseFilter-class</dd>
-	<dt>TestCase10</dt><dd>Piping</dd>
-	<dt>TestCase11</dt><dd>Dynamic operations</dd>
-	<dt>TestCase12</dt><dd>Reading BufferedImage</dd>
-	<dt>TestCase13</dt><dd>Writing BufferedImage</dd>
-	<dt>TestCase14</dt><dd>GraphicsMagick</dd>
-	<dt>TestCase15</dt><dd>Using jpegtran</dd>
-	<dt>TestCase16</dt>
-	<dd>
-	  Asynchronous execution. Basic version.
-	</dd>
-	<dt>TestCase16a</dt>
-	<dd>
-	  Asynchronous execution. This version uses
-	  <code>Executors.newSingleThreadExecutor()</code> to aquire a
-	  <code>ExecutorService</code>.
-	</dd>
-	<dt>TestCase16b</dt>
-	<dd>
-	  Asynchronous execution. This version uses a
-	  <code>ProcessExecutor</code> to run at most two processes in
-	  parallel.
-	</dd>
-	<dt>TestCase17</dt><dd>Using ufraw-batch</dd>
-	<dt>TestCase18</dt><dd>Using exiftool</dd>
-	<dt>TestCase19</dt><dd>Using dcraw</dd>
-	<dt>TestCase20</dt><dd>Setting search PATHs</dd>
-	<dt>TestCase21</dt><dd>Parallel processes</dd>
-	<dt>TestCase22</dt><dd>Using the BatchConverter-class</dd>
-      </dl>
-    </section>
-  </body>
-</document>

+ 0 - 66
TWPUtil/libdir/JMagix/doc-src/xdocs/docs/tests.xml

@@ -1,66 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
-"http://forrest.apache.org/dtd/document-v20.dtd">
-
-<!--
-  Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
-  $Revision: 1.2 $
-  $Author: bablokb $
--->
-
-<document id="tests">
-  <header>
-    <title>Running Tests</title>
-  </header>
-
-  <body>
-    <section id="prep">
-      <title>Preparing the Test-Environment</title>
-      <p>The im4java-distribution contains a number of tests. These
-	tests done't formally proove the correctness of the code,
-	they just show that the code compiles and runs. The
-	test-cases also serve as examples for the usage of im4java.
-      </p>
-
-      <p>To prepare the test-environmet, UN*X-users just run
-      </p>
-      <source>
-	make test-prepare
-      </source>
-      <p>Windows users run:
-      </p>
-      <source>
-	bin/test-prepare.bat
-      </source>
-    </section>
-
-    <section id="run">
-      <title>Executing Tests</title>
-      <p>To run the tests, you would run one of the following
-      commands:
-      </p>
-      <source>
-	java -jar im4java-version.jar help
-	java -jar im4java-version.jar all
-	java -jar im4java-version.jar 1 2 4 9 16
-      </source>
-      <p>The first command will print a list of available tests. The
-	second command will run all tests, while the last command will
-	only run the subset of tests given as arguments. Note that the
-	<a href="reference.html#tests">reference-section</a> also
-	has a list of all available tests.
-      </p>
-      <p>
-	If you downloaded and compiled the source-package, UN*X-users
-	can just run
-      </p>
-      <source>
-	make test
-      </source>
-      <p>Note that this will also automatically prepare the
-	test-environment.
-      </p>
-    </section>
-  </body>
-</document>

BIN
TWPUtil/libdir/JMagix/doc-src/xdocs/images/project-logo.gif


+ 0 - 168
TWPUtil/libdir/JMagix/doc-src/xdocs/index.xml

@@ -1,168 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
-"http://forrest.apache.org/dtd/document-v20.dtd">
-<!--
-  Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
-  $Revision: 1.13 $
-  $Author: bablokb $
--->
-
-<document>
-  <header>
-    <title>im4java</title>
-  </header>
-
-  <body>
-    <note>The current version of im4java is 1.4.0</note>
-
-    <section id="intro">
-      <title>Introduction</title>
-
-      <p>im4java is a pure-java interface to the ImageMagick
-      commandline. For details about the project, please visit the
-      <a href="ext:project">main project page</a>.
-      </p>
-    </section>
-
-    <section id="license">
-      <title>License</title>
-
-      <p>im4java is licensed under the LGPL (see file COPYING.LIB in
-	the downloaded packages). Since im4java is a wrapper libary, you
-	should also make sure that you comply to the individual
-	license-statements of all the tools you use indirectly through
-	im4java.
-      </p>
-    </section>
-
-    <section id="description">
-      <title>Description</title>
-
-      <p>im4java is (to my knowlegde) the second java interface to
-	ImageMagick. It is not meant as a replacement for <a
-	href="ext:jmagick">JMagick</a>, but as an
-	addition.
-      </p>
-
-      <p>JMagick is a thin JNI layer above the ImageMagick C-API. im4java in
-	contrast just generates the commandline for the ImageMagick commands and
-	passes the generated line to the selected IM-command (using the 
-	java.lang.ProcessBuilder.start()-method).
-      </p>
-
-      <p>Disadvantages of the approach: your are limited to the
-	capabilities of the IM commands. With JMagick, you have access to
-	the low-level interface of IM and therefore you have a very
-	detailed control of the processing of images. And you have
-	better performance.
-      </p>
-
-      <p>Advantages of im4java: the interface of the IM commandline is quite
-	stable, so your java program (and the im4java-library) will work
-	across many versions of IM. im4java also provides a better OO interface
-	(the "language" of the IM-commandline with it's postfix-operation
-	notation translates very easily into OO-notation). And most important:
-	you can use im4java everywhere JMagick can't be used because of the
-	<a href="site:faq">JNI hazard</a> (e.g. java application servers).
-      </p>
-    </section>
-
-    <section id="features">
-      <title>Features</title>
-
-      <ul>
-	<li>supports most ImageMagick commands</li>
-	<li>reuse a commandline multiple times for different set of
-	  images
-	</li> 
-	<li>IM options and operators translate into similar
-	  method-names, e.g.
-	  <source>
-	    -resize 1024           -&gt; .resize(1024) or .resize(1024,null)
-	    -resize 1024x768       -&gt; .resize(1024,768)
-	    -resize x768           -&gt; .resize(null,768)
-	    -sigmoidal-contrast 20 -&gt; .sigmoidalContrast(20.)
-	    -append                -&gt; .append()
-	    +append                -&gt; .p_append()
-	  </source>
-	</li>
-	<li>you can pipe input to and from ImageMagick commands</li>
-	<li>BufferedImage support, i.e you can use BufferedImages as input to
-	  IM commands and pipe output of IM commands into a
-	  BufferedImage
-	</li>
-	<li>asynchronous execution of commands possible</li>
-	<li>parallel processing of multiple input-images</li>
-	<li>the architecture supports arbitrary commandline-tools</li>
-	<li>supports GraphicsMagick</li>
-	<li>supports jpegtran</li>
-	<li>supports ufraw</li>
-	<li>supports exiftool</li>
-	<li>supports dcraw</li>
-      </ul>
-    </section>
-
-    <section id="download">
-    <title>Download</title>
-
-      <p>Source and binary packages are available for download. See the <a
-	  href="ext:download">download area</a> of the
-	im4java-project. The current version is <strong>1.4.0</strong>.
-      </p>
-
-      <p>You can find a comprehensive list of changes in the <a
-	  href="site:relnotes">release notes</a>  and all the details in the file <em>ChangeLog</em>.
-      </p>
-    </section>
-
-    <section id="maven">
-    <title>Maven-Repository</title>
-      <p>
-	Thanks to the effort of users, the im4java-library is also
-	available from
-	<a href="ext:maven">maven</a>. An alternative site is <a
-	  href="ext:mavenalt">here</a> 
-	(kudos to the people at cedarsoft). Note that maven
-	is not supported by the im4java-project due to lack of
-	expertise.
-      </p>
-
-      <p>
-	The necessary pom-entry for the alternative repository is:
-      </p>
-
-      <source>
-&lt;repositories&gt;
-  &lt;repository&gt;
-    &lt;id&gt;cedarsoft-thirdparty&lt;/id&gt;
-    &lt;url&gt;http://maven.cedarsoft.com/content/repositories/thirdparty/&lt;/url&gt;
-  &lt;/repository&gt;
-&lt;/repositories&gt;
-      </source>
-
-    </section>
-
-    <section id="maillist">
-      <title>Mailing Lists</title>
-
-      <p>
-	Currently (due to low traffic and due to the same topic), the
-	JMagick and the im4java projects share the same
-	mailing-lists. Please go to the project page of <a
-	  href="ext:jmagickpro">JMagick</a>
-	and register to the jmagick-users mailing list.
-      </p>
-    </section>
-
-    <section id="projects">
-      <title>Projects using im4java</title>
-
-      <ul>
-	<li>
-	  <a href="ext:natbraille">http://natbraille.free.fr</a>
-	</li>
-      </ul>
-    </section>
-  </body>
-</document>

+ 0 - 77
TWPUtil/libdir/JMagix/doc-src/xdocs/install/index.xml

@@ -1,77 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
-"http://forrest.apache.org/dtd/document-v20.dtd">
-
-<!--
- Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
- $Revision: 1.3 $
- $Author: bablokb $
--->
-
-<document>
-  <header>
-    <title>im4java Installation</title>
-  </header>
-
-  <body>
-    <section id="install">
-      <title>Installation</title>
-      <p>
-	There is no formal installation method. If you have downloaded
-	the source-distribution and are using Linux, you should run
-      </p>
-      <source>
-	$ &gt; make src jar
-      </source>
-      <p>
-	This will generate and compile all source-files and generate the im4java
-	library (the jar file <code>im4java-version.jar</code>). Note
-	that compiling the library requires bash and make and the java
-	development kit. If you use a different operating system, you
-	must either install a unix-environment (e.g. <em>cygwin</em>
-	for Windows), or you should download the binary distribution
-	of im4java.
-      </p>
-      <p>
-	After you created the im4java library (which is also part of
-	the binary distribution), you just add it to the CLASSPATH of
-	your project.
-      </p>
-      <p>
-	If you want to recreate the documentation from source, you
-	need <a href="ext:forrest">Apache Forrest</a>, version 0.8,
-	and run
-      </p>
-      <source>
-	$ &gt; make doc
-      </source>
-    </section>
-
-    <section id="java15">
-      <title>Support for JRE 1.5</title>
-      <p>
-	In case you need a version compatible with JRE 1.5, you can
-	create a 1.5-compatible version from source with
-      </p>
-      <source>
-	$ &gt; make src jar-1.5
-      </source>
-      <p>
-	The binary distribution already has a 1.5-compatible version
-	named  <code>im4java-version-1.5.jar</code>.
-      </p>
-    </section>
-
-    <section id="start">
-      <title>Getting Started</title>
-      <p>
-	Once you have the library in place, you should read the <a
-	  href="site:devguide">Developer's Guide</a> (at least the
-	first section about setting up the environment for
-	im4java). You might also consider running a number of
-	tests. See <a href="site:tests">Running Tests</a> for details.
-      </p>
-    </section>
-  </body>
-</document>

+ 0 - 216
TWPUtil/libdir/JMagix/doc-src/xdocs/relnotes.xml

@@ -1,216 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
-"http://forrest.apache.org/dtd/document-v20.dtd">
-<document id="relnotes">
-<!--
-  Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
-  $Revision: 1.13 $
-  $Author: bablokb $
--->
-
-  <header>
-    <title>Release Notes</title>
-  </header>
-
-  <body>
-    <note>
-      For a detailed list of changes, have a look at the ChangeLog.
-    </note>
-
-    <section id="R_1_4_0">
-      <title>Release 1.4.0</title>
-      <ul>
-	<li>
-	  Added class <code>ArrayListErrorConsumer</code>. This class
-	  is useful to catch the metric-output of the
-	  <code>compare</code>-command.
-	</li>
-	<li>
-	  The <code>Info</code>-class now also accepts images from an
-	  <code>InputStream</code>. Thanks to Mihaly Koles for
-	  suggesting this change and for providing an initial
-	  implementation.
-	</li>
-	<li>Updated interfaces for ufraw, jpegtran and
-	  ImageMagick. Since the last release, there were 27 (!) new
-	  ImageMagick-options.
-	</li>
-	<li>Optimized code-generation (removed unnessary code from
-	  methods without arguments).
-	</li>
-      </ul>
-    </section>
-
-    <section id="R_1_3_2">
-      <title>Release 1.3.2</title>
-      <ul>
-	<li>
-	  The interface-definition for dcraw had various bugs. This
-	  version fixes the bugs and added two new methods
-	  (<code>setGamma</code> and <code>depth16withGamma</code>).
-	</li>
-      </ul>
-    </section>
-
-    <section id="R_1_3_1">
-      <title>Release 1.3.1</title>
-      <ul>
-	<li>Bugfix for a NullPointerException in the
-	  <code>Info</code>-class. The parser could not deal with
-	  empty lines within image-properties.</li>
-      </ul>
-    </section>
-
-    <section id="R_1_3_0">
-      <title>Release 1.3.0</title>
-      <ul>
-	<li>Added support for ImageMagick's compare-command</li>
-	<li>Update of ImageMagick's commandline options</li>
-	<li>Rework of the <code>Info</code> class: the implementation
-	  prior to 1.3.0 had a number of flaws and shortcomings. If
-	  the image contained more than one scene, the constructor
-	  requesting basic attributes would fill the attributes from
-	  the <em>first</em> scene, whereas the constructor requesting
-	  full attributes would fill the attributes from the
-	  <em>last</em> scene. In addition,
-	  <code>Info.getImageWidth()</code> and
-	  <code>Info.getImageHeight()</code>  didn't return the image
-	  width and height, but the page width and height (although
-	  for most images this is identical). With the new implementation,
-	  these bugs were fixed and all attributes of all scenes are
-	  available. Please read the API-documentation for details.
-	</li>
-	<li>Support more image-formats for BufferedImages. If you
-	  installed the JAI-extensions you gain support for
-	  CMYK-images through the JAI-tiff-plugin.</li>
-      </ul>
-    </section>
-
-    <section id="R_1_2_1">
-      <title>Release 1.2.1</title>
-      <ul>
-	<li>Documentation-update: im4java is available at maven-central</li>
-      </ul>
-    </section>
-
-    <section id="R_1_2_0">
-      <title>Release 1.2.0</title>
-      <ul>
-	<li>Code generation is much faster</li>
-	<li>Improved <code>Info</code> class: simple interface to
-	  retrieve basic image-properties</li>
-	<li>fixed a number of bugs</li>
-      </ul>
-    </section>
-
-    <section id="R_1_1_0">
-      <title>Release 1.1.0</title>
-      <ul>
-	<li>Support ImageMagick's read-modifier for image-placeholders</li>
-	<li>Support <a
-	    href="./docs/dev-guide.html#parallelProcessing">parallel
-	    processing</a> of images. This feature will
-	  efficiently use your multi-processor computer (note that
-	  this is mainly useful for desktop-applications). Note that
-	  the im4java-API for parallel processing is not yet
-	  considered as stable. This depends on feedback and
-	  bug-reports. I am not overly optimistic that I found and
-	  fixed all bugs and race-conditions.
-	</li>
-	<li>The interface <code>org.im4java.process.ProcessListener</code> is
-	  deprecated and is replaced with
-	  <code>org.im4java.process.ProcessEventListener</code>.
-	  Transition should be easy, since the interfaces are very
-	  similar. This change was necessary to support parallel
-	  processing. The old interface will be removed with the first
-	  release after beginning of 2011.
-	</li>
-	<li>Fixed a serious bug in the implementation which could lead
-	  to deadlocks under Windows (thanks to Jaroslav Snajdr for
-	  pointing this out and providing a patch).
-	</li>
-	<li>The binary-distribution now contains two versions of the
-	  im4java-jar: one for JRE 1.6, one for 1.5.
-	</li>
-	<li>The source-distribution will again contain all generated
-	  java-source-files.
-	</li>
-      </ul>
-    </section>
-
-    <section id="R_1_0_0">
-      <title>Release 1.0.0</title>
-      <ul>
-	<li>Relaunch of the project-web, adding a lot of documentation</li>
-	<li>Refactored Test.java</li>
-	<li>All tests now work under Windows</li>
-	<li>Added script-generator</li>
-	<li>Support the environment-variable IM4JAVA_TOOLPATH to set the
-	  searchpath for tools externally
-	</li>
-	<li>Removed generated files (including doc) from the source distribution</li>
-	<li>Removed source from the binary distribution</li>
-      </ul>
-    </section>
-
-    <section id="R_0_99_0">
-      <title>Release 0.99.0</title>
-      <ul>
-	<li>Added support for defining search paths</li>
-	<li>Minor fixes to interface-definition-files</li>
-      </ul>
-    </section>
-
-    <section id="R_0_98_0">
-      <title>Release 0.98.0</title>
-      <ul>
-	<li>Added support for exiftool</li>
-	<li>Added support for dcraw</li>
-	<li>minor fixes to interface-definition-files</li>
-      </ul>
-    </section>
-
-    <section id="R_0_97_0">
-      <title>Release 0.97.0</title>
-      <ul>
-	<li>Added support for ufraw</li>
-	<li>Added support for asynchronous execution of commands</li>
-	<li>Source-generation now supports commands with long-style
-	  (--foo=bar) options
-	</li>
-      </ul>
-    </section>
-
-
-    <section id="R_0_96_0">
-      <title>Release 0.96.0</title>
-      <ul>
-	<li>Source-generation now supports more than one
-	  interface-definition-file
-	</li>
-	<li>Added support for GraphicsMagick. You can hard-code
-	  GM-usage, but if you stick to the common subset of IM and GM
-	  commands, you can switch to GM at runtime by setting the
-	  system-property im4java.useGM=true.
-	</li>
-	<li>Added support for jpegtran</li>
-	<li>Added some utility-classes in org.im4java.process</li>
-	<li>ImageCommand now sends stdout to System.out as default</li>
-	<li>
-	  Incompatible change to IdentifyCmd: output is not
-	  captured by default anymore. To capture output, use the new
-	  class org.im4java.process.ArrayListOutputConsumer. See
-	  org.im4java.test.Test.testIdentify() for an example.
-	</li>
-      </ul>
-    </section>
-
-    <section id="R_0_95_0">
-      <title>Release 0.95.0</title>
-      <ul>
-	<li>Initial release</li>
-      </ul>
-    </section>
-  </body>
-</document>

+ 0 - 35
TWPUtil/libdir/JMagix/doc-src/xdocs/roadmap.xml

@@ -1,35 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
-"http://forrest.apache.org/dtd/document-v20.dtd">
-<!--
-  Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
-  $Revision: 1.2 $
-  $Author: bablokb $
--->
-
-<document>
-  <header>
-    <title>Roadmap</title>
-  </header>
-
-  <body>
-    <section id="future">
-      <title>Future Plans</title>
-
-      <p>
-	The following releases will feature:
-      </p>
-      <ul>
-	<li>update interface definitions (catch up with new options)</li>
-	<li>do some benchmarking to support a better decision between JMagick
-	  and im4java</li>
-	<li>integration with java buildtools (e.g. ant and maven)</li>
-	<li>support of additional commandline tools (suggestions welcome)</li>
-	<li>add example programs</li>
-	<li>use JMagick/GMagick-JNI as backend (if feaseable)</li>
-      </ul>
-    </section>
-
-  </body>
-</document>

+ 0 - 82
TWPUtil/libdir/JMagix/doc-src/xdocs/site.xml

@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- Copyright (c) 2010-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
- $Revision: 1.6 $
- $Author: bablokb $
--->
-
-<site label="im4java" href="" tab=""
-  xmlns="http://apache.org/forrest/linkmap/1.0">
-
-  <!-- overview-tab -->
-  <overview label="Overview">
-    <welcome label="Welcome" href="index.html" description="Welcome to
-      the im4java project website"/> 
-    <relnotes label="Release Notes" href="relnotes.html" />
-    <roadmap  label="Roadmap"       href="roadmap.html" />
-  </overview>
-
-  <!-- installation-tab -->
-  <install label="Installation" tab="install"
-	href="install/">
-    <install     label="Installation"        href="index.html#install" />
-    <jre15       label="Support for JRE 1.5" href="index.html#jre15" />
-    <start       label="Getting Started"     href="index.html#start" />
-  </install>
-  
-  <!-- documentation-tab -->
-  <docs label="Documentation" tab="docs" href="docs/">
-    <index label="Overview"             href="index.html" />
-    <devguide  label="Developer's-Guide" href="dev-guide.html" />
-    <tests     label="Tests"             href="tests.html" />
-    <reference label="Reference"         href="reference.html" />
-    <newtools  label="Adding new Tools"  href="new-tools.html" />
-    <howtos    label="Howtos"           href="howtos.html" />
-    <ht-template label=""               href="howto-template.html" />
-    <faq       label="FAQs"             href="faq.html" />
-    <api       label="API"              href="ext:im4javaapi" />
-  </docs>
-
-  <!-- tool-tab -->
-  <tools label="Tools" tab="tools"    href="tools/">
-    <im       label="ImageMagick"     href="index.html#im" />
-    <gm       label="GraphicsMagick"  href="index.html#gm" />
-    <dcraw    label="dcraw"           href="index.html#dcraw" />
-    <ufraw    label="ufraw"           href="index.html#ufraw" />
-    <exiftool label="exiftool"        href="index.html#exiftool" />
-    <jpegtran label="jpegtran"        href="index.html#jpegtran" />
-  </tools>
-
-  <!-- API-tab -->
-  <api label="im4java-API" tab="api"  href="ext:im4javaapi" />
-
-
-  <!-- external references -->
-  <external-refs>
-    <maven           href="http://mvnrepository.com/artifact/org.im4java/im4java"/>
-    <mavenalt        href="http://maven.cedarsoft.com/content/repositories/thirdparty/"/>
-    <forrest         href="http://forrest.apache.org"/>
-    <jmagick         href="http://www.jmagick.org"/>
-    <jmagickpro      href="http://www.sourceforge.net/projects/jmagick"/>
-    <imagemagick     href="http://www.imagemagick.org"/>
-    <graphicsmagick  href="http://www.graphicsmagick.org/"/>
-    <dcraw           href="http://www.cybercom.net/~dcoffin/dcraw/"/>
-    <ufraw           href="http://ufraw.sourceforge.net"/>
-    <jpegtran        href="http://www.ijg.org/"/>
-    <exiftool        href="http://owl.phy.queensu.ca/~phil/exiftool/"/>
-    <sf              href="http://sourceforge.net"/>
-    <sflogo          href="http://sflogo.sourceforge.net/sflogo.php?group_id=251357&amp;type=5"/>
-    <im4javahome     href="http://im4java.sourceforge.net"/>
-    <im4javaapi      href="http://im4java.sourceforge.net/api/"/>
-    <project         href="http://sourceforge.net/projects/im4java/"/>
-    <download        href="http://sourceforge.net/project/showfiles.php?group_id=251357"/>
-    <mail            href="mailto:bablokb . at . users.sourceforge.net"/>
-
-    <natbraille      href="http://natbraille.free.fr"/>
-
-    <jumljni         href="https://sourceforge.net/mailarchive/message.php?msg_name=20cf28cd1002231148s33c99843q875f59906dd32b8b%40mail.gmail.com" />
-  </external-refs>
-
-</site>

+ 0 - 25
TWPUtil/libdir/JMagix/doc-src/xdocs/tabs.xml

@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- Copyright (c) 2008-2010 by Bernhard Bablok (bablokb at users.sourceforge.net)
-
- $Revision: 1.1 $
- $Author: bablokb $
--->
-
-<!DOCTYPE tabs PUBLIC 
-    "-//APACHE//DTD Cocoon Documentation Tab V1.1//EN" 
-    "http://forrest.apache.org/dtd/tab-cocoon-v11.dtd">
-
-<tabs software="im4java"
-  title="A pure Java wrapper for ImageMagick and other
-    commandline-tools"
-  copyright="(c) Bernhard Bablok, 2008-2010"
-  xmlns:xlink="http://www.w3.org/1999/xlink">
-
-  <tab id=""         label="Overview"      dir="" />
-  <tab id="install"  label="Installation"  dir="install"/>
-  <tab id="docs"     label="Documentation" dir="docs"/>
-  <tab id="tools"    label="Tools"         dir="tools"/>
-  <tab id="api"      label="API"           href="http://im4java.sf.net/api/" />
-</tabs>

+ 0 - 139
TWPUtil/libdir/JMagix/doc-src/xdocs/tools/index.xml

@@ -1,139 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
-"http://forrest.apache.org/dtd/document-v20.dtd">
-
-<!--
- Copyright (c) 2010-2012 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
- $Revision: 1.2 $
- $Author: bablokb $
--->
-
-<document>
-  <header>
-    <title>Tools supported by the im4java-Library</title>
-  </header>
-
-  <body>
-    <section id="im">
-      <title>ImageMagick</title>
-      <p>
-	The commandline-tools of <a
-	  href="ext:imagemagick">ImageMagick</a> were the first tools
-	supported by im4java. Available classes:
-      </p>
-      <dl>
-	<dt><code>org.im4java.core.IMOps</code></dt>
-	<dd>automatically generated, do not use directly</dd>
-	<dt><code>org.im4java.core.IMOperation</code></dt>
-	<dd>Wrapper to commandline-options</dd>
-	<dt><code>org.im4java.core.CompareCmd</code></dt>
-	<dd>Wraps <em>compare</em></dd>
-	<dt><code>org.im4java.core.CompositeCmd</code></dt>
-	<dd>Wraps <em>composite</em></dd>
-	<dt><code>org.im4java.core.ConvertCmd</code></dt>
-	<dd>Wraps <em>convert</em></dd>
-	<dt><code>org.im4java.core.DisplayCmd</code></dt>
-	<dd>Wraps <em>display</em></dd>
-	<dt><code>org.im4java.core.IdentifyCmd</code></dt>
-	<dd>Wraps <em>identify</em></dd>
-	<dt><code>org.im4java.core.ImageMagickCmd</code></dt>
-	<dd>This class lets you pass the command to the constructor</dd>
-	<dt><code>org.im4java.core.MogrifyCmd</code></dt>
-	<dd>Wraps <em>mogrify</em></dd>
-	<dt><code>org.im4java.core.MontageCmd</code></dt>
-	<dd>Wraps <em>montage</em></dd>
-      </dl>
-    </section>
-
-    <section id="gm">
-      <title>GraphicsMagick</title>
-      <p>
-	<a href="ext:graphicsmagick">GraphicsMagick</a> is a fast
-	alternative to <a href="ext:imagemagick">ImageMagick</a>.
-	It has only a subset of ImageMagick features, but for most of
-	the daily work it the tool of choice. Available classes:
-      </p>
-      <dl>
-	<dt><code>org.im4java.core.GMOps</code></dt>
-	<dd>automatically generated, do not use directly</dd>
-	<dt><code>org.im4java.core.GMOperation</code></dt>
-	<dd>Wrapper to commandline-options</dd>
-	<dt><code>org.im4java.core.GraphicsMagickCmd</code></dt>
-	<dd>This class lets you pass the (sub)-command to the constructor</dd>
-      </dl>
-      <p>Note that you can also use the specific command-classes of
-	ImageMagick, you just have to configure im4java to use
-	GraphicsMagick.
-      </p>
-    </section>
-
-    <section id="dcraw">
-      <title>dcraw</title>
-      <p>The tool dcraw converts all kinds of RAW image-formats to
-	standard formats like tiff. Available classes:
-      </p>
-      <dl>
-	<dt><code>org.im4java.core.DCRAWOps</code></dt>
-	<dd>automatically generated, do not use directly</dd>
-	<dt><code>org.im4java.core.DCRAWOperation</code></dt>
-	<dd>Wrapper to commandline-options</dd>
-	<dt><code>org.im4java.core.DcrawCmd</code></dt>
-	<dd>Wraps <em>dcraw</em></dd>
-      </dl>
-    </section>
-
-    <section id="ufraw">
-      <title>ufraw</title>
-      <p>UFRaw, and it's batch-sibling ufraw-batch also convert RAW
-	image-formats. Available classes:
-      </p>
-      <dl>
-	<dt><code>org.im4java.core.UFRawOps</code></dt>
-	<dd>automatically generated, do not use directly</dd>
-	<dt><code>org.im4java.core.UFRawOperation</code></dt>
-	<dd>Wrapper to commandline-options</dd>
-	<dt><code>org.im4java.core.UFRawCmd</code></dt>
-	<dd>Wraps <em>ufraw</em> and <em>ufraw-batch</em>. The
-	  constructor has a boolean argument <em>batchMode</em>, if
-	  true, the wrapper runs <em>ufraw-batch</em>.</dd>
-      </dl>
-    </section>
-
-    <section id="exiftool">
-      <title>exiftool</title>
-      <p>With exiftool you can read and write
-	image-metadata. Available classes:
-      </p>
-      <dl>
-	<dt><code>org.im4java.core.ETOps</code></dt>
-	<dd>automatically generated, do not use directly</dd>
-	<dt><code>org.im4java.core.ETOperation</code></dt>
-	<dd>Wrapper to commandline-options. Exiftool differs from
-	  other tools: it supports hundreds of exif-tags as
-	  commandline-switches. To prevent bloat, im4java supports the
-	tags differently (see the methods <code>getTags</code>,
-	  <code>setTags</code> etc.)</dd>
-	<dt><code>org.im4java.core.ExiftoolCmd</code></dt>
-	<dd>Wraps <em>exiftool</em></dd>
-      </dl>
-    </section>
-
-    <section id="jpegtran">
-      <title>jpegtran</title>
-      <p>The tool jpegtran supports various lossless
-	jpeg-transformations (e.g. rotation or cropping). Available
-	classes: 
-      </p>
-      <dl>
-	<dt><code>org.im4java.core.JPTOps</code></dt>
-	<dd>automatically generated, do not use directly</dd>
-	<dt><code>org.im4java.core.JPTOperation</code></dt>
-	<dd>Wrapper to commandline-options</dd>
-	<dt><code>org.im4java.core.JpegtranCmd</code></dt>
-	<dd>Wraps <em>jpegtran</em></dd>
-      </dl>
-    </section>
-
-  </body>
-</document>

BIN
TWPUtil/libdir/JMagix/im4java-1.4.0.jar


+ 0 - 145
TWPUtil/libdir/JMagix/src/org/im4java/core/CommandException.java

@@ -1,145 +0,0 @@
-/**************************************************************************
-/* This class wraps exceptions during command execution.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-import java.util.ArrayList;
-
-/**
-   This class wraps exceptions during image-attribute retrivial.
-
-   @version $Revision: 1.4 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-@SuppressWarnings("serial")
-  public class CommandException extends IM4JavaException {
-
-    //////////////////////////////////////////////////////////////////////////////
-
-    /**
-       The stderr-output of the command.
-    */
-
-    private ArrayList<String> iErrorText = new ArrayList<String>();
-
-    //////////////////////////////////////////////////////////////////////////////
-
-    /**
-       The return-code of the failing command.
-
-       @since 1.1.1
-    */
-
-    private int iReturnCode = -1;
-
-    //////////////////////////////////////////////////////////////////////////////
-
-    /**
-       Constructor.
-    */
-
-    public  CommandException() {
-      super();
-    }
-
-    //////////////////////////////////////////////////////////////////////////////
-
-    /**
-       Constructor.
-    */
-
-    public  CommandException(String pMessage) {
-      super(pMessage);
-    }
-
-    //////////////////////////////////////////////////////////////////////////////
-
-    /**
-       Constructor.
-    */
-
-    public  CommandException(String pMessage, Throwable pCause) {
-      super(pMessage,pCause);
-    }
-
-    //////////////////////////////////////////////////////////////////////////////
-
-    /**
-       Constructor.
-    */
-
-    public  CommandException(Throwable pCause) {
-      super(pCause);
-    }
-
-    //////////////////////////////////////////////////////////////////////////////
-
-    /**
-       Return the error-text object.
-    */
-
-    public ArrayList<String> getErrorText() {
-      return iErrorText;
-    }
-
-
-    ///////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Set the error text of this exception.
-       
-     @param pErrorText	
-    */
-
-      public void setErrorText(ArrayList<String> pErrorText) {
-	iErrorText = pErrorText;
-      }
-
-    //////////////////////////////////////////////////////////////////////////////
-
-    /**
-       Return the return-code of the failing command.
-       
-       @since 1.1.1
-    */
-
-    public int getReturnCode() {
-      return iReturnCode;
-    }
-
-
-    ///////////////////////////////////////////////////////////////////////////////
-
-    /**
-       Set the return-code of the failing command.
-       
-       @param pReturnCode
-
-       @since 1.1.1
-    */
-
-      public void setReturnCode(int pReturnCode) {
-	iReturnCode = pReturnCode;
-      }
-  }

+ 0 - 64
TWPUtil/libdir/JMagix/src/org/im4java/core/CompareCmd.java

@@ -1,64 +0,0 @@
-/**************************************************************************
-/* This class wraps the compare command.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This class wraps the compare command.
-
-   @version $Revision: 1.1 $
-   @author  $Author: bablokb $
-
-   @since 1.3.0
-*/
-
-public class CompareCmd extends ImageCommand {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public  CompareCmd() {
-    super();
-    if (!Boolean.getBoolean("im4java.useGM")) {
-      setCommand("compare");
-    } else {
-      setCommand("gm","compare");
-    }
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor with option to use GraphicsMagick.
-  */
-
-  public  CompareCmd(boolean useGM) {
-    super();
-    if (useGM) {
-      setCommand("gm","compare");
-    } else {
-      setCommand("compare");
-    }
-  }
-}

+ 0 - 65
TWPUtil/libdir/JMagix/src/org/im4java/core/CompositeCmd.java

@@ -1,65 +0,0 @@
-/**************************************************************************
-/* This class wraps the IM command composite.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-
-/**
-   This class wraps the IM command composite.
-
-   @version $Revision: 1.6 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class CompositeCmd extends ImageCommand {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public  CompositeCmd() {
-    super();
-    if (!Boolean.getBoolean("im4java.useGM")) {
-      setCommand("composite");
-    } else {
-      setCommand("gm","composite");
-    }
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor with option to use GraphicsMagick.
-  */
-
-  public  CompositeCmd(boolean useGM) {
-    super();
-    if (useGM) {
-      setCommand("gm","composite");
-    } else {
-      setCommand("composite");
-    }
-  }
-}

+ 0 - 65
TWPUtil/libdir/JMagix/src/org/im4java/core/ConvertCmd.java

@@ -1,65 +0,0 @@
-/**************************************************************************
-/* This class wraps the IM command convert.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-
-/**
-   This class wraps the IM command convert.
-
-   @version $Revision: 1.6 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class ConvertCmd extends ImageCommand {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public  ConvertCmd() {
-    super();
-    if (!Boolean.getBoolean("im4java.useGM")) {
-      setCommand("convert");
-    } else {
-      setCommand("gm","convert");
-    }
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor with option to use GraphicsMagick.
-  */
-
-  public  ConvertCmd(boolean useGM) {
-    super();
-    if (useGM) {
-      setCommand("gm","convert");
-    } else {
-      setCommand("convert");
-    }
-  }
-}

+ 0 - 59
TWPUtil/libdir/JMagix/src/org/im4java/core/DCRAWOperation.java

@@ -1,59 +0,0 @@
-/**************************************************************************
-/* This class models the command-line of dcraw.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-
-/**
-   This class models the command-line of dcraw. 
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 0.98
-*/
-
-public class DCRAWOperation extends DCRAWOps {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public DCRAWOperation() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -s all to the dcraw commandline
-     (see the documentation of dcraw for details). This methods overrides
-     the automatically generated method
-  */
-
-  public DCRAWOps selectAllImages() {
-    iCmdArgs.add("-s");
-    iCmdArgs.add("all");
-    return this;
-  }
-
-}

+ 0 - 736
TWPUtil/libdir/JMagix/src/org/im4java/core/DCRAWOps.java

@@ -1,736 +0,0 @@
-/**************************************************************************
-/* This class adds all the DCRAW methods to an Operation.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This class subclasses Operation and adds methods for all commandline
-   options of dcraw.
-
-   <p>This class is automatically generated by the source-code generator of
-   im4java.</p>
-
-   @version $Revision: 1.14 $
-   @author  $Author: bablokb $
-*/
-
-public class DCRAWOps extends Operation {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The protected Constructor. You should only use subclasses of DCRAWOps.
-  */
-
-  protected DCRAWOps() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -v to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps verbose() {
-
-    iCmdArgs.add("-v");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -c to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps write2stdout() {
-
-    iCmdArgs.add("-c");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -e to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps extractThumbnail() {
-
-    iCmdArgs.add("-e");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -z to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps changeTimestamp() {
-
-    iCmdArgs.add("-z");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -i to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps identify() {
-
-    iCmdArgs.add("-i");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -P to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps setDeadpixelFile(String pFile) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-P");
-
-    if (pFile != null) {
-      buf.append(pFile.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -K to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps setDarkframeFile(String pFile) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-K");
-
-    if (pFile != null) {
-      buf.append(pFile.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -k to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps darkness(Double pDdarkness) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-k");
-
-    if (pDdarkness != null) {
-      buf.append(pDdarkness.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -S to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps saturation(Double pSaturation) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-S");
-
-    if (pSaturation != null) {
-      buf.append(pSaturation.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -n to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps noiseThreshold(Double pThreshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-n");
-
-    if (pThreshold != null) {
-      buf.append(pThreshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -C to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps colorFactor(Double pRedFactor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-C");
-
-    if (pRedFactor != null) {
-      buf.append(pRedFactor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -H to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps clipMethod(Integer pMethod) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-H");
-
-    if (pMethod != null) {
-      buf.append(pMethod.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -w to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps useCameraWB() {
-
-    iCmdArgs.add("-w");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -a to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps useAverageWB() {
-
-    iCmdArgs.add("-a");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -A to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps calcAverageWB(Integer pLeft, Integer pTop, Integer pWidth, Integer pHeight) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-A");
-
-    if (pLeft != null) {
-      buf.append(pLeft.toString());
-    }
-    if (pLeft != null || pTop != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (pTop != null) {
-      buf.append(pTop.toString());
-    }
-    if (pTop != null || pWidth != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (pWidth != null) {
-      buf.append(pWidth.toString());
-    }
-    if (pWidth != null || pHeight != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (pHeight != null) {
-      buf.append(pHeight.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -r to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps setWB(Double pMult0, Double pMult1, Double pMult2, Double pMult3) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-r");
-
-    if (pMult0 != null) {
-      buf.append(pMult0.toString());
-    }
-    if (pMult0 != null || pMult1 != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (pMult1 != null) {
-      buf.append(pMult1.toString());
-    }
-    if (pMult1 != null || pMult2 != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (pMult2 != null) {
-      buf.append(pMult2.toString());
-    }
-    if (pMult2 != null || pMult3 != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (pMult3 != null) {
-      buf.append(pMult3.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +M to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps useColorMatrix() {
-
-    iCmdArgs.add("+M");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -M to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps ignoreColorMatrix() {
-
-    iCmdArgs.add("-M");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -o to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps setOutputColorSpace(Integer pMethod) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-o");
-
-    if (pMethod != null) {
-      buf.append(pMethod.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -p to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps setCameraColorSpace(String pColorProfileFile) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-p");
-
-    if (pColorProfileFile != null) {
-      buf.append(pColorProfileFile.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -d to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps grayscale() {
-
-    iCmdArgs.add("-d");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -D to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps grayscaleRaw() {
-
-    iCmdArgs.add("-D");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -h to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps halfSize() {
-
-    iCmdArgs.add("-h");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -q to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps setInterpolationMethod(Integer pMethod) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-q");
-
-    if (pMethod != null) {
-      buf.append(pMethod.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -f to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps use4ColorRGB() {
-
-    iCmdArgs.add("-f");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -m to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps cleanupPasses(Integer pPasses) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-m");
-
-    if (pPasses != null) {
-      buf.append(pPasses.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -W to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps fixedWhiteLevel() {
-
-    iCmdArgs.add("-W");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -b to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps brightness(Double pLevel) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-b");
-
-    if (pLevel != null) {
-      buf.append(pLevel.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -g to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps setGamma(Double pPower, Double pToeSlope) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-g");
-
-    if (pPower != null) {
-      buf.append(pPower.toString());
-    }
-    if (pPower != null || pToeSlope != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (pToeSlope != null) {
-      buf.append(pToeSlope.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -6 to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps depth16withGamma() {
-
-    iCmdArgs.add("-6");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -4 to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps depth16() {
-
-    iCmdArgs.add("-4");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -T to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps createTIFF() {
-
-    iCmdArgs.add("-T");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -t to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps flipImage(Integer pValue) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-t");
-
-    if (pValue != null) {
-      buf.append(pValue.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -j to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps tilt45() {
-
-    iCmdArgs.add("-j");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -s to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps selectImage(Integer pNumber) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-s");
-
-    if (pNumber != null) {
-      buf.append(pNumber.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -s to the dcraw commandline
-     (see the documentation of dcraw for details).
-  */
-
-  public DCRAWOps selectAllImages() {
-
-    iCmdArgs.add("-s");
-
-    return this;
-  }
-
-
-}

+ 0 - 44
TWPUtil/libdir/JMagix/src/org/im4java/core/DcrawCmd.java

@@ -1,44 +0,0 @@
-/**************************************************************************
-/* This class wraps the dcraw command.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This class wraps the dcraw command.
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 0.98
-*/
-
-public class DcrawCmd extends ImageCommand {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public  DcrawCmd() {
-    super("dcraw");
-  }
-}

+ 0 - 99
TWPUtil/libdir/JMagix/src/org/im4java/core/DisplayCmd.java

@@ -1,99 +0,0 @@
-/**************************************************************************
-/* This class wraps the IM command display.
-/*
-/* Copyright (c) 2009-2010 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-import java.io.IOException;
-
-/**
-   This class wraps the IM command display.
-
-   @version $Revision: 1.14 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class DisplayCmd extends ImageCommand {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public  DisplayCmd() {
-    this(Boolean.getBoolean("im4java.useGM"));
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor with option to use GraphicsMagick.
-  */
-
-  public  DisplayCmd(boolean useGM) {
-    super();
-    if (useGM) {
-      if (System.getProperty("os.name").startsWith("Windows")) {
-	setCommand("gmdisplay");
-      } else {
-	setCommand("gm","display");
-      }
-    } else {
-      if (System.getProperty("os.name").startsWith("Windows")) {
-	setCommand("imdisplay");
-      } else {
-	setCommand("display");
-      }
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Convinience method to show the image passed as an argument.
-  */
-
-  public static void show(String pImageName)   
-                     throws IOException, InterruptedException, IM4JavaException {
-
-	Operation displayOp = new Operation();
-	displayOp.addImage(pImageName);
-	DisplayCmd disp = new DisplayCmd();
-	disp.run(displayOp);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Execute the command (replace given placeholders).
-  */
-
-  public void run(Operation pOperation, Object... images) 
-                    throws IOException, InterruptedException, IM4JavaException {
-    try {
-      super.run(pOperation,images);
-    } catch (CommandException ce) {
-      // display always returns rc > 0
-    }
-  }
-}

+ 0 - 43
TWPUtil/libdir/JMagix/src/org/im4java/core/DynamicOperation.java

@@ -1,43 +0,0 @@
-/**************************************************************************
-/* This interface defines a DynamicOperation.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This interface defines a DynamicOperation.
-
-   @version $Revision: 1.3 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public interface DynamicOperation {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Resolve the DynamicOperation.
-  */
-
-  public Operation resolveOperation(Object... pImages)
-                                                      throws IM4JavaException;
-}

+ 0 - 129
TWPUtil/libdir/JMagix/src/org/im4java/core/ETOperation.java

@@ -1,129 +0,0 @@
-/**************************************************************************
-/* This class models the command-line of exiftool.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-
-/**
-   This class models the command-line of exiftool. It extends the
-   auto-generated class ETOps with a number of methods for tag retrival
-   and tag manipulation. Since it is not efficient to translate the
-   original exiftool commandline-options directly to java-methods,
-   the methods of this class don't follow the usual 1:1 relationship
-   between method-names and commandline option-names.
-
-   @version $Revision: 1.5 $
-   @author  $Author: bablokb $
- 
-   @since 0.98
-*/
-
-public class ETOperation extends ETOps {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public ETOperation() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Query all tags with the given tag-names. This method translates to
-     the -TAG commandline options.
-     See the exiftool documentation for details.
-  */
-
-  public ETOperation getTags(String... pTags) {
-    for (String tag:pTags) {
-      iCmdArgs.add("-"+tag);
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Omit all tags with the given tag-names. This method translates to
-     the --TAG commandline options.
-     See the exiftool documentation for details.
-  */
-
-  public ETOperation omitTags(String... pTags) {
-    for (String tag:pTags) {
-      iCmdArgs.add("--"+tag);
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Set all tags with the given tag-names. This method translates to
-     the -TAG[+-][&lt;]=Value commandline options.
-     See the exiftool documentation for details.
-
-     @param pTagExpressions A list in the form Tag[+-]=[&lt;][Value],...
-  */
-
-  public ETOperation setTags(String... pTagExpressions) {
-    for (String exp:pTagExpressions) {
-      iCmdArgs.add("-"+exp);
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Set tag with the content read from a file.
-     This method translates to the -TAG<=Filename commandline option.
-     See the exiftool documentation for details.
-
-     @param pTag      A tag name
-     @param pFilename A filename or filename-template
-  */
-
-  public ETOperation setTag(String pTag, String pFilename) {
-    iCmdArgs.add("-"+pTag+"<="+pFilename);
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Delete all tags with the given tag-names. This method translates to
-     the -TAG= commandline options. Using the setTags()-methods with
-     omitted values has the same effect.
-     See the exiftool documentation for details.
-  */
-
-  public ETOperation delTags(String... pTags) {
-    for (String tag:pTags) {
-      iCmdArgs.add("-"+tag+"=");
-    }
-    return this;
-  }
-
-}

+ 0 - 1039
TWPUtil/libdir/JMagix/src/org/im4java/core/ETOps.java

@@ -1,1039 +0,0 @@
-/**************************************************************************
-/* This class adds all the ET methods to an Operation.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This class subclasses Operation and adds methods for all commandline
-   options of exiftool.
-
-   <p>This class is automatically generated by the source-code generator of
-   im4java.</p>
-
-   @version $Revision: 1.14 $
-   @author  $Author: bablokb $
-*/
-
-public class ETOps extends Operation {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The protected Constructor. You should only use subclasses of ETOps.
-  */
-
-  protected ETOps() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -@ to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps readArguments(String pFilename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-@");
-
-    if (pFilename != null) {
-      buf.append(pFilename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -duplicates to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps allowDuplicates() {
-
-    iCmdArgs.add("-duplicates");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --duplicates to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps supressDuplicates() {
-
-    iCmdArgs.add("--duplicates");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -binary to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps binary() {
-
-    iCmdArgs.add("-binary");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -coordFormat to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps coordFormat(String pFormat) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-coordFormat");
-
-    if (pFormat != null) {
-      buf.append(pFormat.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -dateFormat to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps dateFormat(String pFormat) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-dateFormat");
-
-    if (pFormat != null) {
-      buf.append(pFormat.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -decimal to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps decimal() {
-
-    iCmdArgs.add("-decimal");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --composite to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps composite() {
-
-    iCmdArgs.add("--composite");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -escapeHTML to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps escapeHTML() {
-
-    iCmdArgs.add("-escapeHTML");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -extractEmbedded to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps extractEmbedded() {
-
-    iCmdArgs.add("-extractEmbedded");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -extension to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps extension(String pExtension) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-extension");
-
-    if (pExtension != null) {
-      buf.append(pExtension.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --extension to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps ignoreExtension(String pExtension) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("--extension");
-
-    if (pExtension != null) {
-      buf.append(pExtension.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -forcePrint to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps forcePrint() {
-
-    iCmdArgs.add("-forcePrint");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fixBase to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps fixBase(Integer pOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-fixBase");
-
-    if (pOffset != null) {
-      buf.append(pOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fast to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps fast() {
-
-    iCmdArgs.add("-fast");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -groupHeadings to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps groupHeadings(String pHeadings) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("-groupHeadings");
-
-    if (pHeadings != null) {
-      buf.append(pHeadings.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -groupNames to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps groupNames(String pHeadings) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("-groupNames");
-
-    if (pHeadings != null) {
-      buf.append(pHeadings.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -htmlFormat to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps htmlFormat() {
-
-    iCmdArgs.add("-htmlFormat");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -hex to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps hex() {
-
-    iCmdArgs.add("-hex");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -htmlDump to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps htmlDump(String pOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("-htmlDump");
-
-    if (pOffset != null) {
-      buf.append(pOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -ignore to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps ignore(String pDirectory) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-ignore");
-
-    if (pDirectory != null) {
-      buf.append(pDirectory.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -if to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps ifCondition(String pExpression) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-if");
-
-    if (pExpression != null) {
-      buf.append(pExpression.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -json to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps json() {
-
-    iCmdArgs.add("-json");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -pause to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps pause() {
-
-    iCmdArgs.add("-pause");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -long to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps longOutputFormat() {
-
-    iCmdArgs.add("-long");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -latin to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps latin() {
-
-    iCmdArgs.add("-latin");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -list to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps list() {
-
-    iCmdArgs.add("-list");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -listw to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps listw() {
-
-    iCmdArgs.add("-listw");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -listf to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps listf() {
-
-    iCmdArgs.add("-listf");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -listwf to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps listwf() {
-
-    iCmdArgs.add("-listwf");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -listg to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps listg() {
-
-    iCmdArgs.add("-listg");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -listd to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps listd(String pType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-listd");
-
-    if (pType != null) {
-      buf.append(pType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -ignoreMinorErrors to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps ignoreMinorErrors() {
-
-    iCmdArgs.add("-ignoreMinorErrors");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -n to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps noPrintConv() {
-
-    iCmdArgs.add("-n");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --printConv to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps printConv() {
-
-    iCmdArgs.add("--printConv");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -out to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps out(String pFile) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-out");
-
-    if (pFile != null) {
-      buf.append(pFile.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -overwrite_original to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps overwrite_original() {
-
-    iCmdArgs.add("-overwrite_original");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -overwrite_original_in_place to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps overwrite_original_in_place() {
-
-    iCmdArgs.add("-overwrite_original_in_place");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -printFormat to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps printFormat(String pFormat) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-printFormat");
-
-    if (pFormat != null) {
-      buf.append(pFormat.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -preserve to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps preserve() {
-
-    iCmdArgs.add("-preserve");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -quiet to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps quiet() {
-
-    iCmdArgs.add("-quiet");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -recurse to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps recurse() {
-
-    iCmdArgs.add("-recurse");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -short to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps shortOutputFormat() {
-
-    iCmdArgs.add("-short");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -veryShort to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps veryShortOutputFormat() {
-
-    iCmdArgs.add("-veryShort");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scanForXMP to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps scanForXMP() {
-
-    iCmdArgs.add("-scanForXMP");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -separator to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps separator(String pSeparator) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-separator");
-
-    if (pSeparator != null) {
-      buf.append(pSeparator.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tab to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps tab() {
-
-    iCmdArgs.add("-tab");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -table to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps table() {
-
-    iCmdArgs.add("-table");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tagsFromFile to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps tagsFromFile(String pSrcFile) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-tagsFromFile");
-
-    if (pSrcFile != null) {
-      buf.append(pSrcFile.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -unknown to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps unknown() {
-
-    iCmdArgs.add("-unknown");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -unknown2 to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps unknown2() {
-
-    iCmdArgs.add("-unknown2");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -verbose to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps verbose() {
-
-    iCmdArgs.add("-verbose");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -ver to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps ver() {
-
-    iCmdArgs.add("-ver");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -textOut to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps textOut(String pOutspec) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-textOut");
-
-    if (pOutspec != null) {
-      buf.append(pOutspec.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -exclude to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps exclude(String pTagName) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-exclude");
-
-    if (pTagName != null) {
-      buf.append(pTagName.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -xmlFormat to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps xmlFormat() {
-
-    iCmdArgs.add("-xmlFormat");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -zip to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps zip() {
-
-    iCmdArgs.add("-zip");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -common_args to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps common_args() {
-
-    iCmdArgs.add("-common_args");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -execute to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps execute() {
-
-    iCmdArgs.add("-execute");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -srcfile to the exiftool commandline
-     (see the documentation of exiftool for details).
-  */
-
-  public ETOps srcfile(String pFormat) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-srcfile");
-
-    if (pFormat != null) {
-      buf.append(pFormat.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-
-}

+ 0 - 44
TWPUtil/libdir/JMagix/src/org/im4java/core/ExiftoolCmd.java

@@ -1,44 +0,0 @@
-/**************************************************************************
-/* This class wraps the exiftool command.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This class wraps the exiftool command.
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 0.98
-*/
-
-public class ExiftoolCmd extends ImageCommand {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public  ExiftoolCmd() {
-    super("exiftool");
-  }
-}

+ 0 - 74
TWPUtil/libdir/JMagix/src/org/im4java/core/GMOperation.java

@@ -1,74 +0,0 @@
-/**************************************************************************
-/* This class models the command-line of GraphicsMagick.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-
-/**
-   This class models the command-line of GraphicsMagick. 
-   It extends the class GMOps and adds some utility-methods
-   (like appendVertically()) not found in GraphicsMagick, 
-   mainly for ease of use.
-
-   <p>If you want to switch between GraphicsMagick and ImageMagick at
-   runtime (using the system-property im4java.useGM=true),
-   you have to limit yourself to the subset of options
-   common to both implementations.</p>
-
-   @version $Revision: 1.3 $
-   @author  $Author: bablokb $
- 
-   @since 0.96
-*/
-
-public class GMOperation extends GMOps {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public GMOperation() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Append images horizontally (same as +append)
-  */
-
-  public GMOperation appendHorizontally() {
-    p_append();
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Append images vertically (same as -append)
-  */
-
-  public GMOperation appendVertically() {
-    append();
-    return this;
-  }
-}

+ 0 - 9260
TWPUtil/libdir/JMagix/src/org/im4java/core/GMOps.java

@@ -1,9260 +0,0 @@
-/**************************************************************************
-/* This class adds all the GM methods to an Operation.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This class subclasses Operation and adds methods for all commandline
-   options of GraphicsMagick.
-
-   <p>This class is automatically generated by the source-code generator of
-   im4java.</p>
-
-   @version $Revision: 1.14 $
-   @author  $Author: bablokb $
-*/
-
-public class GMOps extends Operation {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The protected Constructor. You should only use subclasses of GMOps.
-  */
-
-  protected GMOps() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -adjoin to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps adjoin() {
-
-    iCmdArgs.add("-adjoin");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +adjoin to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_adjoin() {
-
-    iCmdArgs.add("+adjoin");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps affine() {
-
-    iCmdArgs.add("-affine");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps affine(Double sx) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-affine");
-
-    if (sx != null) {
-      buf.append(sx.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps affine(Double sx, Double rx) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-affine");
-
-    if (sx != null) {
-      buf.append(sx.toString());
-    }
-    if (sx != null || rx != null) {
-      buf.append(",");
-    }
-    if (rx != null) {
-      buf.append(rx.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps affine(Double sx, Double rx, Double ry) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-affine");
-
-    if (sx != null) {
-      buf.append(sx.toString());
-    }
-    if (sx != null || rx != null) {
-      buf.append(",");
-    }
-    if (rx != null) {
-      buf.append(rx.toString());
-    }
-    if (rx != null || ry != null) {
-      buf.append(",");
-    }
-    if (ry != null) {
-      buf.append(ry.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps affine(Double sx, Double rx, Double ry, Double sy) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-affine");
-
-    if (sx != null) {
-      buf.append(sx.toString());
-    }
-    if (sx != null || rx != null) {
-      buf.append(",");
-    }
-    if (rx != null) {
-      buf.append(rx.toString());
-    }
-    if (rx != null || ry != null) {
-      buf.append(",");
-    }
-    if (ry != null) {
-      buf.append(ry.toString());
-    }
-    if (ry != null || sy != null) {
-      buf.append(",");
-    }
-    if (sy != null) {
-      buf.append(sy.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps affine(Double sx, Double rx, Double ry, Double sy, Double tx) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-affine");
-
-    if (sx != null) {
-      buf.append(sx.toString());
-    }
-    if (sx != null || rx != null) {
-      buf.append(",");
-    }
-    if (rx != null) {
-      buf.append(rx.toString());
-    }
-    if (rx != null || ry != null) {
-      buf.append(",");
-    }
-    if (ry != null) {
-      buf.append(ry.toString());
-    }
-    if (ry != null || sy != null) {
-      buf.append(",");
-    }
-    if (sy != null) {
-      buf.append(sy.toString());
-    }
-    if (sy != null || tx != null) {
-      buf.append(",");
-    }
-    if (tx != null) {
-      buf.append(tx.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps affine(Double sx, Double rx, Double ry, Double sy, Double tx, Double ty) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-affine");
-
-    if (sx != null) {
-      buf.append(sx.toString());
-    }
-    if (sx != null || rx != null) {
-      buf.append(",");
-    }
-    if (rx != null) {
-      buf.append(rx.toString());
-    }
-    if (rx != null || ry != null) {
-      buf.append(",");
-    }
-    if (ry != null) {
-      buf.append(ry.toString());
-    }
-    if (ry != null || sy != null) {
-      buf.append(",");
-    }
-    if (sy != null) {
-      buf.append(sy.toString());
-    }
-    if (sy != null || tx != null) {
-      buf.append(",");
-    }
-    if (tx != null) {
-      buf.append(tx.toString());
-    }
-    if (tx != null || ty != null) {
-      buf.append(",");
-    }
-    if (ty != null) {
-      buf.append(ty.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -antialias to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps antialias() {
-
-    iCmdArgs.add("-antialias");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +antialias to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_antialias() {
-
-    iCmdArgs.add("+antialias");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -append to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps append() {
-
-    iCmdArgs.add("-append");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +append to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_append() {
-
-    iCmdArgs.add("+append");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -authenticate to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps authenticate() {
-
-    iCmdArgs.add("-authenticate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -authenticate to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps authenticate(String password) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-authenticate");
-
-    if (password != null) {
-      buf.append(password.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -average to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps average() {
-
-    iCmdArgs.add("-average");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -backdrop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps backdrop() {
-
-    iCmdArgs.add("-backdrop");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -background to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps background() {
-
-    iCmdArgs.add("-background");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -background to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps background(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-background");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -black-threshold to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps blackThreshold() {
-
-    iCmdArgs.add("-black-threshold");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -black-threshold to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps blackThreshold(Double threshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-black-threshold");
-
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -black-threshold to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps blackThreshold(Double threshold, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-black-threshold");
-
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (threshold != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blue-primary to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps bluePrimary() {
-
-    iCmdArgs.add("-blue-primary");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blue-primary to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps bluePrimary(Double x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-blue-primary");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blue-primary to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps bluePrimary(Double x, Double y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-blue-primary");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      buf.append(",");
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blur to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps blur() {
-
-    iCmdArgs.add("-blur");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blur to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps blur(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blur to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps blur(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -bordercolor to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps bordercolor() {
-
-    iCmdArgs.add("-bordercolor");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -bordercolor to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps bordercolor(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-bordercolor");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -borderwidth to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps borderwidth() {
-
-    iCmdArgs.add("-borderwidth");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -borderwidth to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps borderwidth(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-borderwidth");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -borderwidth to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps borderwidth(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-borderwidth");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -borderwidth to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps borderwidth(Integer width, Integer height, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-borderwidth");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -borderwidth to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps borderwidth(Integer width, Integer height, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-borderwidth");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -borderwidth to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps borderwidth(Integer width, Integer height, Integer x, Integer y, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-borderwidth");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +borderwidth to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_borderwidth() {
-
-    iCmdArgs.add("+borderwidth");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -border to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps border() {
-
-    iCmdArgs.add("-border");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -border to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps border(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-border");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -border to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps border(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-border");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -box to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps box() {
-
-    iCmdArgs.add("-box");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -box to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps box(String pColor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-box");
-
-    if (pColor != null) {
-      buf.append(pColor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -channel to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps channel() {
-
-    iCmdArgs.add("-channel");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -channel to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps channel(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-channel");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -charcoal to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps charcoal() {
-
-    iCmdArgs.add("-charcoal");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -charcoal to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps charcoal(Integer factor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-charcoal");
-
-    if (factor != null) {
-      buf.append(factor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -chop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps chop() {
-
-    iCmdArgs.add("-chop");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -chop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps chop(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-chop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -chop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps chop(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-chop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -chop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps chop(Integer width, Integer height, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-chop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -chop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps chop(Integer width, Integer height, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-chop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -chop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps chop(Integer width, Integer height, Integer x, Integer y, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-chop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -clip to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps clip() {
-
-    iCmdArgs.add("-clip");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -clippath to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps clippath() {
-
-    iCmdArgs.add("-clippath");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -coalesce to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps coalesce() {
-
-    iCmdArgs.add("-coalesce");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colorize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps colorize() {
-
-    iCmdArgs.add("-colorize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colorize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps colorize(Integer red) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-colorize");
-
-    if (red != null) {
-      buf.append(red.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colorize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps colorize(Integer red, Integer blue) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-colorize");
-
-    if (red != null) {
-      buf.append(red.toString());
-    }
-    if (red != null || blue != null) {
-      buf.append("/");
-    }
-    if (blue != null) {
-      buf.append(blue.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colorize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps colorize(Integer red, Integer blue, Integer green) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-colorize");
-
-    if (red != null) {
-      buf.append(red.toString());
-    }
-    if (red != null || blue != null) {
-      buf.append("/");
-    }
-    if (blue != null) {
-      buf.append(blue.toString());
-    }
-    if (blue != null || green != null) {
-      buf.append("/");
-    }
-    if (green != null) {
-      buf.append(green.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colors to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps colors() {
-
-    iCmdArgs.add("-colors");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colors to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps colors(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-colors");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colorspace to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps colorspace() {
-
-    iCmdArgs.add("-colorspace");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colorspace to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps colorspace(String value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-colorspace");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -comment to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps comment() {
-
-    iCmdArgs.add("-comment");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -comment to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps comment(String text) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-comment");
-
-    if (text != null) {
-      buf.append(text.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +compress to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_compress() {
-
-    iCmdArgs.add("+compress");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -compress to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps compress() {
-
-    iCmdArgs.add("-compress");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -compress to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps compress(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-compress");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -contrast to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps contrast() {
-
-    iCmdArgs.add("-contrast");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +contrast to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_contrast() {
-
-    iCmdArgs.add("+contrast");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve() {
-
-    iCmdArgs.add("-convolve");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10, Integer k11) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (k10 != null || k11 != null) {
-      buf.append(",");
-    }
-    if (k11 != null) {
-      buf.append(k11.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10, Integer k11, Integer k12) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (k10 != null || k11 != null) {
-      buf.append(",");
-    }
-    if (k11 != null) {
-      buf.append(k11.toString());
-    }
-    if (k11 != null || k12 != null) {
-      buf.append(",");
-    }
-    if (k12 != null) {
-      buf.append(k12.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10, Integer k11, Integer k12, Integer k13) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (k10 != null || k11 != null) {
-      buf.append(",");
-    }
-    if (k11 != null) {
-      buf.append(k11.toString());
-    }
-    if (k11 != null || k12 != null) {
-      buf.append(",");
-    }
-    if (k12 != null) {
-      buf.append(k12.toString());
-    }
-    if (k12 != null || k13 != null) {
-      buf.append(",");
-    }
-    if (k13 != null) {
-      buf.append(k13.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10, Integer k11, Integer k12, Integer k13, Integer k14) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (k10 != null || k11 != null) {
-      buf.append(",");
-    }
-    if (k11 != null) {
-      buf.append(k11.toString());
-    }
-    if (k11 != null || k12 != null) {
-      buf.append(",");
-    }
-    if (k12 != null) {
-      buf.append(k12.toString());
-    }
-    if (k12 != null || k13 != null) {
-      buf.append(",");
-    }
-    if (k13 != null) {
-      buf.append(k13.toString());
-    }
-    if (k13 != null || k14 != null) {
-      buf.append(",");
-    }
-    if (k14 != null) {
-      buf.append(k14.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10, Integer k11, Integer k12, Integer k13, Integer k14, Integer k15) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (k10 != null || k11 != null) {
-      buf.append(",");
-    }
-    if (k11 != null) {
-      buf.append(k11.toString());
-    }
-    if (k11 != null || k12 != null) {
-      buf.append(",");
-    }
-    if (k12 != null) {
-      buf.append(k12.toString());
-    }
-    if (k12 != null || k13 != null) {
-      buf.append(",");
-    }
-    if (k13 != null) {
-      buf.append(k13.toString());
-    }
-    if (k13 != null || k14 != null) {
-      buf.append(",");
-    }
-    if (k14 != null) {
-      buf.append(k14.toString());
-    }
-    if (k14 != null || k15 != null) {
-      buf.append(",");
-    }
-    if (k15 != null) {
-      buf.append(k15.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10, Integer k11, Integer k12, Integer k13, Integer k14, Integer k15, Integer k16) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (k10 != null || k11 != null) {
-      buf.append(",");
-    }
-    if (k11 != null) {
-      buf.append(k11.toString());
-    }
-    if (k11 != null || k12 != null) {
-      buf.append(",");
-    }
-    if (k12 != null) {
-      buf.append(k12.toString());
-    }
-    if (k12 != null || k13 != null) {
-      buf.append(",");
-    }
-    if (k13 != null) {
-      buf.append(k13.toString());
-    }
-    if (k13 != null || k14 != null) {
-      buf.append(",");
-    }
-    if (k14 != null) {
-      buf.append(k14.toString());
-    }
-    if (k14 != null || k15 != null) {
-      buf.append(",");
-    }
-    if (k15 != null) {
-      buf.append(k15.toString());
-    }
-    if (k15 != null || k16 != null) {
-      buf.append(",");
-    }
-    if (k16 != null) {
-      buf.append(k16.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps crop() {
-
-    iCmdArgs.add("-crop");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps crop(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-crop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps crop(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-crop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps crop(Integer width, Integer height, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-crop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps crop(Integer width, Integer height, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-crop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps crop(Integer width, Integer height, Integer x, Integer y, Character special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-crop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -cycle to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps cycle() {
-
-    iCmdArgs.add("-cycle");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -cycle to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps cycle(Integer amount) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-cycle");
-
-    if (amount != null) {
-      buf.append(amount.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +debug to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_debug() {
-
-    iCmdArgs.add("+debug");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -debug to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps debug() {
-
-    iCmdArgs.add("-debug");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -debug to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps debug(String events) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-debug");
-
-    if (events != null) {
-      buf.append(events.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -deconstruct to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps deconstruct() {
-
-    iCmdArgs.add("-deconstruct");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -define to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps define() {
-
-    iCmdArgs.add("-define");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -define to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps define(String keyValue) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-define");
-
-    if (keyValue != null) {
-      buf.append(keyValue.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +define to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_define() {
-
-    iCmdArgs.add("+define");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +define to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_define(String keyValue) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+define");
-
-    if (keyValue != null) {
-      buf.append(keyValue.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -delay to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps delay() {
-
-    iCmdArgs.add("-delay");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -delay to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps delay(Integer ticks) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-delay");
-
-    if (ticks != null) {
-      buf.append(ticks.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -delay to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps delay(Integer ticks, Integer ticksPerSecond) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-delay");
-
-    if (ticks != null) {
-      buf.append(ticks.toString());
-    }
-    if (ticks != null || ticksPerSecond != null) {
-      buf.append("x");
-    }
-    if (ticksPerSecond != null) {
-      buf.append(ticksPerSecond.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -delay to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps delay(Integer ticks, Integer ticksPerSecond, Character special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-delay");
-
-    if (ticks != null) {
-      buf.append(ticks.toString());
-    }
-    if (ticks != null || ticksPerSecond != null) {
-      buf.append("x");
-    }
-    if (ticksPerSecond != null) {
-      buf.append(ticksPerSecond.toString());
-    }
-    if (ticksPerSecond != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -density to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps density() {
-
-    iCmdArgs.add("-density");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -density to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps density(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-density");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -density to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps density(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-density");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -depth to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps depth() {
-
-    iCmdArgs.add("-depth");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -depth to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps depth(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-depth");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -despeckle to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps despeckle() {
-
-    iCmdArgs.add("-despeckle");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -display to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps display() {
-
-    iCmdArgs.add("-display");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -display to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps display(String host) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-display");
-
-    if (host != null) {
-      buf.append(host.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -display to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps display(String host, Integer display) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-display");
-
-    if (host != null) {
-      buf.append(host.toString());
-    }
-    if (host != null || display != null) {
-      buf.append(":");
-    }
-    if (display != null) {
-      buf.append(display.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -display to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps display(String host, Integer display, Integer screen) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-display");
-
-    if (host != null) {
-      buf.append(host.toString());
-    }
-    if (host != null || display != null) {
-      buf.append(":");
-    }
-    if (display != null) {
-      buf.append(display.toString());
-    }
-    if (display != null || screen != null) {
-      buf.append(".");
-    }
-    if (screen != null) {
-      buf.append(screen.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -dispose to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps dispose() {
-
-    iCmdArgs.add("-dispose");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -dispose to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps dispose(String method) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-dispose");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +dither to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_dither() {
-
-    iCmdArgs.add("+dither");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -dither to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps dither() {
-
-    iCmdArgs.add("-dither");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -dither to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps dither(String method) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-dither");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -draw to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps draw() {
-
-    iCmdArgs.add("-draw");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -draw to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps draw(String string) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-draw");
-
-    if (string != null) {
-      buf.append(string.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -edge to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps edge() {
-
-    iCmdArgs.add("-edge");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -edge to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps edge(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-edge");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -emboss to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps emboss() {
-
-    iCmdArgs.add("-emboss");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -emboss to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps emboss(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-emboss");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -encoding to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps encoding() {
-
-    iCmdArgs.add("-encoding");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -encoding to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps encoding(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-encoding");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +endian to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_endian() {
-
-    iCmdArgs.add("+endian");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -endian to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps endian() {
-
-    iCmdArgs.add("-endian");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -endian to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps endian(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-endian");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -enhance to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps enhance() {
-
-    iCmdArgs.add("-enhance");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -equalize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps equalize() {
-
-    iCmdArgs.add("-equalize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fill to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps fill() {
-
-    iCmdArgs.add("-fill");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fill to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps fill(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-fill");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -filter to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps filter() {
-
-    iCmdArgs.add("-filter");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -filter to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps filter(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-filter");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -flatten to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps flatten() {
-
-    iCmdArgs.add("-flatten");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -flip to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps flip() {
-
-    iCmdArgs.add("-flip");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -flop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps flop() {
-
-    iCmdArgs.add("-flop");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -font to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps font() {
-
-    iCmdArgs.add("-font");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -font to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps font(String name) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-font");
-
-    if (name != null) {
-      buf.append(name.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -frame to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps frame() {
-
-    iCmdArgs.add("-frame");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -frame to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps frame(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-frame");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -frame to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps frame(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-frame");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -frame to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps frame(Integer width, Integer height, Integer outerBevelWidth) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-frame");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || outerBevelWidth != null) {
-      oper="+";
-      if (outerBevelWidth.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (outerBevelWidth != null) {
-      buf.append(outerBevelWidth.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -frame to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps frame(Integer width, Integer height, Integer outerBevelWidth, Integer innerBevelWidth) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-frame");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || outerBevelWidth != null) {
-      oper="+";
-      if (outerBevelWidth.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (outerBevelWidth != null) {
-      buf.append(outerBevelWidth.toString());
-    }
-    if (outerBevelWidth != null || innerBevelWidth != null) {
-      oper="+";
-      if (innerBevelWidth.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (innerBevelWidth != null) {
-      buf.append(innerBevelWidth.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +frame to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_frame() {
-
-    iCmdArgs.add("+frame");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fuzz to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps fuzz() {
-
-    iCmdArgs.add("-fuzz");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fuzz to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps fuzz(Double distance) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-fuzz");
-
-    if (distance != null) {
-      buf.append(distance.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fuzz to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps fuzz(Double distance, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-fuzz");
-
-    if (distance != null) {
-      buf.append(distance.toString());
-    }
-    if (distance != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gamma to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps gamma() {
-
-    iCmdArgs.add("-gamma");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gamma to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps gamma(Double value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-gamma");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +gamma to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_gamma() {
-
-    iCmdArgs.add("+gamma");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +gamma to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_gamma(Double value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+gamma");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gaussian to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps gaussian() {
-
-    iCmdArgs.add("-gaussian");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gaussian to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps gaussian(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-gaussian");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gaussian to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps gaussian(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-gaussian");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -geometry to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps geometry() {
-
-    iCmdArgs.add("-geometry");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -geometry to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps geometry(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-geometry");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -geometry to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps geometry(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-geometry");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -geometry to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps geometry(Integer width, Integer height, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-geometry");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -geometry to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps geometry(Integer width, Integer height, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-geometry");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gravity to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps gravity() {
-
-    iCmdArgs.add("-gravity");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gravity to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps gravity(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-gravity");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -green-primary to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps greenPrimary() {
-
-    iCmdArgs.add("-green-primary");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -green-primary to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps greenPrimary(Double x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-green-primary");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -green-primary to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps greenPrimary(Double x, Double y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-green-primary");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      buf.append(",");
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -help to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps help() {
-
-    iCmdArgs.add("-help");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -implode to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps implode() {
-
-    iCmdArgs.add("-implode");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -implode to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps implode(Double factor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-implode");
-
-    if (factor != null) {
-      buf.append(factor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -intent to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps intent() {
-
-    iCmdArgs.add("-intent");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -intent to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps intent(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-intent");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -interlace to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps interlace() {
-
-    iCmdArgs.add("-interlace");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -interlace to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps interlace(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-interlace");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +label to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_label() {
-
-    iCmdArgs.add("+label");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -label to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps label() {
-
-    iCmdArgs.add("-label");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -label to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps label(String name) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-label");
-
-    if (name != null) {
-      buf.append(name.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -lat to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps lat() {
-
-    iCmdArgs.add("-lat");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -lat to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps lat(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-lat");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -lat to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps lat(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-lat");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -lat to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps lat(Integer width, Integer height, Integer offset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-lat");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || offset != null) {
-      oper="+";
-      if (offset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (offset != null) {
-      buf.append(offset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -lat to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps lat(Integer width, Integer height, Integer offset, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-lat");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || offset != null) {
-      oper="+";
-      if (offset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (offset != null) {
-      buf.append(offset.toString());
-    }
-    if (offset != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -level to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps level() {
-
-    iCmdArgs.add("-level");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -level to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps level(Double black_point) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-level");
-
-    if (black_point != null) {
-      buf.append(black_point.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -level to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps level(Double black_point, Double white_point) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-level");
-
-    if (black_point != null) {
-      buf.append(black_point.toString());
-    }
-    if (black_point != null || white_point != null) {
-      buf.append(",");
-    }
-    if (white_point != null) {
-      buf.append(white_point.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -level to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps level(Double black_point, Double white_point, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-level");
-
-    if (black_point != null) {
-      buf.append(black_point.toString());
-    }
-    if (black_point != null || white_point != null) {
-      buf.append(",");
-    }
-    if (white_point != null) {
-      buf.append(white_point.toString());
-    }
-    if (white_point != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -level to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps level(Double black_point, Double white_point, Boolean percent, Double gamma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-level");
-
-    if (black_point != null) {
-      buf.append(black_point.toString());
-    }
-    if (black_point != null || white_point != null) {
-      buf.append(",");
-    }
-    if (white_point != null) {
-      buf.append(white_point.toString());
-    }
-    if (white_point != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (percent != null || gamma != null) {
-      buf.append(",");
-    }
-    if (gamma != null) {
-      buf.append(gamma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -limit to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps limit() {
-
-    iCmdArgs.add("-limit");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -limit to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps limit(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-limit");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -list to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps list() {
-
-    iCmdArgs.add("-list");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -list to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps list(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-list");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -log to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps log() {
-
-    iCmdArgs.add("-log");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -log to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps log(String text) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-log");
-
-    if (text != null) {
-      buf.append(text.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -loop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps loop() {
-
-    iCmdArgs.add("-loop");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -loop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps loop(Integer iterations) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-loop");
-
-    if (iterations != null) {
-      buf.append(iterations.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +map to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_map() {
-
-    iCmdArgs.add("+map");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -map to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps map() {
-
-    iCmdArgs.add("-map");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -map to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps map(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-map");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +mask to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_mask() {
-
-    iCmdArgs.add("+mask");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -mask to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps mask() {
-
-    iCmdArgs.add("-mask");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -mask to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps mask(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-mask");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -matte to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps matte() {
-
-    iCmdArgs.add("-matte");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +matte to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_matte() {
-
-    iCmdArgs.add("+matte");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -median to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps median() {
-
-    iCmdArgs.add("-median");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -median to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps median(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-median");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -modulate to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps modulate() {
-
-    iCmdArgs.add("-modulate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -modulate to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps modulate(Double brightness) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-modulate");
-
-    if (brightness != null) {
-      buf.append(brightness.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -modulate to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps modulate(Double brightness, Double saturation) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-modulate");
-
-    if (brightness != null) {
-      buf.append(brightness.toString());
-    }
-    if (brightness != null || saturation != null) {
-      buf.append(",");
-    }
-    if (saturation != null) {
-      buf.append(saturation.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -modulate to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps modulate(Double brightness, Double saturation, Double hue) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-modulate");
-
-    if (brightness != null) {
-      buf.append(brightness.toString());
-    }
-    if (brightness != null || saturation != null) {
-      buf.append(",");
-    }
-    if (saturation != null) {
-      buf.append(saturation.toString());
-    }
-    if (saturation != null || hue != null) {
-      buf.append(",");
-    }
-    if (hue != null) {
-      buf.append(hue.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -monitor to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps monitor() {
-
-    iCmdArgs.add("-monitor");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -monochrome to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps monochrome() {
-
-    iCmdArgs.add("-monochrome");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -morph to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps morph() {
-
-    iCmdArgs.add("-morph");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -morph to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps morph(Integer frames) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-morph");
-
-    if (frames != null) {
-      buf.append(frames.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -mosaic to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps mosaic() {
-
-    iCmdArgs.add("-mosaic");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -motion-blur to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps motionBlur() {
-
-    iCmdArgs.add("-motion-blur");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -motion-blur to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps motionBlur(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-motion-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -motion-blur to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps motionBlur(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-motion-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -motion-blur to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps motionBlur(Double radius, Double sigma, Double angle) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-motion-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || angle != null) {
-      oper="+";
-      if (angle.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (angle != null) {
-      buf.append(angle.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -negate to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps negate() {
-
-    iCmdArgs.add("-negate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +negate to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_negate() {
-
-    iCmdArgs.add("+negate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -noise to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps noise() {
-
-    iCmdArgs.add("-noise");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -noise to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps noise(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-noise");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +noise to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_noise() {
-
-    iCmdArgs.add("+noise");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +noise to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_noise(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+noise");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -noop to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps noop() {
-
-    iCmdArgs.add("-noop");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -normalize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps normalize() {
-
-    iCmdArgs.add("-normalize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -opaque to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps opaque() {
-
-    iCmdArgs.add("-opaque");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -opaque to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps opaque(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-opaque");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -operator to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps operator() {
-
-    iCmdArgs.add("-operator");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -operator to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps operator(String channel) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-operator");
-
-    if (channel != null) {
-      buf.append(channel.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -operator to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps operator(String channel, String operator) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-operator");
-
-    if (channel != null) {
-      buf.append(channel.toString());
-    }
-    if (channel != null || operator != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (operator != null) {
-      buf.append(operator.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -operator to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps operator(String channel, String operator, Double rvalue) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-operator");
-
-    if (channel != null) {
-      buf.append(channel.toString());
-    }
-    if (channel != null || operator != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (operator != null) {
-      buf.append(operator.toString());
-    }
-    if (operator != null || rvalue != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (rvalue != null) {
-      buf.append(rvalue.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -operator to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps operator(String channel, String operator, Double rvalue, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-operator");
-
-    if (channel != null) {
-      buf.append(channel.toString());
-    }
-    if (channel != null || operator != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (operator != null) {
-      buf.append(operator.toString());
-    }
-    if (operator != null || rvalue != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (rvalue != null) {
-      buf.append(rvalue.toString());
-    }
-    if (rvalue != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -ordered-dither to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps orderedDither() {
-
-    iCmdArgs.add("-ordered-dither");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -ordered-dither to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps orderedDither(String channelType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-ordered-dither");
-
-    if (channelType != null) {
-      buf.append(channelType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -ordered-dither to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps orderedDither(String channelType, Integer N) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-ordered-dither");
-
-    if (channelType != null) {
-      buf.append(channelType.toString());
-    }
-    if (channelType != null || N != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (N != null) {
-      buf.append(N.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -output-directory to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps outputDirectory() {
-
-    iCmdArgs.add("-output-directory");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -output-directory to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps outputDirectory(String pDirectory) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-output-directory");
-
-    if (pDirectory != null) {
-      buf.append(pDirectory.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +page to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_page() {
-
-    iCmdArgs.add("+page");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -page to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps page() {
-
-    iCmdArgs.add("-page");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -page to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps page(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-page");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -page to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps page(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-page");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -page to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps page(Integer width, Integer height, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-page");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -page to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps page(Integer width, Integer height, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-page");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -page to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps page(Integer width, Integer height, Integer x, Integer y, Character special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-page");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -paint to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps paint() {
-
-    iCmdArgs.add("-paint");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -paint to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps paint(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-paint");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -pause to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps pause() {
-
-    iCmdArgs.add("-pause");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -pause to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps pause(Integer pSeconds) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-pause");
-
-    if (pSeconds != null) {
-      buf.append(pSeconds.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -pen to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps pen() {
-
-    iCmdArgs.add("-pen");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -pen to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps pen(String pColor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-pen");
-
-    if (pColor != null) {
-      buf.append(pColor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -ping to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps ping() {
-
-    iCmdArgs.add("-ping");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +ping to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_ping() {
-
-    iCmdArgs.add("+ping");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -pointsize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps pointsize() {
-
-    iCmdArgs.add("-pointsize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -pointsize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps pointsize(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-pointsize");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -preview to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps preview() {
-
-    iCmdArgs.add("-preview");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -preview to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps preview(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-preview");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -process to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps process() {
-
-    iCmdArgs.add("-process");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -process to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps process(String pCommand) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-process");
-
-    if (pCommand != null) {
-      buf.append(pCommand.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -profile to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps profile() {
-
-    iCmdArgs.add("-profile");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -profile to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps profile(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-profile");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +profile to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_profile() {
-
-    iCmdArgs.add("+profile");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +profile to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_profile(String profileName) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+profile");
-
-    if (profileName != null) {
-      buf.append(profileName.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +progress to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_progress() {
-
-    iCmdArgs.add("+progress");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -quality to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps quality() {
-
-    iCmdArgs.add("-quality");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -quality to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps quality(Double value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-quality");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -raise to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps raise() {
-
-    iCmdArgs.add("-raise");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -raise to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps raise(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-raise");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -raise to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps raise(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-raise");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +raise to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_raise() {
-
-    iCmdArgs.add("+raise");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +raise to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_raise(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+raise");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +raise to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_raise(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+raise");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -random-threshold to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps randomThreshold() {
-
-    iCmdArgs.add("-random-threshold");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -random-threshold to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps randomThreshold(String channelType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-random-threshold");
-
-    if (channelType != null) {
-      buf.append(channelType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -random-threshold to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps randomThreshold(String channelType, Double low) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-random-threshold");
-
-    if (channelType != null) {
-      buf.append(channelType.toString());
-    }
-    if (channelType != null || low != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (low != null) {
-      buf.append(low.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -random-threshold to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps randomThreshold(String channelType, Double low, Double high) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-random-threshold");
-
-    if (channelType != null) {
-      buf.append(channelType.toString());
-    }
-    if (channelType != null || low != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (low != null) {
-      buf.append(low.toString());
-    }
-    if (low != null || high != null) {
-      buf.append("x");
-    }
-    if (high != null) {
-      buf.append(high.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -red-primary to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps redPrimary() {
-
-    iCmdArgs.add("-red-primary");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -red-primary to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps redPrimary(Double x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-red-primary");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -red-primary to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps redPrimary(Double x, Double y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-red-primary");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      buf.append(",");
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -region to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps region() {
-
-    iCmdArgs.add("-region");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -region to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps region(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-region");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -region to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps region(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-region");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -region to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps region(Integer width, Integer height, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-region");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -region to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps region(Integer width, Integer height, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-region");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +remap to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_remap() {
-
-    iCmdArgs.add("+remap");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -render to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps render() {
-
-    iCmdArgs.add("-render");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +render to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_render() {
-
-    iCmdArgs.add("+render");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resample to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps resample() {
-
-    iCmdArgs.add("-resample");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resample to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps resample(Integer horizontal) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-resample");
-
-    if (horizontal != null) {
-      buf.append(horizontal.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resample to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps resample(Integer horizontal, Integer vertical) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-resample");
-
-    if (horizontal != null) {
-      buf.append(horizontal.toString());
-    }
-    if (horizontal != null || vertical != null) {
-      buf.append("x");
-    }
-    if (vertical != null) {
-      buf.append(vertical.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps resize() {
-
-    iCmdArgs.add("-resize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps resize(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-resize");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps resize(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-resize");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps resize(Integer width, Integer height, Character special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-resize");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -roll to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps roll() {
-
-    iCmdArgs.add("-roll");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -roll to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps roll(Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-roll");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -roll to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps roll(Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-roll");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -rotate to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps rotate() {
-
-    iCmdArgs.add("-rotate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -rotate to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps rotate(Double degrees) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-rotate");
-
-    if (degrees != null) {
-      buf.append(degrees.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -rotate to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps rotate(Double degrees, Character special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-rotate");
-
-    if (degrees != null) {
-      buf.append(degrees.toString());
-    }
-    if (degrees != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sample to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps sample() {
-
-    iCmdArgs.add("-sample");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sample to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps sample(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sample");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sample to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps sample(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sample");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sample to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps sample(Integer width, Integer height, Integer xOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sample");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sample to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps sample(Integer width, Integer height, Integer xOffset, Integer yOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sample");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (xOffset != null || yOffset != null) {
-      oper="+";
-      if (yOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (yOffset != null) {
-      buf.append(yOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sampling-factor to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps samplingFactor() {
-
-    iCmdArgs.add("-sampling-factor");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sampling-factor to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps samplingFactor(Double horizontalFactor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sampling-factor");
-
-    if (horizontalFactor != null) {
-      buf.append(horizontalFactor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sampling-factor to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps samplingFactor(Double horizontalFactor, Double verticalFactor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sampling-factor");
-
-    if (horizontalFactor != null) {
-      buf.append(horizontalFactor.toString());
-    }
-    if (horizontalFactor != null || verticalFactor != null) {
-      buf.append("x");
-    }
-    if (verticalFactor != null) {
-      buf.append(verticalFactor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scale to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps scale() {
-
-    iCmdArgs.add("-scale");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scale to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps scale(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-scale");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scale to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps scale(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-scale");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scale to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps scale(Integer width, Integer height, Integer xOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-scale");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scale to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps scale(Integer width, Integer height, Integer xOffset, Integer yOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-scale");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (xOffset != null || yOffset != null) {
-      oper="+";
-      if (yOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (yOffset != null) {
-      buf.append(yOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scene to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps scene() {
-
-    iCmdArgs.add("-scene");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scene to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps scene(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-scene");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -seed to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps seed() {
-
-    iCmdArgs.add("-seed");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -segment to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps segment() {
-
-    iCmdArgs.add("-segment");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -segment to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps segment(Integer clusterThreshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-segment");
-
-    if (clusterThreshold != null) {
-      buf.append(clusterThreshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -segment to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps segment(Integer clusterThreshold, Double smoothingThreshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-segment");
-
-    if (clusterThreshold != null) {
-      buf.append(clusterThreshold.toString());
-    }
-    if (clusterThreshold != null || smoothingThreshold != null) {
-      buf.append("x");
-    }
-    if (smoothingThreshold != null) {
-      buf.append(smoothingThreshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -set to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps set() {
-
-    iCmdArgs.add("-set");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -set to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps set(String attribute) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-set");
-
-    if (attribute != null) {
-      buf.append(attribute.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -set to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps set(String attribute, String value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-set");
-
-    if (attribute != null) {
-      buf.append(attribute.toString());
-    }
-    if (attribute != null || value != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shade to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps shade() {
-
-    iCmdArgs.add("-shade");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shade to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps shade(Double azimuth) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shade");
-
-    if (azimuth != null) {
-      buf.append(azimuth.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shade to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps shade(Double azimuth, Double elevation) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shade");
-
-    if (azimuth != null) {
-      buf.append(azimuth.toString());
-    }
-    if (azimuth != null || elevation != null) {
-      buf.append("x");
-    }
-    if (elevation != null) {
-      buf.append(elevation.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +shade to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_shade() {
-
-    iCmdArgs.add("+shade");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +shade to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_shade(Double azimuth) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+shade");
-
-    if (azimuth != null) {
-      buf.append(azimuth.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +shade to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_shade(Double azimuth, Double elevation) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+shade");
-
-    if (azimuth != null) {
-      buf.append(azimuth.toString());
-    }
-    if (azimuth != null || elevation != null) {
-      buf.append("x");
-    }
-    if (elevation != null) {
-      buf.append(elevation.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sharpen to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps sharpen() {
-
-    iCmdArgs.add("-sharpen");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sharpen to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps sharpen(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sharpen");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sharpen to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps sharpen(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sharpen");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shave to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps shave() {
-
-    iCmdArgs.add("-shave");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shave to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps shave(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shave");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shave to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps shave(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shave");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shave to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps shave(Integer width, Integer height, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shave");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shear to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps shear() {
-
-    iCmdArgs.add("-shear");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shear to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps shear(Double xDegrees) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shear");
-
-    if (xDegrees != null) {
-      buf.append(xDegrees.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shear to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps shear(Double xDegrees, Double yDegrees) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shear");
-
-    if (xDegrees != null) {
-      buf.append(xDegrees.toString());
-    }
-    if (xDegrees != null || yDegrees != null) {
-      buf.append("x");
-    }
-    if (yDegrees != null) {
-      buf.append(yDegrees.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -size to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps size() {
-
-    iCmdArgs.add("-size");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -size to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps size(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-size");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -size to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps size(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-size");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -size to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps size(Integer width, Integer height, Integer offset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-size");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || offset != null) {
-      oper="+";
-      if (offset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (offset != null) {
-      buf.append(offset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -solarize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps solarize() {
-
-    iCmdArgs.add("-solarize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -solarize to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps solarize(Double threshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-solarize");
-
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -spread to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps spread() {
-
-    iCmdArgs.add("-spread");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -spread to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps spread(Integer amount) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-spread");
-
-    if (amount != null) {
-      buf.append(amount.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -stroke to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps stroke() {
-
-    iCmdArgs.add("-stroke");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -stroke to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps stroke(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-stroke");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -strokewidth to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps strokewidth() {
-
-    iCmdArgs.add("-strokewidth");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -strokewidth to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps strokewidth(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-strokewidth");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -swirl to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps swirl() {
-
-    iCmdArgs.add("-swirl");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -swirl to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps swirl(Double degrees) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-swirl");
-
-    if (degrees != null) {
-      buf.append(degrees.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -texture to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps texture() {
-
-    iCmdArgs.add("-texture");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -texture to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps texture(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-texture");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -threshold to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps threshold() {
-
-    iCmdArgs.add("-threshold");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -threshold to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps threshold(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-threshold");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -threshold to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps threshold(Integer value, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-threshold");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (value != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tile to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps tile() {
-
-    iCmdArgs.add("-tile");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tile to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps tile(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-tile");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -transform to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps transform() {
-
-    iCmdArgs.add("-transform");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -transparent to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps transparent() {
-
-    iCmdArgs.add("-transparent");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -transparent to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps transparent(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-transparent");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -treedepth to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps treedepth() {
-
-    iCmdArgs.add("-treedepth");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -treedepth to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps treedepth(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-treedepth");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -trim to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps trim() {
-
-    iCmdArgs.add("-trim");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -type to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps type() {
-
-    iCmdArgs.add("-type");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -type to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps type(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-type");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -undercolor to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps undercolor() {
-
-    iCmdArgs.add("-undercolor");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -undercolor to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps undercolor(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-undercolor");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -units to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps units() {
-
-    iCmdArgs.add("-units");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -units to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps units(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-units");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -unsharp to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps unsharp() {
-
-    iCmdArgs.add("-unsharp");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -unsharp to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps unsharp(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-unsharp");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -unsharp to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps unsharp(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-unsharp");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -unsharp to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps unsharp(Double radius, Double sigma, Double amount) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-unsharp");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || amount != null) {
-      oper="+";
-      if (amount.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (amount != null) {
-      buf.append(amount.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -unsharp to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps unsharp(Double radius, Double sigma, Double amount, Double threshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-unsharp");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || amount != null) {
-      oper="+";
-      if (amount.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (amount != null) {
-      buf.append(amount.toString());
-    }
-    if (amount != null || threshold != null) {
-      oper="+";
-      if (threshold.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -verbose to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps verbose() {
-
-    iCmdArgs.add("-verbose");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -version to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps version() {
-
-    iCmdArgs.add("-version");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -view to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps view() {
-
-    iCmdArgs.add("-view");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -view to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps view(String text) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-view");
-
-    if (text != null) {
-      buf.append(text.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -virtual-pixel to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps virtualPixel() {
-
-    iCmdArgs.add("-virtual-pixel");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -virtual-pixel to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps virtualPixel(String method) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-virtual-pixel");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -wave to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps wave() {
-
-    iCmdArgs.add("-wave");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -wave to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps wave(Double amplitude) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-wave");
-
-    if (amplitude != null) {
-      buf.append(amplitude.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -wave to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps wave(Double amplitude, Double wavelength) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-wave");
-
-    if (amplitude != null) {
-      buf.append(amplitude.toString());
-    }
-    if (amplitude != null || wavelength != null) {
-      buf.append("x");
-    }
-    if (wavelength != null) {
-      buf.append(wavelength.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -white-point to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps whitePoint() {
-
-    iCmdArgs.add("-white-point");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -white-point to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps whitePoint(Double x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-white-point");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -white-point to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps whitePoint(Double x, Double y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-white-point");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      buf.append(",");
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -white-threshold to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps whiteThreshold() {
-
-    iCmdArgs.add("-white-threshold");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -white-threshold to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps whiteThreshold(Double threshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-white-threshold");
-
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -white-threshold to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps whiteThreshold(Double threshold, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-white-threshold");
-
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (threshold != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -write to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps write() {
-
-    iCmdArgs.add("-write");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -write to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps write(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-write");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +write to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_write() {
-
-    iCmdArgs.add("+write");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +write to the GraphicsMagick commandline
-     (see the documentation of GraphicsMagick for details).
-  */
-
-  public GMOps p_write(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+write");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-
-}

+ 0 - 49
TWPUtil/libdir/JMagix/src/org/im4java/core/GraphicsMagickCmd.java

@@ -1,49 +0,0 @@
-/**************************************************************************
-/* This class wraps the GraphicsMagick command.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This class wraps the GraphicsMagick command-set. There should be no
-   need to use this class, since for all GM-commands there are
-   class-wrappers available (e.g. ConvertCmd) which are more specific
-   and provide extended functionality.
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 1.0.0
-*/
-
-public class GraphicsMagickCmd extends ImageCommand {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor. Note that this constructor does not allow you to change
-     the implementation von GM to IM at runtime.
-  */
-
-  public  GraphicsMagickCmd(String pCommand) {
-    super();
-    setCommand("gm",pCommand);
-  }
-}

+ 0 - 78
TWPUtil/libdir/JMagix/src/org/im4java/core/IM4JavaException.java

@@ -1,78 +0,0 @@
-/**************************************************************************
-/* This class is the base class of all  -exceptions.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-import java.util.*;
-import java.io.*;
-
-/**
-   This class is the base class of all im4java -exceptions.
-
-   @version $Revision: 1.5 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class IM4JavaException extends Exception {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public IM4JavaException() {
-    super();
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public IM4JavaException(String pMessage) {
-    super(pMessage);
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public IM4JavaException(String pMessage, Throwable pCause) {
-    super(pMessage,pCause);
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public IM4JavaException(Throwable pCause) {
-    super(pCause);
-  }
-
-}

+ 0 - 122
TWPUtil/libdir/JMagix/src/org/im4java/core/IMOperation.java

@@ -1,122 +0,0 @@
-/**************************************************************************
-/* This class models the command-line of ImageMagick.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-
-/**
-    This class models the command-line of ImageMagick.
-    It extends the class IMOps and adds some utility-methods
-   (like appendVertically()) not
-   found in ImageMagick, mainly for ease of use. Subclasses of IMOperation
-   implement more specific operations (e.g.  ChannelMixer).
-
-   <p>If you want to switch between GraphicsMagick and ImageMagick at
-   runtime (using the system-property im4java.useGM=true), you have to
-   limit yourself to the subset of options
-   common to both implementations.</p>
-
-   @version $Revision: 1.12 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class IMOperation extends IMOps {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public IMOperation() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Open a sub-operation (add a opening parenthesis).
-  */
-
-  public IMOperation openOperation() {
-    return (IMOperation) addRawArgs("(");
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Close a sub-operation (add a closing parenthesis).
-  */
-
-  public IMOperation closeOperation() {
-    return (IMOperation) addRawArgs(")");
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add a IMOperation as a suboperation.
-  */
-
-  public IMOperation addSubOperation(Operation pSubOperation) {
-    openOperation();
-    addRawArgs(pSubOperation.getCmdArgs());
-    return closeOperation(); 
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Append images horizontally (same as +append)
-  */
-
-  public IMOperation appendHorizontally() {
-    p_append();
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Append images vertically (same as -append)
-  */
-
-  public IMOperation appendVertically() {
-    append();
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Apply a HALD-CLUT. This method takes the clut-image as a parameter. The
-     standard (autogenerated) method has no parameters. The IM-operator
-     just uses the last image of the image-stack as the clut-image.
-
-     @param pCLUTImage the HALD-CLUT image
-  */
-
-  public IMOperation haldClut(String pCLUTImage) {
-    addImage(pCLUTImage);
-    return (IMOperation) haldClut();
-  }
-}

+ 0 - 16532
TWPUtil/libdir/JMagix/src/org/im4java/core/IMOps.java

@@ -1,16532 +0,0 @@
-/**************************************************************************
-/* This class adds all the IM methods to an Operation.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This class subclasses Operation and adds methods for all commandline
-   options of ImageMagick.
-
-   <p>This class is automatically generated by the source-code generator of
-   im4java.</p>
-
-   @version $Revision: 1.14 $
-   @author  $Author: bablokb $
-*/
-
-public class IMOps extends Operation {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The protected Constructor. You should only use subclasses of IMOps.
-  */
-
-  protected IMOps() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -adaptive-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps adaptiveBlur() {
-
-    iCmdArgs.add("-adaptive-blur");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -adaptive-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps adaptiveBlur(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-adaptive-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -adaptive-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps adaptiveBlur(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-adaptive-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -adaptive-resize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps adaptiveResize() {
-
-    iCmdArgs.add("-adaptive-resize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -adaptive-resize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps adaptiveResize(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-adaptive-resize");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -adaptive-resize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps adaptiveResize(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-adaptive-resize");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -adaptive-resize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps adaptiveResize(Integer width, Integer height, Character special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-adaptive-resize");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -adaptive-resize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps adaptiveResize(Integer width, Integer height, String special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-adaptive-resize");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -adaptive-sharpen to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps adaptiveSharpen() {
-
-    iCmdArgs.add("-adaptive-sharpen");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -adaptive-sharpen to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps adaptiveSharpen(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-adaptive-sharpen");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -adaptive-sharpen to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps adaptiveSharpen(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-adaptive-sharpen");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -adjoin to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps adjoin() {
-
-    iCmdArgs.add("-adjoin");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +adjoin to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_adjoin() {
-
-    iCmdArgs.add("+adjoin");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps affine() {
-
-    iCmdArgs.add("-affine");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps affine(Double sx) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-affine");
-
-    if (sx != null) {
-      buf.append(sx.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps affine(Double sx, Double rx) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-affine");
-
-    if (sx != null) {
-      buf.append(sx.toString());
-    }
-    if (sx != null || rx != null) {
-      buf.append(",");
-    }
-    if (rx != null) {
-      buf.append(rx.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps affine(Double sx, Double rx, Double ry) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-affine");
-
-    if (sx != null) {
-      buf.append(sx.toString());
-    }
-    if (sx != null || rx != null) {
-      buf.append(",");
-    }
-    if (rx != null) {
-      buf.append(rx.toString());
-    }
-    if (rx != null || ry != null) {
-      buf.append(",");
-    }
-    if (ry != null) {
-      buf.append(ry.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps affine(Double sx, Double rx, Double ry, Double sy) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-affine");
-
-    if (sx != null) {
-      buf.append(sx.toString());
-    }
-    if (sx != null || rx != null) {
-      buf.append(",");
-    }
-    if (rx != null) {
-      buf.append(rx.toString());
-    }
-    if (rx != null || ry != null) {
-      buf.append(",");
-    }
-    if (ry != null) {
-      buf.append(ry.toString());
-    }
-    if (ry != null || sy != null) {
-      buf.append(",");
-    }
-    if (sy != null) {
-      buf.append(sy.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps affine(Double sx, Double rx, Double ry, Double sy, Double tx) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-affine");
-
-    if (sx != null) {
-      buf.append(sx.toString());
-    }
-    if (sx != null || rx != null) {
-      buf.append(",");
-    }
-    if (rx != null) {
-      buf.append(rx.toString());
-    }
-    if (rx != null || ry != null) {
-      buf.append(",");
-    }
-    if (ry != null) {
-      buf.append(ry.toString());
-    }
-    if (ry != null || sy != null) {
-      buf.append(",");
-    }
-    if (sy != null) {
-      buf.append(sy.toString());
-    }
-    if (sy != null || tx != null) {
-      buf.append(",");
-    }
-    if (tx != null) {
-      buf.append(tx.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -affine to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps affine(Double sx, Double rx, Double ry, Double sy, Double tx, Double ty) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-affine");
-
-    if (sx != null) {
-      buf.append(sx.toString());
-    }
-    if (sx != null || rx != null) {
-      buf.append(",");
-    }
-    if (rx != null) {
-      buf.append(rx.toString());
-    }
-    if (rx != null || ry != null) {
-      buf.append(",");
-    }
-    if (ry != null) {
-      buf.append(ry.toString());
-    }
-    if (ry != null || sy != null) {
-      buf.append(",");
-    }
-    if (sy != null) {
-      buf.append(sy.toString());
-    }
-    if (sy != null || tx != null) {
-      buf.append(",");
-    }
-    if (tx != null) {
-      buf.append(tx.toString());
-    }
-    if (tx != null || ty != null) {
-      buf.append(",");
-    }
-    if (ty != null) {
-      buf.append(ty.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -alpha to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps alpha() {
-
-    iCmdArgs.add("-alpha");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -alpha to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps alpha(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-alpha");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -annotate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps annotate() {
-
-    iCmdArgs.add("-annotate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -annotate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps annotate(Integer xr) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-annotate");
-
-    if (xr != null) {
-      buf.append(xr.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -annotate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps annotate(Integer xr, Integer yr) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-annotate");
-
-    if (xr != null) {
-      buf.append(xr.toString());
-    }
-    if (xr != null || yr != null) {
-      buf.append("x");
-    }
-    if (yr != null) {
-      buf.append(yr.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -annotate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps annotate(Integer xr, Integer yr, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-annotate");
-
-    if (xr != null) {
-      buf.append(xr.toString());
-    }
-    if (xr != null || yr != null) {
-      buf.append("x");
-    }
-    if (yr != null) {
-      buf.append(yr.toString());
-    }
-    if (yr != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -annotate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps annotate(Integer xr, Integer yr, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-annotate");
-
-    if (xr != null) {
-      buf.append(xr.toString());
-    }
-    if (xr != null || yr != null) {
-      buf.append("x");
-    }
-    if (yr != null) {
-      buf.append(yr.toString());
-    }
-    if (yr != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -annotate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps annotate(Integer xr, Integer yr, Integer x, Integer y, String text) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-annotate");
-
-    if (xr != null) {
-      buf.append(xr.toString());
-    }
-    if (xr != null || yr != null) {
-      buf.append("x");
-    }
-    if (yr != null) {
-      buf.append(yr.toString());
-    }
-    if (yr != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || text != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (text != null) {
-      buf.append(text.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -antialias to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps antialias() {
-
-    iCmdArgs.add("-antialias");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +antialias to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_antialias() {
-
-    iCmdArgs.add("+antialias");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -append to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps append() {
-
-    iCmdArgs.add("-append");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +append to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_append() {
-
-    iCmdArgs.add("+append");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -attenuate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps attenuate() {
-
-    iCmdArgs.add("-attenuate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -attenuate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps attenuate(Double value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-attenuate");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -authenticate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps authenticate() {
-
-    iCmdArgs.add("-authenticate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -authenticate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps authenticate(String password) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-authenticate");
-
-    if (password != null) {
-      buf.append(password.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -auto-gamma to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps autoGamma() {
-
-    iCmdArgs.add("-auto-gamma");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -auto-level to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps autoLevel() {
-
-    iCmdArgs.add("-auto-level");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -auto-orient to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps autoOrient() {
-
-    iCmdArgs.add("-auto-orient");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -average to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps average() {
-
-    iCmdArgs.add("-average");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -backdrop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps backdrop() {
-
-    iCmdArgs.add("-backdrop");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -backdrop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps backdrop(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-backdrop");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -background to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps background() {
-
-    iCmdArgs.add("-background");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -background to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps background(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-background");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -bench to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps bench() {
-
-    iCmdArgs.add("-bench");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -bench to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps bench(Integer iterations) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-bench");
-
-    if (iterations != null) {
-      buf.append(iterations.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blend to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps blend() {
-
-    iCmdArgs.add("-blend");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blend to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps blend(Integer srcPercent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-blend");
-
-    if (srcPercent != null) {
-      buf.append(srcPercent.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blend to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps blend(Integer srcPercent, Integer dstPercent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-blend");
-
-    if (srcPercent != null) {
-      buf.append(srcPercent.toString());
-    }
-    if (srcPercent != null || dstPercent != null) {
-      buf.append("x");
-    }
-    if (dstPercent != null) {
-      buf.append(dstPercent.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -bias to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps bias() {
-
-    iCmdArgs.add("-bias");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -bias to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps bias(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-bias");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -bias to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps bias(Integer value, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-bias");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (value != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -black-point-compensation to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps blackPointCompensation() {
-
-    iCmdArgs.add("-black-point-compensation");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -black-threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps blackThreshold() {
-
-    iCmdArgs.add("-black-threshold");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -black-threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps blackThreshold(Double threshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-black-threshold");
-
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -black-threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps blackThreshold(Double threshold, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-black-threshold");
-
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (threshold != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blue-primary to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps bluePrimary() {
-
-    iCmdArgs.add("-blue-primary");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blue-primary to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps bluePrimary(Double x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-blue-primary");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blue-primary to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps bluePrimary(Double x, Double y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-blue-primary");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      buf.append(",");
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blue-shift to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps blueShift() {
-
-    iCmdArgs.add("-blue-shift");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blue-shift to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps blueShift(Double factor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-blue-shift");
-
-    if (factor != null) {
-      buf.append(factor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps blur() {
-
-    iCmdArgs.add("-blur");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps blur(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps blur(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -bordercolor to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps bordercolor() {
-
-    iCmdArgs.add("-bordercolor");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -bordercolor to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps bordercolor(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-bordercolor");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -border to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps border() {
-
-    iCmdArgs.add("-border");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -border to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps border(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-border");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -border to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps border(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-border");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -borderwidth to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps borderwidth() {
-
-    iCmdArgs.add("-borderwidth");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -borderwidth to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps borderwidth(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-borderwidth");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -borderwidth to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps borderwidth(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-borderwidth");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -borderwidth to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps borderwidth(Integer width, Integer height, Integer xOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-borderwidth");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -borderwidth to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps borderwidth(Integer width, Integer height, Integer xOffset, Integer yOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-borderwidth");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (xOffset != null || yOffset != null) {
-      oper="+";
-      if (yOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (yOffset != null) {
-      buf.append(yOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -brightness-contrast to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps brightnessContrast() {
-
-    iCmdArgs.add("-brightness-contrast");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -brightness-contrast to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps brightnessContrast(Double brightness) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-brightness-contrast");
-
-    if (brightness != null) {
-      buf.append(brightness.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -brightness-contrast to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps brightnessContrast(Double brightness, Double contrast) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-brightness-contrast");
-
-    if (brightness != null) {
-      buf.append(brightness.toString());
-    }
-    if (brightness != null || contrast != null) {
-      buf.append("x");
-    }
-    if (contrast != null) {
-      buf.append(contrast.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -brightness-contrast to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps brightnessContrast(Double brightness, Double contrast, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-brightness-contrast");
-
-    if (brightness != null) {
-      buf.append(brightness.toString());
-    }
-    if (brightness != null || contrast != null) {
-      buf.append("x");
-    }
-    if (contrast != null) {
-      buf.append(contrast.toString());
-    }
-    if (contrast != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -cache to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps cache() {
-
-    iCmdArgs.add("-cache");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -cache to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps cache(Double threshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-cache");
-
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -caption to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps caption() {
-
-    iCmdArgs.add("-caption");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -caption to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps caption(String text) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-caption");
-
-    if (text != null) {
-      buf.append(text.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -cdl to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps cdl() {
-
-    iCmdArgs.add("-cdl");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -cdl to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps cdl(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-cdl");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +channel to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_channel() {
-
-    iCmdArgs.add("+channel");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -channel to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps channel() {
-
-    iCmdArgs.add("-channel");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -channel to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps channel(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-channel");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -charcoal to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps charcoal() {
-
-    iCmdArgs.add("-charcoal");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -charcoal to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps charcoal(Integer factor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-charcoal");
-
-    if (factor != null) {
-      buf.append(factor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -chop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps chop() {
-
-    iCmdArgs.add("-chop");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -chop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps chop(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-chop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -chop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps chop(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-chop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -chop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps chop(Integer width, Integer height, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-chop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -chop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps chop(Integer width, Integer height, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-chop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -chop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps chop(Integer width, Integer height, Integer x, Integer y, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-chop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -clamp to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps clamp() {
-
-    iCmdArgs.add("-clamp");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -clip to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps clip() {
-
-    iCmdArgs.add("-clip");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -clip-mask to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps clipMask() {
-
-    iCmdArgs.add("-clip-mask");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -clip-path to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps clipPath() {
-
-    iCmdArgs.add("-clip-path");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -clip-path to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps clipPath(String id) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-clip-path");
-
-    if (id != null) {
-      buf.append(id.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +clip-path to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_clipPath() {
-
-    iCmdArgs.add("+clip-path");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +clip-path to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_clipPath(String id) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+clip-path");
-
-    if (id != null) {
-      buf.append(id.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +clone to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_clone() {
-
-    iCmdArgs.add("+clone");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -clone to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps clone() {
-
-    iCmdArgs.add("-clone");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -clone to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps clone(Integer index1) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-clone");
-
-    if (index1 != null) {
-      buf.append(index1.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -clone to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps clone(Integer index1, Integer index2) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-clone");
-
-    if (index1 != null) {
-      buf.append(index1.toString());
-    }
-    if (index1 != null || index2 != null) {
-      buf.append(",");
-    }
-    if (index2 != null) {
-      buf.append(index2.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -clone to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps clone(Integer index1, Integer index2, Integer index3) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-clone");
-
-    if (index1 != null) {
-      buf.append(index1.toString());
-    }
-    if (index1 != null || index2 != null) {
-      buf.append(",");
-    }
-    if (index2 != null) {
-      buf.append(index2.toString());
-    }
-    if (index2 != null || index3 != null) {
-      buf.append(",");
-    }
-    if (index3 != null) {
-      buf.append(index3.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -clone to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps clone(String indexes) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-clone");
-
-    if (indexes != null) {
-      buf.append(indexes.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -clut to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps clut() {
-
-    iCmdArgs.add("-clut");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -coalesce to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps coalesce() {
-
-    iCmdArgs.add("-coalesce");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colorize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps colorize() {
-
-    iCmdArgs.add("-colorize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colorize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps colorize(Integer red) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-colorize");
-
-    if (red != null) {
-      buf.append(red.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colorize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps colorize(Integer red, Integer blue) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-colorize");
-
-    if (red != null) {
-      buf.append(red.toString());
-    }
-    if (red != null || blue != null) {
-      buf.append(",");
-    }
-    if (blue != null) {
-      buf.append(blue.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colorize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps colorize(Integer red, Integer blue, Integer green) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-colorize");
-
-    if (red != null) {
-      buf.append(red.toString());
-    }
-    if (red != null || blue != null) {
-      buf.append(",");
-    }
-    if (blue != null) {
-      buf.append(blue.toString());
-    }
-    if (blue != null || green != null) {
-      buf.append(",");
-    }
-    if (green != null) {
-      buf.append(green.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colormap to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps colormap() {
-
-    iCmdArgs.add("-colormap");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colormap to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps colormap(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-colormap");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -color-matrix to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps colorMatrix() {
-
-    iCmdArgs.add("-color-matrix");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -color-matrix to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps colorMatrix(String matrix) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-color-matrix");
-
-    if (matrix != null) {
-      buf.append(matrix.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colors to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps colors() {
-
-    iCmdArgs.add("-colors");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colors to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps colors(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-colors");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colorspace to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps colorspace() {
-
-    iCmdArgs.add("-colorspace");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -colorspace to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps colorspace(String value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-colorspace");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -combine to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps combine() {
-
-    iCmdArgs.add("-combine");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -comment to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps comment() {
-
-    iCmdArgs.add("-comment");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -comment to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps comment(String text) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-comment");
-
-    if (text != null) {
-      buf.append(text.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -compose to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps compose() {
-
-    iCmdArgs.add("-compose");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -compose to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps compose(String operator) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-compose");
-
-    if (operator != null) {
-      buf.append(operator.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -composite to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps composite() {
-
-    iCmdArgs.add("-composite");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +compress to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_compress() {
-
-    iCmdArgs.add("+compress");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -compress to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps compress() {
-
-    iCmdArgs.add("-compress");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -compress to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps compress(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-compress");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -contrast to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps contrast() {
-
-    iCmdArgs.add("-contrast");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +contrast to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_contrast() {
-
-    iCmdArgs.add("+contrast");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -contrast-stretch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps contrastStretch() {
-
-    iCmdArgs.add("-contrast-stretch");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -contrast-stretch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps contrastStretch(Integer blackPoint) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-contrast-stretch");
-
-    if (blackPoint != null) {
-      buf.append(blackPoint.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -contrast-stretch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps contrastStretch(Integer blackPoint, Integer whitePoint) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-contrast-stretch");
-
-    if (blackPoint != null) {
-      buf.append(blackPoint.toString());
-    }
-    if (blackPoint != null || whitePoint != null) {
-      buf.append("x");
-    }
-    if (whitePoint != null) {
-      buf.append(whitePoint.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -contrast-stretch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps contrastStretch(Integer blackPoint, Integer whitePoint, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-contrast-stretch");
-
-    if (blackPoint != null) {
-      buf.append(blackPoint.toString());
-    }
-    if (blackPoint != null || whitePoint != null) {
-      buf.append("x");
-    }
-    if (whitePoint != null) {
-      buf.append(whitePoint.toString());
-    }
-    if (whitePoint != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve() {
-
-    iCmdArgs.add("-convolve");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10, Integer k11) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (k10 != null || k11 != null) {
-      buf.append(",");
-    }
-    if (k11 != null) {
-      buf.append(k11.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10, Integer k11, Integer k12) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (k10 != null || k11 != null) {
-      buf.append(",");
-    }
-    if (k11 != null) {
-      buf.append(k11.toString());
-    }
-    if (k11 != null || k12 != null) {
-      buf.append(",");
-    }
-    if (k12 != null) {
-      buf.append(k12.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10, Integer k11, Integer k12, Integer k13) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (k10 != null || k11 != null) {
-      buf.append(",");
-    }
-    if (k11 != null) {
-      buf.append(k11.toString());
-    }
-    if (k11 != null || k12 != null) {
-      buf.append(",");
-    }
-    if (k12 != null) {
-      buf.append(k12.toString());
-    }
-    if (k12 != null || k13 != null) {
-      buf.append(",");
-    }
-    if (k13 != null) {
-      buf.append(k13.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10, Integer k11, Integer k12, Integer k13, Integer k14) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (k10 != null || k11 != null) {
-      buf.append(",");
-    }
-    if (k11 != null) {
-      buf.append(k11.toString());
-    }
-    if (k11 != null || k12 != null) {
-      buf.append(",");
-    }
-    if (k12 != null) {
-      buf.append(k12.toString());
-    }
-    if (k12 != null || k13 != null) {
-      buf.append(",");
-    }
-    if (k13 != null) {
-      buf.append(k13.toString());
-    }
-    if (k13 != null || k14 != null) {
-      buf.append(",");
-    }
-    if (k14 != null) {
-      buf.append(k14.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10, Integer k11, Integer k12, Integer k13, Integer k14, Integer k15) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (k10 != null || k11 != null) {
-      buf.append(",");
-    }
-    if (k11 != null) {
-      buf.append(k11.toString());
-    }
-    if (k11 != null || k12 != null) {
-      buf.append(",");
-    }
-    if (k12 != null) {
-      buf.append(k12.toString());
-    }
-    if (k12 != null || k13 != null) {
-      buf.append(",");
-    }
-    if (k13 != null) {
-      buf.append(k13.toString());
-    }
-    if (k13 != null || k14 != null) {
-      buf.append(",");
-    }
-    if (k14 != null) {
-      buf.append(k14.toString());
-    }
-    if (k14 != null || k15 != null) {
-      buf.append(",");
-    }
-    if (k15 != null) {
-      buf.append(k15.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -convolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps convolve(Integer k1, Integer k2, Integer k3, Integer k4, Integer k5, Integer k6, Integer k7, Integer k8, Integer k9, Integer k10, Integer k11, Integer k12, Integer k13, Integer k14, Integer k15, Integer k16) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-convolve");
-
-    if (k1 != null) {
-      buf.append(k1.toString());
-    }
-    if (k1 != null || k2 != null) {
-      buf.append(",");
-    }
-    if (k2 != null) {
-      buf.append(k2.toString());
-    }
-    if (k2 != null || k3 != null) {
-      buf.append(",");
-    }
-    if (k3 != null) {
-      buf.append(k3.toString());
-    }
-    if (k3 != null || k4 != null) {
-      buf.append(",");
-    }
-    if (k4 != null) {
-      buf.append(k4.toString());
-    }
-    if (k4 != null || k5 != null) {
-      buf.append(",");
-    }
-    if (k5 != null) {
-      buf.append(k5.toString());
-    }
-    if (k5 != null || k6 != null) {
-      buf.append(",");
-    }
-    if (k6 != null) {
-      buf.append(k6.toString());
-    }
-    if (k6 != null || k7 != null) {
-      buf.append(",");
-    }
-    if (k7 != null) {
-      buf.append(k7.toString());
-    }
-    if (k7 != null || k8 != null) {
-      buf.append(",");
-    }
-    if (k8 != null) {
-      buf.append(k8.toString());
-    }
-    if (k8 != null || k9 != null) {
-      buf.append(",");
-    }
-    if (k9 != null) {
-      buf.append(k9.toString());
-    }
-    if (k9 != null || k10 != null) {
-      buf.append(",");
-    }
-    if (k10 != null) {
-      buf.append(k10.toString());
-    }
-    if (k10 != null || k11 != null) {
-      buf.append(",");
-    }
-    if (k11 != null) {
-      buf.append(k11.toString());
-    }
-    if (k11 != null || k12 != null) {
-      buf.append(",");
-    }
-    if (k12 != null) {
-      buf.append(k12.toString());
-    }
-    if (k12 != null || k13 != null) {
-      buf.append(",");
-    }
-    if (k13 != null) {
-      buf.append(k13.toString());
-    }
-    if (k13 != null || k14 != null) {
-      buf.append(",");
-    }
-    if (k14 != null) {
-      buf.append(k14.toString());
-    }
-    if (k14 != null || k15 != null) {
-      buf.append(",");
-    }
-    if (k15 != null) {
-      buf.append(k15.toString());
-    }
-    if (k15 != null || k16 != null) {
-      buf.append(",");
-    }
-    if (k16 != null) {
-      buf.append(k16.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps crop() {
-
-    iCmdArgs.add("-crop");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps crop(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-crop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps crop(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-crop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps crop(Integer width, Integer height, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-crop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps crop(Integer width, Integer height, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-crop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps crop(Integer width, Integer height, Integer x, Integer y, Character special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-crop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps crop(Integer width, Integer height, Integer x, Integer y, String special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-crop");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -cycle to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps cycle() {
-
-    iCmdArgs.add("-cycle");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -cycle to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps cycle(Integer amount) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-cycle");
-
-    if (amount != null) {
-      buf.append(amount.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +debug to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_debug() {
-
-    iCmdArgs.add("+debug");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -debug to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps debug() {
-
-    iCmdArgs.add("-debug");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -debug to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps debug(String events) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-debug");
-
-    if (events != null) {
-      buf.append(events.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -decipher to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps decipher() {
-
-    iCmdArgs.add("-decipher");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -decipher to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps decipher(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-decipher");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -deconstruct to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps deconstruct() {
-
-    iCmdArgs.add("-deconstruct");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +define to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_define() {
-
-    iCmdArgs.add("+define");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +define to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_define(String key) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+define");
-
-    if (key != null) {
-      buf.append(key.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -define to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps define() {
-
-    iCmdArgs.add("-define");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -define to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps define(String keyValue) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-define");
-
-    if (keyValue != null) {
-      buf.append(keyValue.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -delay to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps delay() {
-
-    iCmdArgs.add("-delay");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -delay to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps delay(Integer ticks) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-delay");
-
-    if (ticks != null) {
-      buf.append(ticks.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -delay to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps delay(Integer ticks, Integer ticksPerSecond) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-delay");
-
-    if (ticks != null) {
-      buf.append(ticks.toString());
-    }
-    if (ticks != null || ticksPerSecond != null) {
-      buf.append("x");
-    }
-    if (ticksPerSecond != null) {
-      buf.append(ticksPerSecond.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -delay to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps delay(Integer ticks, Integer ticksPerSecond, Character special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-delay");
-
-    if (ticks != null) {
-      buf.append(ticks.toString());
-    }
-    if (ticks != null || ticksPerSecond != null) {
-      buf.append("x");
-    }
-    if (ticksPerSecond != null) {
-      buf.append(ticksPerSecond.toString());
-    }
-    if (ticksPerSecond != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +delete to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_delete() {
-
-    iCmdArgs.add("+delete");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -delete to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps delete() {
-
-    iCmdArgs.add("-delete");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -delete to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps delete(Integer index1) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-delete");
-
-    if (index1 != null) {
-      buf.append(index1.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -delete to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps delete(Integer index1, Integer index2) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-delete");
-
-    if (index1 != null) {
-      buf.append(index1.toString());
-    }
-    if (index1 != null || index2 != null) {
-      buf.append(",");
-    }
-    if (index2 != null) {
-      buf.append(index2.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -delete to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps delete(Integer index1, Integer index2, Integer index3) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-delete");
-
-    if (index1 != null) {
-      buf.append(index1.toString());
-    }
-    if (index1 != null || index2 != null) {
-      buf.append(",");
-    }
-    if (index2 != null) {
-      buf.append(index2.toString());
-    }
-    if (index2 != null || index3 != null) {
-      buf.append(",");
-    }
-    if (index3 != null) {
-      buf.append(index3.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -delete to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps delete(String indexes) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-delete");
-
-    if (indexes != null) {
-      buf.append(indexes.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -density to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps density() {
-
-    iCmdArgs.add("-density");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -density to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps density(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-density");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -density to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps density(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-density");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -depth to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps depth() {
-
-    iCmdArgs.add("-depth");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -depth to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps depth(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-depth");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -descend to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps descend() {
-
-    iCmdArgs.add("-descend");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -deskew to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps deskew() {
-
-    iCmdArgs.add("-deskew");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -deskew to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps deskew(Double threshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-deskew");
-
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -despeckle to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps despeckle() {
-
-    iCmdArgs.add("-despeckle");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -direction to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps direction() {
-
-    iCmdArgs.add("-direction");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -direction to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps direction(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-direction");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -displace to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps displace() {
-
-    iCmdArgs.add("-displace");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -displace to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps displace(Double horizontalScale) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-displace");
-
-    if (horizontalScale != null) {
-      buf.append(horizontalScale.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -displace to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps displace(Double horizontalScale, Double verticalScale) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-displace");
-
-    if (horizontalScale != null) {
-      buf.append(horizontalScale.toString());
-    }
-    if (horizontalScale != null || verticalScale != null) {
-      buf.append("x");
-    }
-    if (verticalScale != null) {
-      buf.append(verticalScale.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -display to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps display() {
-
-    iCmdArgs.add("-display");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -display to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps display(String host) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-display");
-
-    if (host != null) {
-      buf.append(host.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -display to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps display(String host, Integer display) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-display");
-
-    if (host != null) {
-      buf.append(host.toString());
-    }
-    if (host != null || display != null) {
-      buf.append(":");
-    }
-    if (display != null) {
-      buf.append(display.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -display to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps display(String host, Integer display, Integer screen) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-display");
-
-    if (host != null) {
-      buf.append(host.toString());
-    }
-    if (host != null || display != null) {
-      buf.append(":");
-    }
-    if (display != null) {
-      buf.append(display.toString());
-    }
-    if (display != null || screen != null) {
-      buf.append(".");
-    }
-    if (screen != null) {
-      buf.append(screen.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +dispose to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_dispose() {
-
-    iCmdArgs.add("+dispose");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -dispose to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps dispose() {
-
-    iCmdArgs.add("-dispose");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -dispose to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps dispose(String method) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-dispose");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -dissimilarity-threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps dissimilarityThreshold() {
-
-    iCmdArgs.add("-dissimilarity-threshold");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -dissimilarity-threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps dissimilarityThreshold(Double value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-dissimilarity-threshold");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -dissolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps dissolve() {
-
-    iCmdArgs.add("-dissolve");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -dissolve to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps dissolve(Integer percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-dissolve");
-
-    if (percent != null) {
-      buf.append(percent.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -distort to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps distort() {
-
-    iCmdArgs.add("-distort");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -distort to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps distort(String method) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-distort");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -distort to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps distort(String method, String arguments) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-distort");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (method != null || arguments != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (arguments != null) {
-      buf.append(arguments.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +distort to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_distort() {
-
-    iCmdArgs.add("+distort");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +distort to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_distort(String method) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+distort");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +distort to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_distort(String method, String arguments) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+distort");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (method != null || arguments != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (arguments != null) {
-      buf.append(arguments.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +dither to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_dither() {
-
-    iCmdArgs.add("+dither");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -dither to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps dither() {
-
-    iCmdArgs.add("-dither");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -dither to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps dither(String method) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-dither");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -draw to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps draw() {
-
-    iCmdArgs.add("-draw");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -draw to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps draw(String string) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-draw");
-
-    if (string != null) {
-      buf.append(string.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -duplicate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps duplicate() {
-
-    iCmdArgs.add("-duplicate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -duplicate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps duplicate(Integer count) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-duplicate");
-
-    if (count != null) {
-      buf.append(count.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -duplicate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps duplicate(Integer count, String indices) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-duplicate");
-
-    if (count != null) {
-      buf.append(count.toString());
-    }
-    if (count != null || indices != null) {
-      buf.append(",");
-    }
-    if (indices != null) {
-      buf.append(indices.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +duplicate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_duplicate() {
-
-    iCmdArgs.add("+duplicate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -edge to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps edge() {
-
-    iCmdArgs.add("-edge");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -edge to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps edge(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-edge");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -emboss to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps emboss() {
-
-    iCmdArgs.add("-emboss");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -emboss to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps emboss(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-emboss");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -encipher to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps encipher() {
-
-    iCmdArgs.add("-encipher");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -encipher to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps encipher(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-encipher");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -encoding to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps encoding() {
-
-    iCmdArgs.add("-encoding");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -encoding to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps encoding(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-encoding");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +endian to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_endian() {
-
-    iCmdArgs.add("+endian");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -endian to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps endian() {
-
-    iCmdArgs.add("-endian");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -endian to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps endian(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-endian");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -enhance to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps enhance() {
-
-    iCmdArgs.add("-enhance");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -equalize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps equalize() {
-
-    iCmdArgs.add("-equalize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -evaluate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps evaluate() {
-
-    iCmdArgs.add("-evaluate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -evaluate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps evaluate(String operator) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-evaluate");
-
-    if (operator != null) {
-      buf.append(operator.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -evaluate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps evaluate(String operator, String constant) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-evaluate");
-
-    if (operator != null) {
-      buf.append(operator.toString());
-    }
-    if (operator != null || constant != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (constant != null) {
-      buf.append(constant.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -evaluate-sequence to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps evaluateSequence() {
-
-    iCmdArgs.add("-evaluate-sequence");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -evaluate-sequence to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps evaluateSequence(String operator) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-evaluate-sequence");
-
-    if (operator != null) {
-      buf.append(operator.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -extent to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps extent() {
-
-    iCmdArgs.add("-extent");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -extent to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps extent(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-extent");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -extent to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps extent(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-extent");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -extent to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps extent(Integer width, Integer height, Integer xOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-extent");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -extent to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps extent(Integer width, Integer height, Integer xOffset, Integer yOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-extent");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (xOffset != null || yOffset != null) {
-      oper="+";
-      if (yOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (yOffset != null) {
-      buf.append(yOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -extract to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps extract() {
-
-    iCmdArgs.add("-extract");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -extract to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps extract(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-extract");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -extract to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps extract(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-extract");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -extract to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps extract(Integer width, Integer height, Integer xOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-extract");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -extract to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps extract(Integer width, Integer height, Integer xOffset, Integer yOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-extract");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (xOffset != null || yOffset != null) {
-      oper="+";
-      if (yOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (yOffset != null) {
-      buf.append(yOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -family to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps family() {
-
-    iCmdArgs.add("-family");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -family to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps family(String fontFamily) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-family");
-
-    if (fontFamily != null) {
-      buf.append(fontFamily.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -features to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps features() {
-
-    iCmdArgs.add("-features");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -features to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps features(String distance) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-features");
-
-    if (distance != null) {
-      buf.append(distance.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fft to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps fft() {
-
-    iCmdArgs.add("-fft");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fill to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps fill() {
-
-    iCmdArgs.add("-fill");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fill to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps fill(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-fill");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -filter to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps filter() {
-
-    iCmdArgs.add("-filter");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -filter to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps filter(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-filter");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -flatten to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps flatten() {
-
-    iCmdArgs.add("-flatten");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -flip to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps flip() {
-
-    iCmdArgs.add("-flip");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -floodfill to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps floodfill() {
-
-    iCmdArgs.add("-floodfill");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -floodfill to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps floodfill(Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-floodfill");
-
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -floodfill to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps floodfill(Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-floodfill");
-
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -floodfill to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps floodfill(Integer x, Integer y, String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-floodfill");
-
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || color != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -flop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps flop() {
-
-    iCmdArgs.add("-flop");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -font to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps font() {
-
-    iCmdArgs.add("-font");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -font to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps font(String name) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-font");
-
-    if (name != null) {
-      buf.append(name.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -foreground to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps foreground() {
-
-    iCmdArgs.add("-foreground");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -foreground to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps foreground(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-foreground");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -format to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps format() {
-
-    iCmdArgs.add("-format");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -format to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps format(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-format");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -frame to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps frame() {
-
-    iCmdArgs.add("-frame");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -frame to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps frame(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-frame");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -frame to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps frame(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-frame");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -frame to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps frame(Integer width, Integer height, Integer outerBevelWidth) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-frame");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || outerBevelWidth != null) {
-      oper="+";
-      if (outerBevelWidth.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (outerBevelWidth != null) {
-      buf.append(outerBevelWidth.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -frame to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps frame(Integer width, Integer height, Integer outerBevelWidth, Integer innerBevelWidth) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-frame");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || outerBevelWidth != null) {
-      oper="+";
-      if (outerBevelWidth.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (outerBevelWidth != null) {
-      buf.append(outerBevelWidth.toString());
-    }
-    if (outerBevelWidth != null || innerBevelWidth != null) {
-      oper="+";
-      if (innerBevelWidth.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (innerBevelWidth != null) {
-      buf.append(innerBevelWidth.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -function to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps function() {
-
-    iCmdArgs.add("-function");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -function to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps function(String name) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-function");
-
-    if (name != null) {
-      buf.append(name.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -function to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps function(String name, String parameter) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-function");
-
-    if (name != null) {
-      buf.append(name.toString());
-    }
-    if (name != null || parameter != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (parameter != null) {
-      buf.append(parameter.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fuzz to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps fuzz() {
-
-    iCmdArgs.add("-fuzz");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fuzz to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps fuzz(Double distance) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-fuzz");
-
-    if (distance != null) {
-      buf.append(distance.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fuzz to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps fuzz(Double distance, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-fuzz");
-
-    if (distance != null) {
-      buf.append(distance.toString());
-    }
-    if (distance != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fx to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps fx() {
-
-    iCmdArgs.add("-fx");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -fx to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps fx(String expression) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-fx");
-
-    if (expression != null) {
-      buf.append(expression.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gamma to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps gamma() {
-
-    iCmdArgs.add("-gamma");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gamma to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps gamma(Double value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-gamma");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +gamma to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_gamma() {
-
-    iCmdArgs.add("+gamma");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +gamma to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_gamma(Double value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+gamma");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gaussian-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps gaussianBlur() {
-
-    iCmdArgs.add("-gaussian-blur");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gaussian-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps gaussianBlur(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-gaussian-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gaussian-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps gaussianBlur(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-gaussian-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -geometry to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps geometry() {
-
-    iCmdArgs.add("-geometry");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -geometry to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps geometry(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-geometry");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -geometry to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps geometry(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-geometry");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -geometry to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps geometry(Integer width, Integer height, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-geometry");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -geometry to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps geometry(Integer width, Integer height, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-geometry");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gravity to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps gravity() {
-
-    iCmdArgs.add("-gravity");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -gravity to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps gravity(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-gravity");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -green-primary to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps greenPrimary() {
-
-    iCmdArgs.add("-green-primary");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -green-primary to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps greenPrimary(Double x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-green-primary");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -green-primary to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps greenPrimary(Double x, Double y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-green-primary");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      buf.append(",");
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -help to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps help() {
-
-    iCmdArgs.add("-help");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -hald-clut to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps haldClut() {
-
-    iCmdArgs.add("-hald-clut");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -highlight-color to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps highlightColor() {
-
-    iCmdArgs.add("-highlight-color");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -highlight-color to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps highlightColor(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-highlight-color");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -iconGeometry to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps iconGeometry() {
-
-    iCmdArgs.add("-iconGeometry");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -iconGeometry to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps iconGeometry(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-iconGeometry");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -iconGeometry to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps iconGeometry(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-iconGeometry");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -iconGeometry to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps iconGeometry(Integer width, Integer height, Integer xOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-iconGeometry");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -iconGeometry to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps iconGeometry(Integer width, Integer height, Integer xOffset, Integer yOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-iconGeometry");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (xOffset != null || yOffset != null) {
-      oper="+";
-      if (yOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (yOffset != null) {
-      buf.append(yOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -iconic to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps iconic() {
-
-    iCmdArgs.add("-iconic");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -identify to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps identify() {
-
-    iCmdArgs.add("-identify");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -ift to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps ift() {
-
-    iCmdArgs.add("-ift");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -immutable to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps immutable() {
-
-    iCmdArgs.add("-immutable");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -implode to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps implode() {
-
-    iCmdArgs.add("-implode");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -implode to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps implode(Double factor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-implode");
-
-    if (factor != null) {
-      buf.append(factor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -insert to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps insert() {
-
-    iCmdArgs.add("-insert");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -insert to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps insert(Integer index) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-insert");
-
-    if (index != null) {
-      buf.append(index.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -intent to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps intent() {
-
-    iCmdArgs.add("-intent");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -intent to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps intent(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-intent");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -interlace to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps interlace() {
-
-    iCmdArgs.add("-interlace");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -interlace to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps interlace(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-interlace");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -interline-spacing to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps interlineSpacing() {
-
-    iCmdArgs.add("-interline-spacing");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -interline-spacing to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps interlineSpacing(Double value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-interline-spacing");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -interpolate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps interpolate() {
-
-    iCmdArgs.add("-interpolate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -interpolate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps interpolate(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-interpolate");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -interword-spacing to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps interwordSpacing() {
-
-    iCmdArgs.add("-interword-spacing");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -interword-spacing to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps interwordSpacing(Double value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-interword-spacing");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -kerning to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps kerning() {
-
-    iCmdArgs.add("-kerning");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -kerning to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps kerning(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-kerning");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +label to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_label() {
-
-    iCmdArgs.add("+label");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -label to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps label() {
-
-    iCmdArgs.add("-label");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -label to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps label(String name) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-label");
-
-    if (name != null) {
-      buf.append(name.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -lat to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps lat() {
-
-    iCmdArgs.add("-lat");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -lat to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps lat(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-lat");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -lat to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps lat(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-lat");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -lat to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps lat(Integer width, Integer height, Integer offset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-lat");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || offset != null) {
-      oper="+";
-      if (offset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (offset != null) {
-      buf.append(offset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -lat to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps lat(Integer width, Integer height, Integer offset, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-lat");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || offset != null) {
-      oper="+";
-      if (offset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (offset != null) {
-      buf.append(offset.toString());
-    }
-    if (offset != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -layers to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps layers() {
-
-    iCmdArgs.add("-layers");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -layers to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps layers(String method) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-layers");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -level-colors to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps levelColors() {
-
-    iCmdArgs.add("-level-colors");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -level-colors to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps levelColors(String black_color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-level-colors");
-
-    if (black_color != null) {
-      buf.append(black_color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -level-colors to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps levelColors(String black_color, String white_color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-level-colors");
-
-    if (black_color != null) {
-      buf.append(black_color.toString());
-    }
-    if (black_color != null || white_color != null) {
-      buf.append(",");
-    }
-    if (white_color != null) {
-      buf.append(white_color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +level-colors to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_levelColors() {
-
-    iCmdArgs.add("+level-colors");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +level-colors to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_levelColors(String black_color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+level-colors");
-
-    if (black_color != null) {
-      buf.append(black_color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +level-colors to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_levelColors(String black_color, String white_color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+level-colors");
-
-    if (black_color != null) {
-      buf.append(black_color.toString());
-    }
-    if (black_color != null || white_color != null) {
-      buf.append(",");
-    }
-    if (white_color != null) {
-      buf.append(white_color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -level to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps level() {
-
-    iCmdArgs.add("-level");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -level to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps level(Double black_point) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-level");
-
-    if (black_point != null) {
-      buf.append(black_point.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -level to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps level(Double black_point, Double white_point) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-level");
-
-    if (black_point != null) {
-      buf.append(black_point.toString());
-    }
-    if (black_point != null || white_point != null) {
-      buf.append(",");
-    }
-    if (white_point != null) {
-      buf.append(white_point.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -level to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps level(Double black_point, Double white_point, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-level");
-
-    if (black_point != null) {
-      buf.append(black_point.toString());
-    }
-    if (black_point != null || white_point != null) {
-      buf.append(",");
-    }
-    if (white_point != null) {
-      buf.append(white_point.toString());
-    }
-    if (white_point != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -level to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps level(Double black_point, Double white_point, Boolean percent, Double gamma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-level");
-
-    if (black_point != null) {
-      buf.append(black_point.toString());
-    }
-    if (black_point != null || white_point != null) {
-      buf.append(",");
-    }
-    if (white_point != null) {
-      buf.append(white_point.toString());
-    }
-    if (white_point != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (percent != null || gamma != null) {
-      buf.append(",");
-    }
-    if (gamma != null) {
-      buf.append(gamma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +level to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_level() {
-
-    iCmdArgs.add("+level");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +level to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_level(Double black_point) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+level");
-
-    if (black_point != null) {
-      buf.append(black_point.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +level to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_level(Double black_point, Double white_point) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+level");
-
-    if (black_point != null) {
-      buf.append(black_point.toString());
-    }
-    if (black_point != null || white_point != null) {
-      buf.append(",");
-    }
-    if (white_point != null) {
-      buf.append(white_point.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +level to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_level(Double black_point, Double white_point, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+level");
-
-    if (black_point != null) {
-      buf.append(black_point.toString());
-    }
-    if (black_point != null || white_point != null) {
-      buf.append(",");
-    }
-    if (white_point != null) {
-      buf.append(white_point.toString());
-    }
-    if (white_point != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +level to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_level(Double black_point, Double white_point, Boolean percent, Double gamma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+level");
-
-    if (black_point != null) {
-      buf.append(black_point.toString());
-    }
-    if (black_point != null || white_point != null) {
-      buf.append(",");
-    }
-    if (white_point != null) {
-      buf.append(white_point.toString());
-    }
-    if (white_point != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (percent != null || gamma != null) {
-      buf.append(",");
-    }
-    if (gamma != null) {
-      buf.append(gamma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -limit to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps limit() {
-
-    iCmdArgs.add("-limit");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -limit to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps limit(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-limit");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -linear-stretch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps linearStretch() {
-
-    iCmdArgs.add("-linear-stretch");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -linear-stretch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps linearStretch(Double blackPoint) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-linear-stretch");
-
-    if (blackPoint != null) {
-      buf.append(blackPoint.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -linear-stretch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps linearStretch(Double blackPoint, Double whitePoint) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-linear-stretch");
-
-    if (blackPoint != null) {
-      buf.append(blackPoint.toString());
-    }
-    if (blackPoint != null || whitePoint != null) {
-      buf.append("x");
-    }
-    if (whitePoint != null) {
-      buf.append(whitePoint.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -linear-stretch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps linearStretch(Double blackPoint, Double whitePoint, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-linear-stretch");
-
-    if (blackPoint != null) {
-      buf.append(blackPoint.toString());
-    }
-    if (blackPoint != null || whitePoint != null) {
-      buf.append("x");
-    }
-    if (whitePoint != null) {
-      buf.append(whitePoint.toString());
-    }
-    if (whitePoint != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -linewidth to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps linewidth() {
-
-    iCmdArgs.add("-linewidth");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -liquid-rescale to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps liquidRescale() {
-
-    iCmdArgs.add("-liquid-rescale");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -liquid-rescale to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps liquidRescale(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-liquid-rescale");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -liquid-rescale to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps liquidRescale(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-liquid-rescale");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -liquid-rescale to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps liquidRescale(Integer width, Integer height, Integer xOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-liquid-rescale");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -liquid-rescale to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps liquidRescale(Integer width, Integer height, Integer xOffset, Integer yOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-liquid-rescale");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (xOffset != null || yOffset != null) {
-      oper="+";
-      if (yOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (yOffset != null) {
-      buf.append(yOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -list to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps list() {
-
-    iCmdArgs.add("-list");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -list to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps list(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-list");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -log to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps log() {
-
-    iCmdArgs.add("-log");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -log to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps log(String text) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-log");
-
-    if (text != null) {
-      buf.append(text.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -loop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps loop() {
-
-    iCmdArgs.add("-loop");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -loop to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps loop(Integer iterations) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-loop");
-
-    if (iterations != null) {
-      buf.append(iterations.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -lowlight-color to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps lowlightColor() {
-
-    iCmdArgs.add("-lowlight-color");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -lowlight-color to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps lowlightColor(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-lowlight-color");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -magnify to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps magnify() {
-
-    iCmdArgs.add("-magnify");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -magnify to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps magnify(Double factor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-magnify");
-
-    if (factor != null) {
-      buf.append(factor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +map to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_map() {
-
-    iCmdArgs.add("+map");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -map to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps map() {
-
-    iCmdArgs.add("-map");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -map to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps map(String components) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-map");
-
-    if (components != null) {
-      buf.append(components.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +mask to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_mask() {
-
-    iCmdArgs.add("+mask");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -mask to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps mask() {
-
-    iCmdArgs.add("-mask");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -mask to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps mask(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-mask");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -mattecolor to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps mattecolor() {
-
-    iCmdArgs.add("-mattecolor");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -mattecolor to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps mattecolor(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-mattecolor");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -median to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps median() {
-
-    iCmdArgs.add("-median");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -median to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps median(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-median");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -metric to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps metric() {
-
-    iCmdArgs.add("-metric");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -metric to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps metric(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-metric");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -mode to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps mode() {
-
-    iCmdArgs.add("-mode");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -mode to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps mode(String value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-mode");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -modulate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps modulate() {
-
-    iCmdArgs.add("-modulate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -modulate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps modulate(Double brightness) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-modulate");
-
-    if (brightness != null) {
-      buf.append(brightness.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -modulate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps modulate(Double brightness, Double saturation) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-modulate");
-
-    if (brightness != null) {
-      buf.append(brightness.toString());
-    }
-    if (brightness != null || saturation != null) {
-      buf.append(",");
-    }
-    if (saturation != null) {
-      buf.append(saturation.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -modulate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps modulate(Double brightness, Double saturation, Double hue) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-modulate");
-
-    if (brightness != null) {
-      buf.append(brightness.toString());
-    }
-    if (brightness != null || saturation != null) {
-      buf.append(",");
-    }
-    if (saturation != null) {
-      buf.append(saturation.toString());
-    }
-    if (saturation != null || hue != null) {
-      buf.append(",");
-    }
-    if (hue != null) {
-      buf.append(hue.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -monitor to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps monitor() {
-
-    iCmdArgs.add("-monitor");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -monochrome to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps monochrome() {
-
-    iCmdArgs.add("-monochrome");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -morph to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps morph() {
-
-    iCmdArgs.add("-morph");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -morph to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps morph(Integer frames) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-morph");
-
-    if (frames != null) {
-      buf.append(frames.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -morphology to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps morphology() {
-
-    iCmdArgs.add("-morphology");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -morphology to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps morphology(String method) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-morphology");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -morphology to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps morphology(String method, String kernel) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-morphology");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (method != null || kernel != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (kernel != null) {
-      buf.append(kernel.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -mosaic to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps mosaic() {
-
-    iCmdArgs.add("-mosaic");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -motion-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps motionBlur() {
-
-    iCmdArgs.add("-motion-blur");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -motion-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps motionBlur(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-motion-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -motion-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps motionBlur(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-motion-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -motion-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps motionBlur(Double radius, Double sigma, Double angle) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-motion-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || angle != null) {
-      oper="+";
-      if (angle.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (angle != null) {
-      buf.append(angle.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -name to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps name() {
-
-    iCmdArgs.add("-name");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -negate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps negate() {
-
-    iCmdArgs.add("-negate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +negate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_negate() {
-
-    iCmdArgs.add("+negate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -noise to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps noise() {
-
-    iCmdArgs.add("-noise");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -noise to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps noise(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-noise");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +noise to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_noise() {
-
-    iCmdArgs.add("+noise");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +noise to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_noise(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+noise");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -normalize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps normalize() {
-
-    iCmdArgs.add("-normalize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -opaque to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps opaque() {
-
-    iCmdArgs.add("-opaque");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -opaque to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps opaque(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-opaque");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +opaque to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_opaque() {
-
-    iCmdArgs.add("+opaque");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +opaque to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_opaque(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+opaque");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -ordered-dither to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps orderedDither() {
-
-    iCmdArgs.add("-ordered-dither");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -ordered-dither to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps orderedDither(String threshold_map) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-ordered-dither");
-
-    if (threshold_map != null) {
-      buf.append(threshold_map.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -ordered-dither to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps orderedDither(String threshold_map, String level) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-ordered-dither");
-
-    if (threshold_map != null) {
-      buf.append(threshold_map.toString());
-    }
-    if (threshold_map != null || level != null) {
-      buf.append(",");
-    }
-    if (level != null) {
-      buf.append(level.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -orient to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps orient() {
-
-    iCmdArgs.add("-orient");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -orient to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps orient(String imageOrientation) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-orient");
-
-    if (imageOrientation != null) {
-      buf.append(imageOrientation.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +page to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_page() {
-
-    iCmdArgs.add("+page");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -page to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps page() {
-
-    iCmdArgs.add("-page");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -page to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps page(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-page");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -page to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps page(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-page");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -page to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps page(Integer width, Integer height, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-page");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -page to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps page(Integer width, Integer height, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-page");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -page to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps page(Integer width, Integer height, Integer x, Integer y, Character special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-page");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -page to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps page(Integer width, Integer height, Integer x, Integer y, String special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-page");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -paint to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps paint() {
-
-    iCmdArgs.add("-paint");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -paint to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps paint(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-paint");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -path to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps path() {
-
-    iCmdArgs.add("-path");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -path to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps path(String path) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-path");
-
-    if (path != null) {
-      buf.append(path.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -passphrase to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps passphrase() {
-
-    iCmdArgs.add("-passphrase");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -passphrase to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps passphrase(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-passphrase");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -pause to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps pause() {
-
-    iCmdArgs.add("-pause");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -pause to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps pause(Integer seconds) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-pause");
-
-    if (seconds != null) {
-      buf.append(seconds.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -perceptible to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps perceptible() {
-
-    iCmdArgs.add("-perceptible");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -perceptible to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps perceptible(Double epsilon) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-perceptible");
-
-    if (epsilon != null) {
-      buf.append(epsilon.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -ping to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps ping() {
-
-    iCmdArgs.add("-ping");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -pointsize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps pointsize() {
-
-    iCmdArgs.add("-pointsize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -pointsize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps pointsize(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-pointsize");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -polaroid to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps polaroid() {
-
-    iCmdArgs.add("-polaroid");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -polaroid to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps polaroid(Double angle) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-polaroid");
-
-    if (angle != null) {
-      buf.append(angle.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +polaroid to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_polaroid() {
-
-    iCmdArgs.add("+polaroid");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -poly to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps poly() {
-
-    iCmdArgs.add("-poly");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -poly to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps poly(String args) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-poly");
-
-    if (args != null) {
-      buf.append(args.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -posterize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps posterize() {
-
-    iCmdArgs.add("-posterize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -posterize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps posterize(Integer levels) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-posterize");
-
-    if (levels != null) {
-      buf.append(levels.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -precision to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps precision() {
-
-    iCmdArgs.add("-precision");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -precision to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps precision(Integer digits) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-precision");
-
-    if (digits != null) {
-      buf.append(digits.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -preview to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps preview() {
-
-    iCmdArgs.add("-preview");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -preview to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps preview(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-preview");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -print to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps print() {
-
-    iCmdArgs.add("-print");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -print to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps print(String text) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-print");
-
-    if (text != null) {
-      buf.append(text.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -process to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps process() {
-
-    iCmdArgs.add("-process");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -process to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps process(String command) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-process");
-
-    if (command != null) {
-      buf.append(command.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -profile to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps profile() {
-
-    iCmdArgs.add("-profile");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -profile to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps profile(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-profile");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +profile to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_profile() {
-
-    iCmdArgs.add("+profile");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +profile to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_profile(String profileName) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+profile");
-
-    if (profileName != null) {
-      buf.append(profileName.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -quality to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps quality() {
-
-    iCmdArgs.add("-quality");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -quality to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps quality(Double value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-quality");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -quantize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps quantize() {
-
-    iCmdArgs.add("-quantize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -quantize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps quantize(String colorspace) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-quantize");
-
-    if (colorspace != null) {
-      buf.append(colorspace.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -quiet to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps quiet() {
-
-    iCmdArgs.add("-quiet");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -radial-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps radialBlur() {
-
-    iCmdArgs.add("-radial-blur");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -radial-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps radialBlur(Double angle) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-radial-blur");
-
-    if (angle != null) {
-      buf.append(angle.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -raise to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps raise() {
-
-    iCmdArgs.add("-raise");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -raise to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps raise(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-raise");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -raise to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps raise(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-raise");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +raise to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_raise() {
-
-    iCmdArgs.add("+raise");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +raise to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_raise(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+raise");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +raise to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_raise(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+raise");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -random-threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps randomThreshold() {
-
-    iCmdArgs.add("-random-threshold");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -random-threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps randomThreshold(Double low) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-random-threshold");
-
-    if (low != null) {
-      buf.append(low.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -random-threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps randomThreshold(Double low, Double high) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-random-threshold");
-
-    if (low != null) {
-      buf.append(low.toString());
-    }
-    if (low != null || high != null) {
-      buf.append("x");
-    }
-    if (high != null) {
-      buf.append(high.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -random-threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps randomThreshold(Double low, Double high, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-random-threshold");
-
-    if (low != null) {
-      buf.append(low.toString());
-    }
-    if (low != null || high != null) {
-      buf.append("x");
-    }
-    if (high != null) {
-      buf.append(high.toString());
-    }
-    if (high != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -recolor to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps recolor() {
-
-    iCmdArgs.add("-recolor");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -recolor to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps recolor(String matrix) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-recolor");
-
-    if (matrix != null) {
-      buf.append(matrix.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -red-primary to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps redPrimary() {
-
-    iCmdArgs.add("-red-primary");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -red-primary to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps redPrimary(Double x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-red-primary");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -red-primary to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps redPrimary(Double x, Double y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-red-primary");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      buf.append(",");
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -regard-warnings to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps regardWarnings() {
-
-    iCmdArgs.add("-regard-warnings");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -region to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps region() {
-
-    iCmdArgs.add("-region");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -region to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps region(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-region");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -region to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps region(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-region");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -region to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps region(Integer width, Integer height, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-region");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -region to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps region(Integer width, Integer height, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-region");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +remap to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_remap() {
-
-    iCmdArgs.add("+remap");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -remap to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps remap() {
-
-    iCmdArgs.add("-remap");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -remap to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps remap(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-remap");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -remote to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps remote() {
-
-    iCmdArgs.add("-remote");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -render to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps render() {
-
-    iCmdArgs.add("-render");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +render to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_render() {
-
-    iCmdArgs.add("+render");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +repage to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_repage() {
-
-    iCmdArgs.add("+repage");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -repage to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps repage() {
-
-    iCmdArgs.add("-repage");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -repage to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps repage(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-repage");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -repage to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps repage(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-repage");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -repage to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps repage(Integer width, Integer height, Integer xOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-repage");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -repage to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps repage(Integer width, Integer height, Integer xOffset, Integer yOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-repage");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (xOffset != null || yOffset != null) {
-      oper="+";
-      if (yOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (yOffset != null) {
-      buf.append(yOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resample to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps resample() {
-
-    iCmdArgs.add("-resample");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resample to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps resample(Integer horizontal) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-resample");
-
-    if (horizontal != null) {
-      buf.append(horizontal.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resample to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps resample(Integer horizontal, Integer vertical) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-resample");
-
-    if (horizontal != null) {
-      buf.append(horizontal.toString());
-    }
-    if (horizontal != null || vertical != null) {
-      buf.append("x");
-    }
-    if (vertical != null) {
-      buf.append(vertical.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps resize() {
-
-    iCmdArgs.add("-resize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps resize(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-resize");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps resize(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-resize");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps resize(Integer width, Integer height, Character special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-resize");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -resize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps resize(Integer width, Integer height, String special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-resize");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -respect-parentheses to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps respectParentheses() {
-
-    iCmdArgs.add("-respect-parentheses");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -respect-parenthesis to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps respectParenthesis() {
-
-    iCmdArgs.add("-respect-parenthesis");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -reverse to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps reverse() {
-
-    iCmdArgs.add("-reverse");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -roll to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps roll() {
-
-    iCmdArgs.add("-roll");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -roll to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps roll(Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-roll");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -roll to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps roll(Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-roll");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -rotate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps rotate() {
-
-    iCmdArgs.add("-rotate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -rotate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps rotate(Double degrees) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-rotate");
-
-    if (degrees != null) {
-      buf.append(degrees.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -rotate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps rotate(Double degrees, Character special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-rotate");
-
-    if (degrees != null) {
-      buf.append(degrees.toString());
-    }
-    if (degrees != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sample to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sample() {
-
-    iCmdArgs.add("-sample");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sample to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sample(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sample");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sample to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sample(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sample");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sample to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sample(Integer width, Integer height, Integer xOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sample");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sample to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sample(Integer width, Integer height, Integer xOffset, Integer yOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sample");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (xOffset != null || yOffset != null) {
-      oper="+";
-      if (yOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (yOffset != null) {
-      buf.append(yOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sampling-factor to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps samplingFactor() {
-
-    iCmdArgs.add("-sampling-factor");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sampling-factor to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps samplingFactor(Double horizontalFactor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sampling-factor");
-
-    if (horizontalFactor != null) {
-      buf.append(horizontalFactor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sampling-factor to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps samplingFactor(Double horizontalFactor, Double verticalFactor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sampling-factor");
-
-    if (horizontalFactor != null) {
-      buf.append(horizontalFactor.toString());
-    }
-    if (horizontalFactor != null || verticalFactor != null) {
-      buf.append("x");
-    }
-    if (verticalFactor != null) {
-      buf.append(verticalFactor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -selective-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps selectiveBlur() {
-
-    iCmdArgs.add("-selective-blur");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -selective-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps selectiveBlur(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-selective-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -selective-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps selectiveBlur(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-selective-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -selective-blur to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps selectiveBlur(Double radius, Double sigma, Double threshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-selective-blur");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || threshold != null) {
-      oper="+";
-      if (threshold.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sparse-color to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sparseColor() {
-
-    iCmdArgs.add("-sparse-color");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sparse-color to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sparseColor(String method) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sparse-color");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sparse-color to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sparseColor(String method, String cinfo) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sparse-color");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (method != null || cinfo != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (cinfo != null) {
-      buf.append(cinfo.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scale to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps scale() {
-
-    iCmdArgs.add("-scale");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scale to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps scale(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-scale");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scale to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps scale(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-scale");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scale to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps scale(Integer width, Integer height, Integer xOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-scale");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scale to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps scale(Integer width, Integer height, Integer xOffset, Integer yOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-scale");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (xOffset != null || yOffset != null) {
-      oper="+";
-      if (yOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (yOffset != null) {
-      buf.append(yOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scene to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps scene() {
-
-    iCmdArgs.add("-scene");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scene to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps scene(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-scene");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -screen to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps screen() {
-
-    iCmdArgs.add("-screen");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -seed to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps seed() {
-
-    iCmdArgs.add("-seed");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -segment to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps segment() {
-
-    iCmdArgs.add("-segment");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -segment to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps segment(Integer clusterThreshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-segment");
-
-    if (clusterThreshold != null) {
-      buf.append(clusterThreshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -segment to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps segment(Integer clusterThreshold, Double smoothingThreshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-segment");
-
-    if (clusterThreshold != null) {
-      buf.append(clusterThreshold.toString());
-    }
-    if (clusterThreshold != null || smoothingThreshold != null) {
-      buf.append("x");
-    }
-    if (smoothingThreshold != null) {
-      buf.append(smoothingThreshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -separate to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps separate() {
-
-    iCmdArgs.add("-separate");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sepia-tone to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sepiaTone() {
-
-    iCmdArgs.add("-sepia-tone");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sepia-tone to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sepiaTone(Double threshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sepia-tone");
-
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -set to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps set() {
-
-    iCmdArgs.add("-set");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -set to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps set(String attribute) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-set");
-
-    if (attribute != null) {
-      buf.append(attribute.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -set to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps set(String attribute, String value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-set");
-
-    if (attribute != null) {
-      buf.append(attribute.toString());
-    }
-    if (attribute != null || value != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shade to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shade() {
-
-    iCmdArgs.add("-shade");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shade to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shade(Double azimuth) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shade");
-
-    if (azimuth != null) {
-      buf.append(azimuth.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shade to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shade(Double azimuth, Double elevation) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shade");
-
-    if (azimuth != null) {
-      buf.append(azimuth.toString());
-    }
-    if (azimuth != null || elevation != null) {
-      buf.append("x");
-    }
-    if (elevation != null) {
-      buf.append(elevation.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +shade to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_shade() {
-
-    iCmdArgs.add("+shade");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +shade to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_shade(Double azimuth) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+shade");
-
-    if (azimuth != null) {
-      buf.append(azimuth.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +shade to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_shade(Double azimuth, Double elevation) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+shade");
-
-    if (azimuth != null) {
-      buf.append(azimuth.toString());
-    }
-    if (azimuth != null || elevation != null) {
-      buf.append("x");
-    }
-    if (elevation != null) {
-      buf.append(elevation.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shadow to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shadow() {
-
-    iCmdArgs.add("-shadow");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shadow to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shadow(Integer percentOpacity) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shadow");
-
-    if (percentOpacity != null) {
-      buf.append(percentOpacity.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shadow to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shadow(Integer percentOpacity, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shadow");
-
-    if (percentOpacity != null) {
-      buf.append(percentOpacity.toString());
-    }
-    if (percentOpacity != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shadow to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shadow(Integer percentOpacity, Double sigma, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shadow");
-
-    if (percentOpacity != null) {
-      buf.append(percentOpacity.toString());
-    }
-    if (percentOpacity != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shadow to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shadow(Integer percentOpacity, Double sigma, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shadow");
-
-    if (percentOpacity != null) {
-      buf.append(percentOpacity.toString());
-    }
-    if (percentOpacity != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shadow to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shadow(Integer percentOpacity, Double sigma, Integer x, Integer y, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shadow");
-
-    if (percentOpacity != null) {
-      buf.append(percentOpacity.toString());
-    }
-    if (percentOpacity != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shared-memory to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sharedMemory() {
-
-    iCmdArgs.add("-shared-memory");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sharpen to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sharpen() {
-
-    iCmdArgs.add("-sharpen");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sharpen to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sharpen(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sharpen");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sharpen to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sharpen(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sharpen");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shave to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shave() {
-
-    iCmdArgs.add("-shave");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shave to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shave(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shave");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shave to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shave(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shave");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shave to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shave(Integer width, Integer height, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shave");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shear to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shear() {
-
-    iCmdArgs.add("-shear");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shear to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shear(Double xDegrees) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shear");
-
-    if (xDegrees != null) {
-      buf.append(xDegrees.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -shear to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps shear(Double xDegrees, Double yDegrees) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-shear");
-
-    if (xDegrees != null) {
-      buf.append(xDegrees.toString());
-    }
-    if (xDegrees != null || yDegrees != null) {
-      buf.append("x");
-    }
-    if (yDegrees != null) {
-      buf.append(yDegrees.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sigmoidal-contrast to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sigmoidalContrast() {
-
-    iCmdArgs.add("-sigmoidal-contrast");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sigmoidal-contrast to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sigmoidalContrast(Double contrast) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sigmoidal-contrast");
-
-    if (contrast != null) {
-      buf.append(contrast.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sigmoidal-contrast to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sigmoidalContrast(Double contrast, Double midPoint) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sigmoidal-contrast");
-
-    if (contrast != null) {
-      buf.append(contrast.toString());
-    }
-    if (contrast != null || midPoint != null) {
-      buf.append("x");
-    }
-    if (midPoint != null) {
-      buf.append(midPoint.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +sigmoidal-contrast to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_sigmoidalContrast() {
-
-    iCmdArgs.add("+sigmoidal-contrast");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +sigmoidal-contrast to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_sigmoidalContrast(Double contrast) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+sigmoidal-contrast");
-
-    if (contrast != null) {
-      buf.append(contrast.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +sigmoidal-contrast to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_sigmoidalContrast(Double contrast, Double midPoint) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+sigmoidal-contrast");
-
-    if (contrast != null) {
-      buf.append(contrast.toString());
-    }
-    if (contrast != null || midPoint != null) {
-      buf.append("x");
-    }
-    if (midPoint != null) {
-      buf.append(midPoint.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -silent to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps silent() {
-
-    iCmdArgs.add("-silent");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -size to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps size() {
-
-    iCmdArgs.add("-size");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -size to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps size(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-size");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -size to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps size(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-size");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -size to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps size(Integer width, Integer height, Integer offset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-size");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || offset != null) {
-      oper="+";
-      if (offset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (offset != null) {
-      buf.append(offset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sketch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sketch() {
-
-    iCmdArgs.add("-sketch");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sketch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sketch(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sketch");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sketch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sketch(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sketch");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -sketch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps sketch(Double radius, Double sigma, Double angle) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-sketch");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || angle != null) {
-      oper="+";
-      if (angle.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (angle != null) {
-      buf.append(angle.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -smush to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps smush() {
-
-    iCmdArgs.add("-smush");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -smush to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps smush(Integer offset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-smush");
-
-    if (offset != null) {
-      buf.append(offset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -snaps to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps snaps() {
-
-    iCmdArgs.add("-snaps");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -snaps to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps snaps(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-snaps");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -solarize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps solarize() {
-
-    iCmdArgs.add("-solarize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -solarize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps solarize(Double threshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-solarize");
-
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -splice to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps splice() {
-
-    iCmdArgs.add("-splice");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -splice to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps splice(Double width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-splice");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -splice to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps splice(Double width, Double height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-splice");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -splice to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps splice(Double width, Double height, Double x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-splice");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -splice to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps splice(Double width, Double height, Double x, Double y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-splice");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -splice to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps splice(Double width, Double height, Double x, Double y, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-splice");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -spread to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps spread() {
-
-    iCmdArgs.add("-spread");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -spread to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps spread(Integer amount) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-spread");
-
-    if (amount != null) {
-      buf.append(amount.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -stegano to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps stegano() {
-
-    iCmdArgs.add("-stegano");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -stegano to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps stegano(Integer offset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-stegano");
-
-    if (offset != null) {
-      buf.append(offset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -stereo to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps stereo() {
-
-    iCmdArgs.add("-stereo");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -stereo to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps stereo(Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-stereo");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -stereo to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps stereo(Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-stereo");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -statistic to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps statistic() {
-
-    iCmdArgs.add("-statistic");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -statistic to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps statistic(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-statistic");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -statistic to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps statistic(String type, Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-statistic");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (type != null || width != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -statistic to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps statistic(String type, Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-statistic");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (type != null || width != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -statistic to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps statistic(String type, Integer width, Integer height, Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-statistic");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (type != null || width != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -statistic to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps statistic(String type, Integer width, Integer height, Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-statistic");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (type != null || width != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -statistic to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps statistic(String type, Integer width, Integer height, Integer x, Integer y, String special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-statistic");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (type != null || width != null) {
-      iCmdArgs.add(buf.toString());
-      buf.setLength(0);
-    }
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -storage-type to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps storageType() {
-
-    iCmdArgs.add("-storage-type");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -storage-type to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps storageType(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-storage-type");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -stretch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps stretch() {
-
-    iCmdArgs.add("-stretch");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -stretch to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps stretch(String fontStretchType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-stretch");
-
-    if (fontStretchType != null) {
-      buf.append(fontStretchType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -strip to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps strip() {
-
-    iCmdArgs.add("-strip");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -stroke to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps stroke() {
-
-    iCmdArgs.add("-stroke");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -stroke to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps stroke(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-stroke");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -strokewidth to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps strokewidth() {
-
-    iCmdArgs.add("-strokewidth");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -strokewidth to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps strokewidth(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-strokewidth");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -style to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps style() {
-
-    iCmdArgs.add("-style");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -style to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps style(String fontStyle) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-style");
-
-    if (fontStyle != null) {
-      buf.append(fontStyle.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -subimage-search to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps subimageSearch() {
-
-    iCmdArgs.add("-subimage-search");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +swap to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_swap() {
-
-    iCmdArgs.add("+swap");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -swap to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps swap() {
-
-    iCmdArgs.add("-swap");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -swap to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps swap(Integer pos1) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-swap");
-
-    if (pos1 != null) {
-      buf.append(pos1.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -swap to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps swap(Integer pos1, Integer pos2) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-swap");
-
-    if (pos1 != null) {
-      buf.append(pos1.toString());
-    }
-    if (pos1 != null || pos2 != null) {
-      buf.append(",");
-    }
-    if (pos2 != null) {
-      buf.append(pos2.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -swirl to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps swirl() {
-
-    iCmdArgs.add("-swirl");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -swirl to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps swirl(Double degrees) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-swirl");
-
-    if (degrees != null) {
-      buf.append(degrees.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -synchronize to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps synchronize() {
-
-    iCmdArgs.add("-synchronize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -taint to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps taint() {
-
-    iCmdArgs.add("-taint");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -text-font to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps textFont() {
-
-    iCmdArgs.add("-text-font");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -text-font to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps textFont(String name) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-text-font");
-
-    if (name != null) {
-      buf.append(name.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -texture to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps texture() {
-
-    iCmdArgs.add("-texture");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -texture to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps texture(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-texture");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps threshold() {
-
-    iCmdArgs.add("-threshold");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps threshold(Integer red) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-threshold");
-
-    if (red != null) {
-      buf.append(red.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps threshold(Integer red, Integer green) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-threshold");
-
-    if (red != null) {
-      buf.append(red.toString());
-    }
-    if (red != null || green != null) {
-      buf.append(",");
-    }
-    if (green != null) {
-      buf.append(green.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps threshold(Integer red, Integer green, Integer blue) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-threshold");
-
-    if (red != null) {
-      buf.append(red.toString());
-    }
-    if (red != null || green != null) {
-      buf.append(",");
-    }
-    if (green != null) {
-      buf.append(green.toString());
-    }
-    if (green != null || blue != null) {
-      buf.append(",");
-    }
-    if (blue != null) {
-      buf.append(blue.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps threshold(Integer red, Integer green, Integer blue, Integer opacity) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-threshold");
-
-    if (red != null) {
-      buf.append(red.toString());
-    }
-    if (red != null || green != null) {
-      buf.append(",");
-    }
-    if (green != null) {
-      buf.append(green.toString());
-    }
-    if (green != null || blue != null) {
-      buf.append(",");
-    }
-    if (blue != null) {
-      buf.append(blue.toString());
-    }
-    if (blue != null || opacity != null) {
-      buf.append(",");
-    }
-    if (opacity != null) {
-      buf.append(opacity.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps threshold(Integer red, Integer green, Integer blue, Integer opacity, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-threshold");
-
-    if (red != null) {
-      buf.append(red.toString());
-    }
-    if (red != null || green != null) {
-      buf.append(",");
-    }
-    if (green != null) {
-      buf.append(green.toString());
-    }
-    if (green != null || blue != null) {
-      buf.append(",");
-    }
-    if (blue != null) {
-      buf.append(blue.toString());
-    }
-    if (blue != null || opacity != null) {
-      buf.append(",");
-    }
-    if (opacity != null) {
-      buf.append(opacity.toString());
-    }
-    if (opacity != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -thumbnail to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps thumbnail() {
-
-    iCmdArgs.add("-thumbnail");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -thumbnail to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps thumbnail(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-thumbnail");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -thumbnail to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps thumbnail(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-thumbnail");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -thumbnail to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps thumbnail(Integer width, Integer height, Character special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-thumbnail");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -thumbnail to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps thumbnail(Integer width, Integer height, String special) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-thumbnail");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || special != null) {
-    }
-    if (special != null) {
-      buf.append(special.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tile to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps tile() {
-
-    iCmdArgs.add("-tile");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tile to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps tile(Integer width) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-tile");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tile to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps tile(Integer width, Integer height) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-tile");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tile to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps tile(Integer width, Integer height, Integer xOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-tile");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tile to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps tile(Integer width, Integer height, Integer xOffset, Integer yOffset) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-tile");
-
-    if (width != null) {
-      buf.append(width.toString());
-    }
-    if (width != null || height != null) {
-      buf.append("x");
-    }
-    if (height != null) {
-      buf.append(height.toString());
-    }
-    if (height != null || xOffset != null) {
-      oper="+";
-      if (xOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (xOffset != null) {
-      buf.append(xOffset.toString());
-    }
-    if (xOffset != null || yOffset != null) {
-      oper="+";
-      if (yOffset.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (yOffset != null) {
-      buf.append(yOffset.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tile-offset to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps tileOffset() {
-
-    iCmdArgs.add("-tile-offset");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tile-offset to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps tileOffset(Integer x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-tile-offset");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tile-offset to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps tileOffset(Integer x, Integer y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-tile-offset");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tile to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps tile(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-tile");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tint to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps tint() {
-
-    iCmdArgs.add("-tint");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -tint to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps tint(Double value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-tint");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -title to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps title() {
-
-    iCmdArgs.add("-title");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -title to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps title(String text) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-title");
-
-    if (text != null) {
-      buf.append(text.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -transform to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps transform() {
-
-    iCmdArgs.add("-transform");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -transparent-color to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps transparentColor() {
-
-    iCmdArgs.add("-transparent-color");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -transparent-color to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps transparentColor(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-transparent-color");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -transparent to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps transparent() {
-
-    iCmdArgs.add("-transparent");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -transparent to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps transparent(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-transparent");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -transpose to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps transpose() {
-
-    iCmdArgs.add("-transpose");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -transverse to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps transverse() {
-
-    iCmdArgs.add("-transverse");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -treedepth to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps treedepth() {
-
-    iCmdArgs.add("-treedepth");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -treedepth to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps treedepth(Integer value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-treedepth");
-
-    if (value != null) {
-      buf.append(value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -trim to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps trim() {
-
-    iCmdArgs.add("-trim");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -type to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps type() {
-
-    iCmdArgs.add("-type");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -type to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps type(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-type");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -undercolor to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps undercolor() {
-
-    iCmdArgs.add("-undercolor");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -undercolor to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps undercolor(String color) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-undercolor");
-
-    if (color != null) {
-      buf.append(color.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -unique-colors to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps uniqueColors() {
-
-    iCmdArgs.add("-unique-colors");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -units to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps units() {
-
-    iCmdArgs.add("-units");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -units to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps units(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-units");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -unsharp to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps unsharp() {
-
-    iCmdArgs.add("-unsharp");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -unsharp to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps unsharp(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-unsharp");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -unsharp to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps unsharp(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-unsharp");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -unsharp to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps unsharp(Double radius, Double sigma, Double amount) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-unsharp");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || amount != null) {
-      oper="+";
-      if (amount.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (amount != null) {
-      buf.append(amount.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -unsharp to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps unsharp(Double radius, Double sigma, Double amount, Double threshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-unsharp");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || amount != null) {
-      oper="+";
-      if (amount.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (amount != null) {
-      buf.append(amount.toString());
-    }
-    if (amount != null || threshold != null) {
-      oper="+";
-      if (threshold.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -update to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps update() {
-
-    iCmdArgs.add("-update");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -update to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps update(Integer seconds) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-update");
-
-    if (seconds != null) {
-      buf.append(seconds.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -verbose to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps verbose() {
-
-    iCmdArgs.add("-verbose");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -version to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps version() {
-
-    iCmdArgs.add("-version");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -view to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps view() {
-
-    iCmdArgs.add("-view");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -view to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps view(String text) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-view");
-
-    if (text != null) {
-      buf.append(text.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -vignette to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps vignette() {
-
-    iCmdArgs.add("-vignette");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -vignette to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps vignette(Double radius) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-vignette");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -vignette to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps vignette(Double radius, Double sigma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-vignette");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -vignette to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps vignette(Double radius, Double sigma, Double x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-vignette");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -vignette to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps vignette(Double radius, Double sigma, Double x, Double y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-vignette");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -vignette to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps vignette(Double radius, Double sigma, Double x, Double y, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-vignette");
-
-    if (radius != null) {
-      buf.append(radius.toString());
-    }
-    if (radius != null || sigma != null) {
-      buf.append("x");
-    }
-    if (sigma != null) {
-      buf.append(sigma.toString());
-    }
-    if (sigma != null || x != null) {
-      oper="+";
-      if (x.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      oper="+";
-      if (y.doubleValue() < 0)
-        oper="";
-      buf.append(oper);
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (y != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -virtual-pixel to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps virtualPixel() {
-
-    iCmdArgs.add("-virtual-pixel");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -virtual-pixel to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps virtualPixel(String method) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-virtual-pixel");
-
-    if (method != null) {
-      buf.append(method.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -visual to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps visual() {
-
-    iCmdArgs.add("-visual");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -visual to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps visual(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-visual");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -watermark to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps watermark() {
-
-    iCmdArgs.add("-watermark");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -watermark to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps watermark(Double brightness) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-watermark");
-
-    if (brightness != null) {
-      buf.append(brightness.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -wave to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps wave() {
-
-    iCmdArgs.add("-wave");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -wave to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps wave(Double amplitude) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-wave");
-
-    if (amplitude != null) {
-      buf.append(amplitude.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -wave to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps wave(Double amplitude, Double wavelength) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-wave");
-
-    if (amplitude != null) {
-      buf.append(amplitude.toString());
-    }
-    if (amplitude != null || wavelength != null) {
-      buf.append("x");
-    }
-    if (wavelength != null) {
-      buf.append(wavelength.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -weight to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps weight() {
-
-    iCmdArgs.add("-weight");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -weight to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps weight(String fontWeight) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-weight");
-
-    if (fontWeight != null) {
-      buf.append(fontWeight.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -weight to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps weight(Integer fontWeight) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-weight");
-
-    if (fontWeight != null) {
-      buf.append(fontWeight.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -white-point to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps whitePoint() {
-
-    iCmdArgs.add("-white-point");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -white-point to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps whitePoint(Double x) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-white-point");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -white-point to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps whitePoint(Double x, Double y) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-white-point");
-
-    if (x != null) {
-      buf.append(x.toString());
-    }
-    if (x != null || y != null) {
-      buf.append(",");
-    }
-    if (y != null) {
-      buf.append(y.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -white-threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps whiteThreshold() {
-
-    iCmdArgs.add("-white-threshold");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -white-threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps whiteThreshold(Double threshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-white-threshold");
-
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -white-threshold to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps whiteThreshold(Double threshold, Boolean percent) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-white-threshold");
-
-    if (threshold != null) {
-      buf.append(threshold.toString());
-    }
-    if (threshold != null || percent != null) {
-    }
-    if (percent != null) {
-      if (percent.booleanValue())
-        buf.append("%");
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -window-group to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps windowGroup() {
-
-    iCmdArgs.add("-window-group");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -window to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps window() {
-
-    iCmdArgs.add("-window");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -window to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps window(String id) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-window");
-
-    if (id != null) {
-      buf.append(id.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -write to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps write() {
-
-    iCmdArgs.add("-write");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -write to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps write(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-write");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +write to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_write() {
-
-    iCmdArgs.add("+write");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option +write to the ImageMagick commandline
-     (see the documentation of ImageMagick for details).
-  */
-
-  public IMOps p_write(String filename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("+write");
-
-    if (filename != null) {
-      buf.append(filename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-
-}

+ 0 - 72
TWPUtil/libdir/JMagix/src/org/im4java/core/IdentifyCmd.java

@@ -1,72 +0,0 @@
-/**************************************************************************
-/* This class wraps the IM command identify.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.util.ArrayList;
-
-import org.im4java.process.OutputConsumer;
-
-/**
-   This class wraps the IM command identify.
-
-   @version $Revision: 1.14 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class IdentifyCmd extends ImageCommand {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor. This saves the output into an internal field (array-list).
-  */
-
-  public  IdentifyCmd() {
-    super();
-    if (!Boolean.getBoolean("im4java.useGM")) {
-      setCommand("identify");
-    } else {
-      setCommand("gm","identify");
-    }
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor with option to use GraphicsMagick.
-  */
-
-  public  IdentifyCmd(boolean useGM) {
-    super();
-    if (useGM) {
-      setCommand("gm","identify");
-    } else {
-      setCommand("identify");
-    }
-  }
-}

+ 0 - 515
TWPUtil/libdir/JMagix/src/org/im4java/core/ImageCommand.java

@@ -1,515 +0,0 @@
-/**************************************************************************
-/* This class implements the processing of image-commands.
-/*
-/* Copyright (c) 2009-2010 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-import java.awt.image.BufferedImage;
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.PrintWriter;
-import java.io.IOException;
-import java.io.FileNotFoundException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.util.ArrayList;
-import java.util.LinkedList;
-import java.util.Properties;
-import java.util.List;
-import java.util.ListIterator;
-import java.util.Iterator;
-import javax.imageio.ImageIO;
-import javax.imageio.ImageWriter;
-import javax.imageio.ImageTypeSpecifier;
-import javax.imageio.stream.FileImageOutputStream;
-
-
-import org.im4java.process.ErrorConsumer;
-import org.im4java.process.ProcessStarter;
-import org.im4java.process.ProcessTask;
-import org.im4java.process.StandardStream;
-import org.im4java.script.ScriptGenerator;
-import org.im4java.script.BashScriptGenerator;
-import org.im4java.script.CmdScriptGenerator;
-
-/**
-   This class implements the processing of image operations. It replaces
-   placeholders within the argument-stack and passes all arguments to the
-   generic run-method of ProcessStarter.
-
-   @version $Revision: 1.32 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class ImageCommand extends ProcessStarter implements ErrorConsumer {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The command (plus initial arguments) to execute.
-  */
-
-  private LinkedList<String> iCommands;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     List of stderr-output.
-  */
-
-  private ArrayList<String> iErrorText;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     List of temporary files (input).
-  */
-
-  private LinkedList<String> iTmpFiles;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The default ScriptGenerator. 
-  */
-
-  private static ScriptGenerator iDefaultScriptGenerator;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The ScriptGenerator of this ImageCommand. 
-  */
-
-  private ScriptGenerator iScriptGenerator = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Static initializer for default script-generator.
-  */
-
-  static {
-    if (System.getProperty("os.name").startsWith("Windows")) {
-      iDefaultScriptGenerator = new CmdScriptGenerator();
-    } else {
-      iDefaultScriptGenerator = new BashScriptGenerator();
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Constructor.
-   */
-
-  public ImageCommand() {
-    super();
-    iCommands = new LinkedList<String>();
-    iTmpFiles = new LinkedList<String>();
-    setOutputConsumer(StandardStream.STDOUT);
-    setErrorConsumer(this);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Constructor setting the commands.
-   */
-
-  public ImageCommand(String... pCommands) {
-    this();
-    setCommand(pCommands);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Set the command.
-   */
-
-  public void setCommand(String... pCommands) {
-    for (String cmd:pCommands) {
-      iCommands.add(cmd);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Get the command.
-   */
-
-  public LinkedList<String> getCommand() {
-    return iCommands;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Get the error-text associated with this command (might be null).
-
-     @return The error-text associated with this command.
-   */
-
-  public ArrayList<String> getErrorText() {
-    return iErrorText;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Execute the command (replace given placeholders).
-
-     @param  pOperation The Operation to execute
-     @param  images     Zero or more images (replace placeholders in pOperation)
-     @throws IM4JavaException 
-  */
-
-  private LinkedList<String> prepareArguments(Operation pOperation, 
-                                                               Object... images) 
-                                            throws IOException, IM4JavaException {
-    LinkedList<String> args = new LinkedList<String>(pOperation.getCmdArgs());
-    args.addAll(0,iCommands);
-    resolveImages(args,images);
-    resolveDynamicOperations(pOperation,args,images);
-    return args;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Execute the command (replace given placeholders).
-
-     @param  pOperation The Operation to execute
-     @param  images     Zero or more images (replace placeholders in pOperation)
-     @throws IOException, InterruptedException, IM4JavaException 
-  */
-
-  public void run(Operation pOperation, Object... images) 
-    throws IOException, InterruptedException, IM4JavaException {
-
-    // prepare list of arguments
-    LinkedList<String> args = prepareArguments(pOperation,images);
-
-    try {
-      run(args);
-    } catch (Exception e) {
-      removeTmpFiles();
-      CommandException ce = new CommandException(e);
-      ce.fillInStackTrace();
-      throw ce;
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return a ProcessTask for future execution (replace given placeholders).
-
-     @param  pOperation The Operation to execute
-     @param  images     Zero or more images (replace placeholders in pOperation)
-     @throws IOException, IM4JavaException 
-  */
-
-  public ProcessTask getProcessTask(Operation pOperation, Object... images) 
-                                          throws IOException, IM4JavaException {
-    LinkedList<String> args = prepareArguments(pOperation,images);
-    return getProcessTask(args);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Post-processing after the process has terminated. Implements
-     the method of the base class.
-
-     @param pReturnCode  the return-code of the process
-  */
-    
-  protected void finished(int pReturnCode) throws Exception {
-    if (pReturnCode > 0) {
-      CommandException ce;
-      if (iErrorText.size() > 0) {
-	ce = new CommandException(iErrorText.get(0));
-      } else {
-	ce = new CommandException("return code: " + pReturnCode);
-      }
-      ce.setErrorText(iErrorText);
-      ce.setReturnCode(pReturnCode);
-      throw ce;
-    } else {
-      removeTmpFiles();
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Resolve images passed as arguments.
-  */
-
-  private void resolveImages(LinkedList<String> pArgs,Object... pImages) 
-                                                            throws IOException {
-    ListIterator<String> argIterator = pArgs.listIterator();
-    int i = 0;
-    boolean havePlaceholder = false;
-    String currentArg = null;
-    for (Object obj:pImages) {
-      // find the next placeholder
-      havePlaceholder = false;
-      while (argIterator.hasNext()) {
-        currentArg = argIterator.next();
-	if (currentArg.startsWith(Operation.IMG_PLACEHOLDER)) {
-	  havePlaceholder = true;
-	  break;
-	}
-      }
-      if (!havePlaceholder) {
-	// we have more argument images than placeholders!
-	throw new IllegalArgumentException("more argument images than " +
-                                                              "placeholders!");
-      }
-      if (obj instanceof String) {
-        if (currentArg.length() == Operation.IMG_PLACEHOLDER.length()) {
-          // a pure image-placeholder
-	  argIterator.set((String) obj);
-        } else {
-          // an image-placeholder with read-modifier
-          String modifier = 
-                      currentArg.substring(Operation.IMG_PLACEHOLDER.length());
-	  argIterator.set(((String) obj)+modifier);
-        }
-      } else if (obj instanceof BufferedImage) {
-	String tmpFile = convert2TmpFile((BufferedImage) obj);
-	argIterator.set(tmpFile);
-	iTmpFiles.add(tmpFile);
-      } else {
-	throw new IllegalArgumentException(obj.getClass().getName() +
-					   " is an unsupported image-type");
-      }
-      i++;
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Resolve DynamicOperations.
-     @throws IM4JavaException 
-  */
-
-  private void resolveDynamicOperations(Operation pOp, LinkedList<String> pArgs,
-                                     Object... pImages) throws IM4JavaException {
-    ListIterator<String> argIterator = pArgs.listIterator();
-    ListIterator<DynamicOperation> dynOps = 
-      pOp.getDynamicOperations().listIterator();
-
-    // iterate over all DynamicOperations
-    while (dynOps.hasNext()) {
-      DynamicOperation dynOp = dynOps.next();
-      Operation op = dynOp.resolveOperation(pImages);
-
-      // find the next placeholder
-      while (argIterator.hasNext()) {
-	if (argIterator.next().equals(Operation.DOP_PLACEHOLDER)) {
-	  break;
-	}
-      }
-
-      if (op == null) {
-	// no operation
-	argIterator.remove();		  
-      } else {
-	List<String> args = dynOp.resolveOperation(pImages).getCmdArgs();
-	if (args == null) {
-	  // empty operation, remove placeholder
-	  argIterator.remove();
-	} else {
-	  // remove placeholder and add replacement
-	  argIterator.remove();
-	  for (String arg:args) {
-	    argIterator.add(arg);
-	  }
-	}
-      }
-    }  // while (dynOps.hasNext())
-  }
-  
-  //////////////////////////////////////////////////////////////////////////////
-    
-  /**
-     This method just saves the stderr-output into an internal field.
-     
-     @see org.im4java.process.ErrorConsumer#consumeError(java.io.InputStream)
-  */
-    
-  public void consumeError(InputStream pInputStream) throws IOException {
-    InputStreamReader esr = new InputStreamReader(pInputStream);
-    BufferedReader reader = new BufferedReader(esr);
-    String line;
-    iErrorText= new ArrayList<String>();
-    while ((line=reader.readLine()) != null) {
-      iErrorText.add(line);
-    }
-    reader.close();
-    esr.close();
-  }
-  
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Create a temporary file.
-   */
-
-  private String getTmpFile() throws IOException {
-    File tmpFile = File.createTempFile("im4java-",".png");
-    tmpFile.deleteOnExit();
-    return tmpFile.getAbsolutePath();
-  }
-  
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Write a BufferedImage to a temporary file.
-   */
-
-  private String convert2TmpFile(BufferedImage pBufferedImage)
-                                                             throws IOException {
-    String tmpFile = getTmpFile();
-    ImageTypeSpecifier spec = 
-      ImageTypeSpecifier.createFromRenderedImage(pBufferedImage);
-    Iterator<ImageWriter> iter;
-    iter = ImageIO.getImageWriters(spec,"TIFF");
-    if (!iter.hasNext()) {
-      iter = ImageIO.getImageWriters(spec,"PNG");
-    }
-    if (iter.hasNext()) {
-      ImageWriter writer = (ImageWriter) iter.next();
-      FileImageOutputStream fios = new FileImageOutputStream(new File(tmpFile));
-      writer.setOutput(fios);
-      writer.write(pBufferedImage);
-      fios.close();
-      writer.dispose();
-    }
-    return tmpFile;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Remove all temporary files.
-   */
-
-  private void removeTmpFiles() {
-    for (String file:iTmpFiles) {
-      try {
-	(new File(file)).delete();
-      } catch (Exception e) {
-	// ignore, since if we can't delete the file, we can't do anything about it
-      }
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Set the default ScriptGenerator.
-   */
-
-  public static void setDefaultScriptGenerator(ScriptGenerator pGen) {
-    iDefaultScriptGenerator =  pGen;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Set the ScriptGenerator.
-   */
-
-  public void setScriptGenerator(ScriptGenerator pGen) {
-    iScriptGenerator =  pGen;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Generate a script.
-   */
-
-  public void createScript(PrintWriter pWriter, Operation pOp, Properties pProps) {
-    ScriptGenerator sg = iScriptGenerator;
-    if (sg == null) {
-      sg = iDefaultScriptGenerator;
-    }
-    
-    // add command as a property
-    StringBuilder builder = new StringBuilder();
-    for (String token:getCommand()) {
-      builder.append(token).append(' ');
-    }
-    pProps.setProperty("im4java.cmd",builder.toString());
-
-    // add search-paths as properties
-    String globalPath=getGlobalSearchPath();
-    if (globalPath==null) {
-      globalPath="";
-    }
-    String localPath=getSearchPath();
-    if (localPath==null) {
-      localPath="";
-    }
-    pProps.setProperty("im4java.globalSearchPath",globalPath);
-    pProps.setProperty("im4java.localSearchPath",localPath);
-
-    sg.init(pWriter,pOp,pProps);
-    sg.createScript();
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Generate a script. The method will automatically append the
-   * extension ".cmd" on a windows-plattform.
-   */
-
-  public void createScript(String pFilename, Operation pOp, Properties pProps) 
-                                                   throws FileNotFoundException {
-    if (System.getProperty("os.name").startsWith("Windows")) {
-      pFilename=pFilename+".cmd";
-    }
-    PrintWriter pw = new PrintWriter(pFilename);
-    createScript(pw,pOp,pProps);
-    pw.close();
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Generate a script. Convenience-method without a Properties-object.
-   */
-
-  public void createScript(String pFilename, Operation pOp)
-                                                  throws FileNotFoundException {
-    createScript(pFilename,pOp,new Properties());
-  }
-}

+ 0 - 53
TWPUtil/libdir/JMagix/src/org/im4java/core/ImageMagickCmd.java

@@ -1,53 +0,0 @@
-/**************************************************************************
-/* This class wraps the ImageMagick command-set.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This class wraps the ImageMagick command-set. There should be no
-   need to use this class, since for all IM-commands there are
-   class-wrappers available (e.g. ConvertCmd) which are more specific
-   and provide extended functionality.
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 1.0.0
-*/
-
-public class ImageMagickCmd extends ImageCommand {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor. Set the system-property im4java.useGM to true to switch
-     at runtime to GraphicsMagick.
-  */
-
-  public  ImageMagickCmd(String pCommand) {
-    super();
-    if (!Boolean.getBoolean("im4java.useGM")) {
-      setCommand(pCommand);
-    } else {
-      setCommand("gm",pCommand);
-    }
-  }
-}

+ 0 - 659
TWPUtil/libdir/JMagix/src/org/im4java/core/Info.java

@@ -1,659 +0,0 @@
-/**************************************************************************
-/* This class implements an image-information object.
-/*
-/* Copyright (c) 2009-2013 by Bernhard Bablok (mail@bablokb.de)
-/*                            Mihaly Koles <mihaly@koles.hu>
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-import java.util.*;
-import java.io.*;
-
-import org.im4java.process.ArrayListOutputConsumer;
-import org.im4java.process.Pipe;
-import org.im4java.process.InputProvider;
-
-/**
-   This class implements an image-information object. The one-argument
-   constructor expects a filename and parses the output of the
-   "identify -verbose" command to create a hashtable of properties. This
-   is the so called complete information. The two-argument constructor
-   has a boolean flag as second argument. If you pass true, the Info-object
-   only creates a set of so called basic information. This is more
-   efficient since only a subset of the attributes of the image are
-   requested and parsed.
-
-   <p>
-   Since the output of "identify -verbose" is meant as a human-readable
-   interface and not for parsing, this class is inherently flawed.
-   This implementation
-   interprets every line with a colon as a key-value-pair. This is not
-   necessarely correct, e.g. the comment-field could be multi-line with
-   colons within the comment.
-   </p>
-   
-   <p>
-   An alternative to the Info-class is to use the exiftool-command and
-   the wrapper for it provided by im4java.
-   </p>
-
-   @version $Revision: 1.15 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class  Info {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Internal hashtable with image-attributes. For images with multiple
-     scenes, this hashtable holds the attributes of the last scene.
-  */
-
-  private Hashtable<String,String> iAttributes = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     List of hashtables with image-attributes. There is one element for every
-     scene in the image.
-
-     @since 1.3.0
-  */
-
-  private LinkedList<Hashtable<String,String>> iAttribList = 
-                                     new LinkedList<Hashtable<String,String>>();
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Current value of indentation level
-  */
-
-  private int iOldIndent=0;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Current value of attribute-prefix
-  */
-
-  private String iPrefix="";
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     This contstructor will automatically parse the full output
-     of identify -verbose.
- 
-     @param pImage  Source image
-     @since 0.95
-  */
-
-  public Info(String pImage) throws InfoException {
-    getCompleteInfo(pImage,null);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     This contstructor will automatically parse the full output
-     of identify -verbose. This version of the constructor expects an
-     InputStream as an additional parameter. The source image-name should
-     be either "-" or "format:-".
- 
-     @param pImage  Name of the source-image
-     @param pInput  Image provided as an InputStream
-
-     @since 1.4.0
-  */
-
-  public Info(String pImage, InputStream pInput) throws InfoException {
-    if (pInput != null && !(pImage.equals("-") || pImage.endsWith(":-"))) {
-      throw new IllegalArgumentException("illegal filename for piped input");
-    }
-    getCompleteInfo(pImage,pInput);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     This constructor creates an Info-object with basic or complete
-     image-information (depending on the second argument).
- 
-     @param pImage  Source image
-     @param basic   Set to true for basic information, to false for complete info
-     @since 1.2.0
-  */
-
-  public Info(String pImage, boolean basic) throws InfoException {
-    if (!basic) {
-      getCompleteInfo(pImage,null);
-    } else {
-      getBaseInfo(pImage,null);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     This constructor creates an Info-object with basic or complete
-     image-information (depending on the third argument).  This version
-     of the constructor expects an
-     InputStream as an additional parameter. The source image-name should
-     be either "-" or "format:-".
- 
-     @param pImage  Source image
-     @param basic   Set to true for basic information, to false for complete info
-     @param pInput  Image provided as an InputStream
-
-     @since 1.4.0
-  */
-
-  public Info(String pImage, InputStream pInput,
-                                            boolean basic) throws InfoException {
-    if (pInput != null && !(pImage.equals("-") || pImage.endsWith(":-"))) {
-      throw new IllegalArgumentException("illegal filename for piped input");
-    }
-    if (!basic) {
-      getCompleteInfo(pImage,pInput);
-    } else {
-      getBaseInfo(pImage,pInput);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Query complete image-information.
- 
-     @param pImage  Source image
-     @param pInput  InputStream (must not be null for pImage=="-")
-     @since 1.2.0
-  */
-
-  private void getCompleteInfo(String pImage, InputStream pInput)
-                                                          throws InfoException {
-    IMOperation op = new IMOperation();
-    op.verbose();
-    op.addImage(pImage);
-
-    try {
-      IdentifyCmd identify = new IdentifyCmd();
-      ArrayListOutputConsumer output = new ArrayListOutputConsumer();
-      identify.setOutputConsumer(output);
-      if (pInput != null) {
-        Pipe inputPipe = new Pipe(pInput,null);
-	identify.setInputProvider(inputPipe);
-      }
-      identify.run(op);
-      ArrayList<String> cmdOutput = output.getOutput();
-
-      StringBuilder lineAccu = new StringBuilder(80);
-      for (String line:cmdOutput) {
-	if (line.length() == 0) {
-	  // accumulate empty line as part of current attribute
-	  lineAccu.append("\n\n");
-	} else if (line.indexOf(':') == -1) {
-	  // interpret this as a continuation-line of the current attribute
-	  lineAccu.append("\n").append(line);
-	} else if (lineAccu.length() > 0) {
-	  // new attribute, process old attribute first
-	  parseLine(lineAccu.toString());
-	  lineAccu = new StringBuilder(80);
-	  lineAccu.append(line);
-	} else {
-          // new attribute, but nothing old to process
-	  lineAccu.append(line);
-	}
-      }
-      // process last item
-      if (lineAccu.length() > 0) {
-	parseLine(lineAccu.toString());
-      }
-
-      // finish and add last hashtable to linked-list
-      addBaseInfo();
-      iAttribList.add(iAttributes);
-      
-    } catch (Exception ex) {
-      throw new InfoException(ex);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add basic info to complete-info.
-
-     @since 1.3.0
-  */
-
-  private void addBaseInfo() {
-    // complete output does not include width, height, depth
-    String[] dim;
-    String geo = iAttributes.get("Geometry");
-    if (geo != null) {
-      dim = geo.split("x|\\+");
-      iAttributes.put("Width",dim[0]);
-      iAttributes.put("Height",dim[1]);
-    }
-    geo = iAttributes.get("Page geometry");
-    if (geo != null) {
-      dim = geo.split("x|\\+");
-      iAttributes.put("PageWidth",dim[0]);
-      iAttributes.put("PageHeight",dim[1]);
-      iAttributes.put("PageGeometry",geo);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Parse line of identify-output
-  */
-
-  private void parseLine(String pLine) {
-    // structure:
-    //    indent attribute: value
-
-    if (pLine.startsWith("Image:")) {
-      // start of a new scene
-      if (iAttributes != null) {
-	addBaseInfo();
-	iAttribList.add(iAttributes);
-      }
-      iAttributes = new Hashtable<String,String>();
-    }
-    int indent = pLine.indexOf(pLine.trim())/2;
-
-    String[] parts = pLine.trim().split(": ",2);
-
-    // check indentation level and remove prefix if necessary
-    if (indent < iOldIndent) {
-      // remove tokens from iPrefix
-      int colonIndex=iPrefix.length()-1;
-      for (int i=0;i<iOldIndent-indent;++i) {
-	colonIndex = iPrefix.lastIndexOf(':',colonIndex-1);
-      }
-      if (colonIndex == -1) {
-	iPrefix="";
-      } else {
-	iPrefix=iPrefix.substring(0,colonIndex+1);
-      }
-    }
-    iOldIndent = indent;
-
-    // add a new attribute or increase prefix
-    if (parts.length == 1) {
-      // no value => add attribute to attribute-prefix
-      iPrefix=iPrefix+parts[0];
-    } else {
-      // value => add (key,value) to attributes
-      iAttributes.put(iPrefix+parts[0],parts[1]);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Query basic image-information.
- 
-     @param pImage  Source image
-     @param pInput  InputStream (must not be null for pImage=="-")
-
-     @since 1.2.0
-  */
-
-  private void getBaseInfo(String pImage, InputStream pInput) throws InfoException {
-    // create operation
-    IMOperation op = new IMOperation();
-    op.ping();
-    op.format("%m\n%w\n%h\n%g\n%W\n%H\n%G\n%z\n%r");
-    op.addImage(pImage);
-
-    try {
-      // execute ...
-      IdentifyCmd identify = new IdentifyCmd();
-      ArrayListOutputConsumer output = new ArrayListOutputConsumer();
-      identify.setOutputConsumer(output);
-      if (pInput != null) {
-        Pipe inputPipe = new Pipe(pInput,null);
-	identify.setInputProvider(inputPipe);
-      }
-      identify.run(op);
-
-      // ... and parse result
-      ArrayList<String> cmdOutput = output.getOutput();
-      Iterator<String> iter = cmdOutput.iterator();
-
-      iAttributes = new Hashtable<String,String>();
-      iAttributes.put("Format",iter.next());
-      iAttributes.put("Width",iter.next());
-      iAttributes.put("Height",iter.next());
-      iAttributes.put("Geometry",iter.next());
-      iAttributes.put("PageWidth",iter.next());
-      iAttributes.put("PageHeight",iter.next());
-      iAttributes.put("PageGeometry",iter.next());
-      iAttributes.put("Depth",iter.next());
-      iAttributes.put("Class",iter.next());
-      iAttribList.add(iAttributes);
-    } catch (Exception ex) {
-      throw new InfoException(ex);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the image format.
-  */
-
-  public String getImageFormat() {
-    return iAttributes.get("Format");
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the image format for the given scene.
-
-     @param pSceneNr Scene-number (zero-based)
-
-     @since 1.3.0
-  */
-
-  public String getImageFormat(int pSceneNr) {
-    return iAttribList.get(pSceneNr).get("Format");
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the image width.
-  */
-
-  public int getImageWidth() throws InfoException {
-    return getImageWidth(iAttribList.size()-1);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the image width for the given scene.
-
-     @param pSceneNr Scene-number (zero-based)
-
-     @since 1.3.0
-  */
-
-  public int getImageWidth(int pSceneNr) throws InfoException {
-    try {
-      return Integer.parseInt(iAttribList.get(pSceneNr).get("Width"));
-    } catch (NumberFormatException ex) {
-      throw new InfoException(ex);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the image height.
-  */
-
-  public int getImageHeight() throws InfoException {
-    return getImageHeight(iAttribList.size()-1);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the image height for the given scene.
-
-     @param pSceneNr Scene-number (zero-based)
-
-     @since 1.3.0
-  */
-
-  public int getImageHeight(int pSceneNr) throws InfoException {
-    try {
-      return Integer.parseInt(iAttribList.get(pSceneNr).get("Height"));
-    } catch (NumberFormatException ex) {
-      throw new InfoException(ex);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the image geometry.
-  */
-
-  public String getImageGeometry() {
-    return iAttributes.get("Geometry");
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the image geometry for the given scene.
-
-     @param pSceneNr Scene-number (zero-based)
-
-     @since 1.3.0
-  */
-
-  public String getImageGeometry(int pSceneNr) {
-    return iAttribList.get(pSceneNr).get("Geometry");
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the image depth. Note that this method just returns an integer
-     (e.g. 8 or 16), and not a string ("8-bit") like getProperty("Depth")
-     does.
-
-     @since 1.3.0
-  */
-
-  public int getImageDepth() throws InfoException {
-    return getImageDepth(iAttribList.size()-1);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the image depth. Note that this method just returns an integer
-     (e.g. 8 or 16), and not a string ("8-bit") like getProperty("Depth")
-     does.
-
-     @param pSceneNr Scene-number (zero-based)
-
-     @since 1.3.0
-  */
-
-  public int getImageDepth(int pSceneNr) throws InfoException {
-    String[] depth = iAttribList.get(pSceneNr).get("Depth").split("-|/",2);
-    try {
-      return Integer.parseInt(depth[0]);
-    } catch (NumberFormatException ex) {
-      throw new InfoException(ex);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the image class.
-  */
-
-  public String getImageClass() {
-    return iAttributes.get("Class");
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the image class for the given scene.
-
-     @param pSceneNr Scene-number (zero-based)
-
-     @since 1.3.0
-  */
-
-  public String getImageClass(int pSceneNr) {
-    return iAttribList.get(pSceneNr).get("Class");
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the page width.
-
-     @since 1.3.0
-  */
-
-  public int getPageWidth() throws InfoException {
-    return getPageWidth(iAttribList.size()-1);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the page width for the given scene.
-
-     @param pSceneNr Scene-number (zero-based)
-
-     @since 1.3.0
-  */
-
-  public int getPageWidth(int pSceneNr) throws InfoException {
-    try {
-      return Integer.parseInt(iAttribList.get(pSceneNr).get("PageWidth"));
-    } catch (NumberFormatException ex) {
-      throw new InfoException(ex);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the page height.
-
-     @since 1.3.0
-  */
-
-  public int getPageHeight() throws InfoException {
-    return getPageHeight(iAttribList.size()-1);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the page height for the given scene.
-
-     @param pSceneNr Scene-number (zero-based)
-
-     @since 1.3.0
-  */
-
-  public int getPageHeight(int pSceneNr) throws InfoException {
-    try {
-      return Integer.parseInt(iAttribList.get(pSceneNr).get("PageHeight"));
-    } catch (NumberFormatException ex) {
-      throw new InfoException(ex);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the page geometry.
-
-     @since 1.3.0
-  */
-
-  public String getPageGeometry() {
-    return iAttributes.get("PageGeometry");
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the page geometry for the given scene.
-
-     @param pSceneNr Scene-number (zero-based)
-
-     @since 1.3.0
-  */
-
-  public String getPageGeometry(int pSceneNr) {
-    return iAttribList.get(pSceneNr).get("PageGeometry");
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the given property.
-  */
-
-  public String getProperty(String pPropertyName) {
-    return iAttributes.get(pPropertyName);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the given property of the given scene.
-
-     @param pPropertyName Name of the property
-     @param pSceneNr Scene-number (zero-based)
-
-     @since 1.3.0
-  */
-
-  public String getProperty(String pPropertyName, int pSceneNr) {
-    return iAttribList.get(pSceneNr).get(pPropertyName);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the number of scenes.
-
-     @since 1.3.0
-  */
-
-  public int getSceneCount() {
-    return iAttribList.size();
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return an enumeration of all properties.
-  */
-
-  public Enumeration<String> getPropertyNames() {
-    return iAttributes.keys();
-  }
-}

+ 0 - 78
TWPUtil/libdir/JMagix/src/org/im4java/core/InfoException.java

@@ -1,78 +0,0 @@
-/**************************************************************************
-/* This class wraps exceptions during image-attribute retrivial.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-import java.util.*;
-import java.io.*;
-
-/**
-   This class wraps exceptions during image-attribute retrivial.
-
-   @version $Revision: 1.3 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class InfoException extends IM4JavaException {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public  InfoException() {
-    super();
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public  InfoException(String pMessage) {
-    super(pMessage);
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public  InfoException(String pMessage, Throwable pCause) {
-    super(pMessage,pCause);
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public  InfoException(Throwable pCause) {
-    super(pCause);
-  }
-
-}

+ 0 - 44
TWPUtil/libdir/JMagix/src/org/im4java/core/JPTOperation.java

@@ -1,44 +0,0 @@
-/**************************************************************************
-/* This class models the command-line of jpegtran.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-
-/**
-   This class models the command-line of jpegtran. 
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 0.96
-*/
-
-public class JPTOperation extends JPTOps {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public JPTOperation() {
-  }
-}

+ 0 - 363
TWPUtil/libdir/JMagix/src/org/im4java/core/JPTOps.java

@@ -1,363 +0,0 @@
-/**************************************************************************
-/* This class adds all the JPT methods to an Operation.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This class subclasses Operation and adds methods for all commandline
-   options of jpegtran.
-
-   <p>This class is automatically generated by the source-code generator of
-   im4java.</p>
-
-   @version $Revision: 1.14 $
-   @author  $Author: bablokb $
-*/
-
-public class JPTOps extends Operation {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The protected Constructor. You should only use subclasses of JPTOps.
-  */
-
-  protected JPTOps() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -copy to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps copy(String pCopyType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-copy");
-
-    if (pCopyType != null) {
-      buf.append(pCopyType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -optimize to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps optimize() {
-
-    iCmdArgs.add("-optimize");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -progressive to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps progressive() {
-
-    iCmdArgs.add("-progressive");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -crop to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps crop(Integer pWidth) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-crop");
-
-    if (pWidth != null) {
-      buf.append(pWidth.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -grayscale to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps grayscale() {
-
-    iCmdArgs.add("-grayscale");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -flip to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps flip(String type) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-flip");
-
-    if (type != null) {
-      buf.append(type.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -perfect to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps perfect() {
-
-    iCmdArgs.add("-perfect");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -rotate to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps rotate(Double pDegrees) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-rotate");
-
-    if (pDegrees != null) {
-      buf.append(pDegrees.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -transpose to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps transpose() {
-
-    iCmdArgs.add("-transpose");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -transverse to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps transverse() {
-
-    iCmdArgs.add("-transverse");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -trim to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps trim() {
-
-    iCmdArgs.add("-trim");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -restart to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps restart(Integer pNumber) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-restart");
-
-    if (pNumber != null) {
-      buf.append(pNumber.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -maxmemory to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps maxmemory(Integer pSize) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-maxmemory");
-
-    if (pSize != null) {
-      buf.append(pSize.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -outfile to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps outfile(String pFilename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-outfile");
-
-    if (pFilename != null) {
-      buf.append(pFilename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -verbose to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps verbose() {
-
-    iCmdArgs.add("-verbose");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -debug to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps debug() {
-
-    iCmdArgs.add("-debug");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -arithmetic to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps arithmetic() {
-
-    iCmdArgs.add("-arithmetic");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option -scans to the jpegtran commandline
-     (see the documentation of jpegtran for details).
-  */
-
-  public JPTOps scans(String pFilename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    iCmdArgs.add("-scans");
-
-    if (pFilename != null) {
-      buf.append(pFilename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-
-}

+ 0 - 44
TWPUtil/libdir/JMagix/src/org/im4java/core/JpegtranCmd.java

@@ -1,44 +0,0 @@
-/**************************************************************************
-/* This class wraps the jpegtran command.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This class wraps the jpegtran command.
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 0.96
-*/
-
-public class JpegtranCmd extends ImageCommand {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public  JpegtranCmd() {
-    super("jpegtran");
-  }
-}

+ 0 - 69
TWPUtil/libdir/JMagix/src/org/im4java/core/MogrifyCmd.java

@@ -1,69 +0,0 @@
-/**************************************************************************
-/* This class wraps the IM command mogrify.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-import java.util.*;
-import java.io.*;
-
-import org.im4java.core.ImageCommand;
-
-/**
-   This class wraps the IM command mogrify.
-
-   @version $Revision: 1.6 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class MogrifyCmd extends ImageCommand {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public  MogrifyCmd() {
-    super();
-    if (!Boolean.getBoolean("im4java.useGM")) {
-      setCommand("mogrify");
-    } else {
-      setCommand("gm","mogrify");
-    }
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor with option to use GraphicsMagick.
-  */
-
-  public  MogrifyCmd(boolean useGM) {
-    super();
-    if (useGM) {
-      setCommand("gm","mogrify");
-    } else {
-      setCommand("mogrify");
-    }
-  }
-}

+ 0 - 69
TWPUtil/libdir/JMagix/src/org/im4java/core/MontageCmd.java

@@ -1,69 +0,0 @@
-/**************************************************************************
-/* This class wraps the IM command montage.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-import java.util.*;
-import java.io.*;
-
-import org.im4java.core.ImageCommand;
-
-/**
-   This class wraps the IM command montage.
-
-   @version $Revision: 1.6 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class MontageCmd extends ImageCommand {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public  MontageCmd() {
-    super();
-    if (!Boolean.getBoolean("im4java.useGM")) {
-      setCommand("montage");
-    } else {
-      setCommand("gm","montage");
-    }
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor with option to use GraphicsMagick.
-  */
-
-  public  MontageCmd(boolean useGM) {
-    super();
-    if (useGM) {
-      setCommand("gm","montage");
-    } else {
-      setCommand("montage");
-    }
-  }
-}

+ 0 - 231
TWPUtil/libdir/JMagix/src/org/im4java/core/Operation.java

@@ -1,231 +0,0 @@
-/**************************************************************************
-/* The base class for image-based commandline operations.
-/*
-/* Copyright (c) 2009-2010 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-import java.util.LinkedList;
-import java.util.List;
-
-/**
-   The base class for image-based commandline operations. The class
-   provides some standard methods for all subclasses.
-
-   <p>This class models the command-line of an image-command. 
-   Objects of this class hold the arguments in a list and keep
-   track of special "dynamic" operations.</p>
-
-   @version $Revision: 1.9 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public  class Operation {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Placeholder-string for images.
-  */
-
-  public final static String IMG_PLACEHOLDER = "?img?";
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Placeholder-string for dynamic operations.
-  */
-
-  final static String DOP_PLACEHOLDER = "?dop?";
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The list of command-line arguments.
-  */
-
-  LinkedList<String> iCmdArgs = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     DynamicOperations for this Operation.
-  */
-
-  private LinkedList<DynamicOperation> iDynamicOperations = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public Operation() {
-    iCmdArgs           = new LinkedList<String>();
-    iDynamicOperations = new LinkedList<DynamicOperation>();
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Convert to String. Note that the arguments are not quoted!
-  */
-
-  public String toString() {
-    StringBuffer buf = new StringBuffer();
-    for (String arg:iCmdArgs) {
-      buf.append(arg).append(" ");
-    }
-    return buf.toString();
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Clone the (java) object. Note that ImageMagick has a -clone operator,
-     therefore this class has a method clone() (inherited from  Core) which
-     does not clone the java-object, but wraps the IM-clone operator!
-  */
-
-  public Operation cloneObject() {
-    Operation op = new Operation();
-    op.getCmdArgs().addAll(iCmdArgs);
-    return op;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add raw text to the list of arguments.
-  */
-
-  public Operation addRawArgs(String... pArgs) {
-    for (String arg:pArgs) {
-      iCmdArgs.add(arg);
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add raw text to the list of arguments.
-  */
-
-  public Operation addRawArgs(List<String> pArgs) {
-    iCmdArgs.addAll(pArgs);
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the raw arguments.
-  */
-
-  public LinkedList<String> getCmdArgs() {
-    return iCmdArgs;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add image(s) to the operation.
-  */
-
-  public Operation addImage(String... pImages) {
-    for (String img:pImages) {
-      if (img != null) {
-        if (img.charAt(0) == '[' && img.charAt(img.length()-1) == ']') {
-          // special case: img is a read-modifier [WxH+X+Y] without
-          // an image-name. So prefix it with a placeholder.
-          iCmdArgs.add(IMG_PLACEHOLDER+img);
-	} else {
-	  iCmdArgs.add(img);
-	}
-      }
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add an image-placeholder to an Operation.
-  */
-
-  public Operation addImage() {
-    return addImage(1);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add multiple image-placeholders to an Operation.
-  */
-
-  public Operation addImage(int n) {
-    for (int i=0; i<n; ++i) {
-      iCmdArgs.add(IMG_PLACEHOLDER);
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add an Operation.
-  */
-
-  public Operation addOperation(Operation pOperation) {
-    return addRawArgs(pOperation.getCmdArgs());
-  }
-
-
-  ///////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Add a DynamicOperation to this Operation. We just save the DynamicOperation
-   * in the internal list and add a placeholder for the operation.
-
-   @param pOperation the dynamic operation to add
-   @return this Operation-object
-  */
-
-    public Operation addDynamicOperation(DynamicOperation pOperation) {
-      iDynamicOperations.add(pOperation);
-      iCmdArgs.add(DOP_PLACEHOLDER);
-      return this;
-    }
-
-
-  ///////////////////////////////////////////////////////////////////////////////
-
-    /**
-     * Return the list of DynmicOperations.
-
-     @return the list of DynamicOperations
-    */
-
-    public LinkedList<DynamicOperation> getDynamicOperations() {
-      return iDynamicOperations;
-    }
-}

+ 0 - 98
TWPUtil/libdir/JMagix/src/org/im4java/core/Stream2BufferedImage.java

@@ -1,98 +0,0 @@
-/**************************************************************************
-/* This helper class reads an InputStream and creates a BufferedImage.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-import java.io.InputStream;
-import java.io.IOException;
-import java.util.Iterator;
-import java.awt.image.BufferedImage;
-import javax.imageio.ImageIO;
-import javax.imageio.stream.ImageInputStream;
-import javax.imageio.ImageReader;
-
-
-import org.im4java.process.OutputConsumer;
-
-/**
-   This helper class reads an InputStream and creates a BufferedImage.
-
-   @version $Revision: 1.4 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class Stream2BufferedImage implements OutputConsumer {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The BufferedImage.
-  */
-
-  private BufferedImage iImage;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * The constructor
-   */
-
-  public Stream2BufferedImage() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-    
-  /**
-     Read the output of the command and create a BufferedImage
-     
-     @see org.im4java.process.OutputConsumer#consumeOutput(java.io.InputStream)
-  */
-    
-  public void consumeOutput(InputStream pInputStream) throws IOException {
-    ImageInputStream iis = ImageIO.createImageInputStream(pInputStream);
-    if (iis != null) {
-      Iterator<ImageReader> iter = ImageIO.getImageReaders(iis);
-      if (iter.hasNext()) {
-	ImageReader reader = iter.next();
-	reader.setInput(iis);
-	iImage = reader.read(0);
-	iis.close();
-	reader.dispose();
-      } else {
-	throw new IllegalStateException("no ImageReader for given format");
-      }
-    } else {
-      throw new IllegalStateException("failed to create ImageInputStream");
-    }
-  }
-  
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-   * Return the BufferedImage.
-   */
-
-  public BufferedImage getImage() {
-    return iImage;
-  }
-}

+ 0 - 49
TWPUtil/libdir/JMagix/src/org/im4java/core/UFRawCmd.java

@@ -1,49 +0,0 @@
-/**************************************************************************
-/* This class wraps the ufraw/ufraw-batch command.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This class wraps the ufraw/ufraw-batch command.
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 0.97
-*/
-
-public class UFRawCmd extends ImageCommand {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor. For batch-procressing, set argument to true.
-  */
-
-  public UFRawCmd(boolean pBatchMode) {
-    super();
-    if (pBatchMode) {
-      setCommand("ufraw-batch");
-    } else {
-      setCommand("ufraw");
-    }
-  }
-}

+ 0 - 95
TWPUtil/libdir/JMagix/src/org/im4java/core/UFRawOperation.java

@@ -1,95 +0,0 @@
-/**************************************************************************
-/* This class models the command-line of ufraw/ufraw-batch.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-
-/**
-   This class models the command-line of ufraw/ufraw-batch.
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 0.97
-*/
-
-public class UFRawOperation extends UFRawOps {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  public UFRawOperation() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     --exposure= with String-argument only accepts "auto".
-  */
-
-  public UFRawOps exposure(String pAuto) {
-    if (pAuto.equals("auto")) {
-      return super.exposure(pAuto);
-    } else {
-      throw new IllegalArgumentException();
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     --black-point= with String-argument only accepts "auto".
-  */
-
-  public UFRawOps blackPoint(String pAuto) {
-    if (pAuto.equals("auto")) {
-      return super.blackPoint(pAuto);
-    } else {
-      throw new IllegalArgumentException();
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Method to set all crop-values at once.
-  */
-
-  public UFRawOperation crop(Integer pLeft, Integer pRight, Integer pTop, 
-                                                              Integer pBottom) {
-    if (pLeft != null) {
-      cropLeft(pLeft);
-    }
-    if (pRight != null) {
-      cropRight(pRight);
-    }
-    if (pTop != null) {
-      cropTop(pTop);
-    }
-    if (pBottom != null) {
-      cropBottom(pBottom);
-    }
-    return this;
-  }
-}

+ 0 - 943
TWPUtil/libdir/JMagix/src/org/im4java/core/UFRawOps.java

@@ -1,943 +0,0 @@
-/**************************************************************************
-/* This class adds all the UFRaw methods to an Operation.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.core;
-
-/**
-   This class subclasses Operation and adds methods for all commandline
-   options of ufraw.
-
-   <p>This class is automatically generated by the source-code generator of
-   im4java.</p>
-
-   @version $Revision: 1.14 $
-   @author  $Author: bablokb $
-*/
-
-public class UFRawOps extends Operation {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The protected Constructor. You should only use subclasses of UFRawOps.
-  */
-
-  protected UFRawOps() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --conf= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps conf(String pFile) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--conf=");
-
-    if (pFile != null) {
-      buf.append(pFile.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --wb= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps wb(String pType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--wb=");
-
-    if (pType != null) {
-      buf.append(pType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --temperature= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps temperature(Integer pTemp) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--temperature=");
-
-    if (pTemp != null) {
-      buf.append(pTemp.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --green= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps green(Double pFactor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--green=");
-
-    if (pFactor != null) {
-      buf.append(pFactor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --base-curve= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps baseCurve(String pType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--base-curve=");
-
-    if (pType != null) {
-      buf.append(pType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --base-curve-file= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps baseCurveFile(String pBaseCurveFile) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--base-curve-file=");
-
-    if (pBaseCurveFile != null) {
-      buf.append(pBaseCurveFile.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --curve= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps curve(String pCurveType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--curve=");
-
-    if (pCurveType != null) {
-      buf.append(pCurveType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --curve-file= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps curveFile(String pCurveFile) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--curve-file=");
-
-    if (pCurveFile != null) {
-      buf.append(pCurveFile.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --restore= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps restore(String pType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--restore=");
-
-    if (pType != null) {
-      buf.append(pType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --clip= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps clip(String pType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--clip=");
-
-    if (pType != null) {
-      buf.append(pType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --gamma= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps gamma(Double pGamma) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--gamma=");
-
-    if (pGamma != null) {
-      buf.append(pGamma.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --linearity= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps linearity(Double pLinearity) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--linearity=");
-
-    if (pLinearity != null) {
-      buf.append(pLinearity.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --contrast= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps contrast(Double pContrast) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--contrast=");
-
-    if (pContrast != null) {
-      buf.append(pContrast.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --saturation= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps saturation(Double pSaturation) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--saturation=");
-
-    if (pSaturation != null) {
-      buf.append(pSaturation.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --wavelet-denoising-threshold= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps waveletDenoisingThreshold(Double pThreshold) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--wavelet-denoising-threshold=");
-
-    if (pThreshold != null) {
-      buf.append(pThreshold.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --hotpixel-sensitivity= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps hotpixelSensitivity(Double pValue) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--hotpixel-sensitivity=");
-
-    if (pValue != null) {
-      buf.append(pValue.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --exposure= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps exposure(String pAuto) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--exposure=");
-
-    if (pAuto != null) {
-      buf.append(pAuto.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --black-point= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps blackPoint(String pAuto) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--black-point=");
-
-    if (pAuto != null) {
-      buf.append(pAuto.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --interpolation= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps interpolation(String pType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--interpolation=");
-
-    if (pType != null) {
-      buf.append(pType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --color-smoothing to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps colorSmoothing() {
-
-    iCmdArgs.add("--color-smoothing");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --grayscale= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps grayscale(String pType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--grayscale=");
-
-    if (pType != null) {
-      buf.append(pType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --shrink= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps shrink(Double pFactor) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--shrink=");
-
-    if (pFactor != null) {
-      buf.append(pFactor.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --size= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps size(Integer pSize) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--size=");
-
-    if (pSize != null) {
-      buf.append(pSize.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --out-type= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps outType(String pType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--out-type=");
-
-    if (pType != null) {
-      buf.append(pType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --out-depth= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps outDepth(Integer pDepth) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--out-depth=");
-
-    if (pDepth != null) {
-      buf.append(pDepth.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --create-id= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps createId(String pType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--create-id=");
-
-    if (pType != null) {
-      buf.append(pType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --compression= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps compression(Integer Value) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--compression=");
-
-    if (Value != null) {
-      buf.append(Value.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --exif to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps exif() {
-
-    iCmdArgs.add("--exif");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --noexif to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps noexif() {
-
-    iCmdArgs.add("--noexif");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --zip to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps zip() {
-
-    iCmdArgs.add("--zip");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --nozip to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps nozip() {
-
-    iCmdArgs.add("--nozip");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --embedded-image to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps embeddedImage() {
-
-    iCmdArgs.add("--embedded-image");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --rotate= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps rotate(String pType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--rotate=");
-
-    if (pType != null) {
-      buf.append(pType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --crop-left= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps cropLeft(Integer pCount) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--crop-left=");
-
-    if (pCount != null) {
-      buf.append(pCount.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --crop-right= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps cropRight(Integer pCount) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--crop-right=");
-
-    if (pCount != null) {
-      buf.append(pCount.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --crop-top= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps cropTop(Integer pCount) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--crop-top=");
-
-    if (pCount != null) {
-      buf.append(pCount.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --crop-bottom= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps cropBottom(Integer pCount) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--crop-bottom=");
-
-    if (pCount != null) {
-      buf.append(pCount.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --lensfun= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps lensfun(String pType) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--lensfun=");
-
-    if (pType != null) {
-      buf.append(pType.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --out-path= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps outPath(String pPath) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--out-path=");
-
-    if (pPath != null) {
-      buf.append(pPath.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --output= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps output(String pFilename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--output=");
-
-    if (pFilename != null) {
-      buf.append(pFilename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --darkframe= to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps darkframe(String pFilename) {
-
-    String       oper;                      // only used in some methods
-    StringBuffer buf = new StringBuffer();  // local buffer for option-args
-    buf.append("--darkframe=");
-
-    if (pFilename != null) {
-      buf.append(pFilename.toString());
-    }
-    if (buf.length()>0) {
-      iCmdArgs.add(buf.toString());
-    }
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --overwrite to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps overwrite() {
-
-    iCmdArgs.add("--overwrite");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --maximize-window to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps maximizeWindow() {
-
-    iCmdArgs.add("--maximize-window");
-
-    return this;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add option --silent to the ufraw commandline
-     (see the documentation of ufraw for details).
-  */
-
-  public UFRawOps silent() {
-
-    iCmdArgs.add("--silent");
-
-    return this;
-  }
-
-
-}

+ 0 - 22
TWPUtil/libdir/JMagix/src/org/im4java/core/package.html

@@ -1,22 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<!--
-
-  Copyright (c) 2009-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
-  $Revision: 1.1 $
-  $Author: bablokb $
-
--->
-</head>
-<body bgcolor="white">
-
-Contains core classes for image-processing. 
-
-<!-- Put @see and @since tags down here. -->
-
-@since 0.95
-
-</body>
-</html>

+ 0 - 140
TWPUtil/libdir/JMagix/src/org/im4java/process/ArrayListConsumer.java

@@ -1,140 +0,0 @@
-/**************************************************************************
-/* This class is the base class with common methods for
-/* ArrayListOutputConsumer and  ArrayListErrorConsumer.
-/*
-/* Copyright (c) 2009-2013 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.util.ArrayList;
-
-
-/**
-   Base class for ArrayListOutputConsumer and ArrayListErrorConsumer
-   with common methods.
-
-   @version $Revision: 1.1 $
-   @author  $Author: bablokb $
- 
-   @since 1.4.0
-
-   @see ArrayListOutputConsumer
-   @see ArrayListErrorConsumer
-*/
-
-public abstract class ArrayListConsumer {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The output list.
-     
-     @since 1.4.0
-  */
-
-  private ArrayList<String> iOutputLines = new ArrayList<String>();
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The charset-name for the internal InputStreamReader.
-
-     @since 1.4.0
-  */
-
-  private String iCharset = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Default Constructor.
-
-     @since 1.4.0
-  */
-
-  public  ArrayListConsumer() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor taking a charset-name as argument.
-
-     @param pCharset charset-name for internal InputStreamReader
-
-     @since 1.4.0
-  */
-
-  public  ArrayListConsumer(String pCharset) {
-    iCharset = pCharset;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Return array with output-lines.
-
-     @since 1.4.0
-  */
-
-  public ArrayList<String> getOutput() {
-    return iOutputLines;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Clear the output.
-
-     @since 1.4.0
-  */
-
-  public void clear() {
-    iOutputLines.clear();
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Read from InputStream and save in an internal field.
-
-     @param pInputStream source InputStream
-
-     @since 1.4.0
-  */
-
-  protected void consume(InputStream pInputStream) throws IOException {
-    InputStreamReader isr = null;
-    if (iCharset == null) {
-      isr = new InputStreamReader(pInputStream);
-    } else {
-      isr = new InputStreamReader(pInputStream,iCharset);
-    }
-    BufferedReader reader = new BufferedReader(isr);
-    String line;
-    while ((line=reader.readLine()) != null) {
-      iOutputLines.add(line);
-    }
-    reader.close();
-  }
-}

+ 0 - 82
TWPUtil/libdir/JMagix/src/org/im4java/process/ArrayListErrorConsumer.java

@@ -1,82 +0,0 @@
-/**************************************************************************
-/* This class is an ErrorConsumer which saves the output to an ArrayList.
-/*
-/* Copyright (c) 2009-2013 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.util.ArrayList;
-
-
-/**
-   This class is an ErrorConsumer which saves the output to an ArrayList.
-
-   @version $Revision: 1.1 $
-   @author  $Author: bablokb $
- 
-   @since 1.4.0
-*/
-
-public class ArrayListErrorConsumer extends ArrayListConsumer 
-                                                     implements ErrorConsumer {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Default Constructor.
-
-     @since 1.4.0
-  */
-
-  public  ArrayListErrorConsumer() {
-    super();
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor taking a charset-name as argument.
-
-     @param pCharset charset-name for internal InputStreamReader
-
-     @since 1.4.0
-  */
-
-  public  ArrayListErrorConsumer(String pCharset) {
-    super(pCharset);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Read command output and save in an internal field.
-     @see org.im4java.process.ErrorConsumer#consumeError(java.io.InputStream)
-
-     @since 1.4.0
-  */
-
-
-  public void consumeError(InputStream pInputStream) throws IOException {
-    consume(pInputStream);
-  }
-}

+ 0 - 76
TWPUtil/libdir/JMagix/src/org/im4java/process/ArrayListOutputConsumer.java

@@ -1,76 +0,0 @@
-/**************************************************************************
-/* This class is an OutputConsumer which saves the output to an ArrayList.
-/*
-/* Copyright (c) 2009-2013 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.util.ArrayList;
-
-
-/**
-   This class is an OutputConsumer which saves the output to an ArrayList.
-
-   @version $Revision: 1.5 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class ArrayListOutputConsumer extends ArrayListConsumer 
-                                                     implements OutputConsumer {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Default Constructor.
-  */
-
-  public  ArrayListOutputConsumer() {
-    super();
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor taking a charset-name as argument.
-
-     @param pCharset charset-name for internal InputStreamReader
-  */
-
-  public  ArrayListOutputConsumer(String pCharset) {
-    super(pCharset);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Read command output and save in an internal field.
-     @see org.im4java.process.OutputConsumer#consumeOutput(java.io.InputStream)
-  */
-
-
-  public void consumeOutput(InputStream pInputStream) throws IOException {
-    consume(pInputStream);
-  }
-}

+ 0 - 47
TWPUtil/libdir/JMagix/src/org/im4java/process/ErrorConsumer.java

@@ -1,47 +0,0 @@
-/**************************************************************************
-/* This interface defines an ErrorConsumer.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-import java.io.InputStream;
-import java.io.IOException;
-
-/**
-   This interface defines an ErrorConsumer. An ErrorConsumer reads
-   output from a process' stderr.
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public interface ErrorConsumer {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The ErrorConsumer must read the output of a process from the given
-     InputStream.
-  */
-
-  public void consumeError(InputStream pInputStream) throws IOException;
-}

+ 0 - 46
TWPUtil/libdir/JMagix/src/org/im4java/process/InputProvider.java

@@ -1,46 +0,0 @@
-/**************************************************************************
-/* This interface defines an InputProvider.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-import java.io.OutputStream;
-import java.io.IOException;
-
-/**
-   This interface defines an InputProvider. An InputProvider supplies
-   input for a process.
-
-   @version $Revision: 1.3 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public interface InputProvider {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The InputProvider must write the input to the given OutputStream.
-  */
-
-  public void provideInput(OutputStream pOutputStream) throws IOException;
-}

+ 0 - 47
TWPUtil/libdir/JMagix/src/org/im4java/process/OutputConsumer.java

@@ -1,47 +0,0 @@
-/**************************************************************************
-/* This interface defines an OutputConsumer.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-import java.io.InputStream;
-import java.io.IOException;
-
-/**
-   This interface defines an OutputConsumer. An OutputConsumer reads
-   output from a process' stdout.
-
-   @version $Revision: 1.3 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public interface OutputConsumer {
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The OutputConsumer must read the output of a process from the given
-     InputStream.
-  */
-
-  public void consumeOutput(InputStream pInputStream) throws IOException;
-}

+ 0 - 136
TWPUtil/libdir/JMagix/src/org/im4java/process/Pipe.java

@@ -1,136 +0,0 @@
-/**************************************************************************
-/* This class implements a pipe.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-import java.io.OutputStream;
-import java.io.InputStream;
-import java.io.IOException;
-
-
-/**
-   This class implements a pipe. Useful for piping input to a process
-   or piping output/error from a process to other streams.
-
-   <p>You can use the same Pipe-object for both ends of a process-pipeline.
-   But you cannot use the same Pipe-object as an OutputConsumer and
-   ErrorConsumer at the same time.</p>
-
-   @version $Revision: 1.8 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class Pipe implements InputProvider, OutputConsumer, ErrorConsumer {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Default buffer size of the pipe. Currently 64KB.
-  */
-
-  public static final int BUFFER_SIZE=65536;
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The source of data (i.e. this pipe will provide input for a process).
-  */
-
-  private InputStream iSource;
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The sink for data (i.e. this pipe will consume output of a process).
-  */
-
-  private OutputStream iSink;
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor. At least one of the arguments should not be null. 
-  */
-
-  public Pipe(InputStream pSource, OutputStream pSink) {
-    iSource = pSource;
-    iSink = pSink;
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The InputProvider must write the input to the given OutputStream.
-  */
-
-  public void provideInput(OutputStream pOutputStream) throws IOException {
-    copyBytes(iSource,pOutputStream);
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The OutputConsumer must read the output of a process from the given
-     InputStream.
-  */
-
-  public void consumeOutput(InputStream pInputStream) throws IOException {
-    if (iSink != null) {
-      copyBytes(pInputStream,iSink);
-    }
-  }
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The ErrorConsumer must read the error of a process from the given
-     InputStream.
-  */
-
-  public void consumeError(InputStream pInputStream) throws IOException {
-    if (iSink != null) {
-      copyBytes(pInputStream,iSink);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Copy bytes from an InputStream to an OutputStream.
-  */
-
-  private void copyBytes(InputStream pIs, OutputStream pOs) throws IOException {
-    byte[] buffer = new byte[BUFFER_SIZE];
-    while (true) {
-     int byteCount = pIs.read(buffer);
-     if (byteCount == -1) {
-       break;
-     }
-     // synchronize on OutputStream
-     synchronized(pOs) {
-       pOs.write(buffer,0,byteCount);
-     }
-    }
-    pOs.flush();
-   }
-}

+ 0 - 181
TWPUtil/libdir/JMagix/src/org/im4java/process/ProcessEvent.java

@@ -1,181 +0,0 @@
-/**************************************************************************
-/* This class wraps return-code and Exceptions of a terminated process.
-/*
-/* Copyright (c) 2009-2010 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-/**
-   This class  wraps return-code and Exceptions of a terminated process. 
-
-   @version $Revision: 1.4 $
-   @author  $Author: bablokb $
- 
-   @since 0.06
- */
-
-public class ProcessEvent {
-  
-  ////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The Process this ProcessEvent belongs to.
-  */
-
-  private Process iProcess;
-  
-  ////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The Process-ID of the process. Note that this ID has nothing to do with
-     the process-id of the operating-system for the given process.
-  */
-
-  private int iPID;
-  
-  ////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The ProcessStarter which started the given process.
-  */
-
-  private ProcessStarter iProcessStarter;
-  
-  ////////////////////////////////////////////////////////////////////////////
-  
-  /**
-    The return-code of the process. Note that this field is only valid, if
-    no exception occured.
-  */
-  
-  private int iReturnCode=Integer.MIN_VALUE;
-  
-  ////////////////////////////////////////////////////////////////////////////
-  
-  /**
-    If this field is not null, the process ended with this exception.
-  */
-  
-  private Exception iException=null;
-
-  //////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Constructor (sets pid and ProcessStarter).
-
-     @param pPID             the process-id of this proces
-     @param pProcessStarter  the ProcessStarter generating this event
-  */
-  
-  public ProcessEvent(int pPID, ProcessStarter pProcessStarter) {
-    iPID = pPID;
-    iProcessStarter = pProcessStarter;
-  }
-
-  ///////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Set the return-code of the process.
-
-     @param pReturnCode the return-code to set.
-  */
-
-  public void setReturnCode(int pReturnCode) {
-    iReturnCode = pReturnCode;
-  }
-
-  ////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Get the return-code of the process. The return-code is only valid if
-     no exception occured.
-
-     @return the return-code of this Process.
-  */
-  
-  public int getReturnCode() {
-    return iReturnCode;
-  }
-
-  ///////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Set the Process-object of this ProcessEvent.
-
-     @param pProcess the Process to set
-  */
-  public void setProcess(Process pProcess) {
-    iProcess = pProcess;
-  }
-
-  ////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Get the Process-object of this ProcessEvent.
-
-     @return the Process-object
-  */
-  public Process getProcess() {
-    return iProcess;
-  }
-
-  /////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Set the exception-field of this event.
-
-     @param pException the iException to set
-  */
-  public void setException(Exception pException) {
-    iException = pException;
-  }
-
-  ////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Query the exception-field of this event.
-
-     @return the exception-field of this event
-  */
-  public Exception getException() {
-    return iException;
-  }
-
-  ////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Query the process-id field of this event.
-
-     @return the process-id of the process related to this event.
-  */
-  public int getPID() {
-    return iPID;
-  }
-
-  ////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Query the ProcessStarter field of this event.
-
-     @return the ProcessStarter which startetd the process related to this event.
-  */
-  public ProcessStarter getProcessStarter() {
-    return iProcessStarter;
-  }
-}

+ 0 - 59
TWPUtil/libdir/JMagix/src/org/im4java/process/ProcessEventListener.java

@@ -1,59 +0,0 @@
-/**************************************************************************
-/* This interface defines methods for a ProcessEventListener.
-/*
-/* Copyright (c) 2010 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-/**
-   This interface defines methods for a ProcessEventListener. This interface
-   replaces the deprecated interface ProcessListener.
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 1.1.0
- */
-
-public interface ProcessEventListener {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     This method is called at process initiation.
-  */
-
-  public void processInitiated(ProcessEvent pEvent);
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     This method is called at process startup.
-  */
-
-  public void processStarted(ProcessEvent pEvent);
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     This method is called at normal or abnormal process termination.
-  */
-
-  public void processTerminated(ProcessEvent pEvent);
-}

+ 0 - 211
TWPUtil/libdir/JMagix/src/org/im4java/process/ProcessExecutor.java

@@ -1,211 +0,0 @@
-/**************************************************************************
-/* This class subclasses ThreadPoolExecutor and implements a
-/* pooling-service for threads running processes.
-/*
-/* Copyright (c) 2010 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-import java.util.*;
-import java.util.concurrent.*;
-
-/**
-   This class subclasses ThreadPoolExecutor and implements a
-   pooling-service for threads running processes.
-
-   @version $Revision: 1.3 $
-   @author  $Author: bablokb $
- 
-   @since 1.1.0
- */
-
-public class ProcessExecutor 
-                    extends ThreadPoolExecutor implements ProcessEventListener {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Synchronized collection of Processes added to this ProcessExecutor.
-  */
-
-  private Set<Process> iProcesses = new LinkedHashSet<Process>();
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Flag to prevent any processes to start during {@link shutdownNow}.
-  */
-
-  private boolean iShutdownNowInProgress=false;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The default constructor creates a fixed-sized thread-pool with
-     corePoolSize == maximumPoolSize.
-     The maximum number of concurrently running processes is controlled
-     by the system-property <em>im4java.maxProcs</em>. If unset or if the 
-     property has the value <em>auto</em>, the number returned by
-     Runtime.availableProcessors() is used.
-  */
-
-  public ProcessExecutor() {
-    this(getDefaultPoolSize());
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Create a ProcessExecutor with given number of threads for
-     corePoolSize and maximumPoolSize.
-
-     @param pProcs Number of concurrently executing processes.
-  */
-
-  public ProcessExecutor(int pProcs) {
-    // create superclass with pProcs threads
-    super(pProcs,pProcs,60,TimeUnit.SECONDS,
-                                            new LinkedBlockingQueue<Runnable>());
-    prestartAllCoreThreads();
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the initial pool-size.
-  */
-
-  private static int getDefaultPoolSize() {
-    int nProcs;
-    String maxProcs = System.getProperty("im4java.maxProcs");
-    if (maxProcs == null || maxProcs.equals("auto")) {
-      nProcs = Runtime.getRuntime().availableProcessors();
-    } else {
-      nProcs=Integer.parseInt(maxProcs);
-    }
-    return Math.max(1,nProcs);
-  }
-
-  ////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Register this ProcessExecutor as a  {@link ProcessEventListener}.
-
-     {@inheritDoc}
-  */
-
-  protected void beforeExecute(Thread t, Runnable r) {
-    // ugly hack to prevent process to start
-    if (iShutdownNowInProgress) {
-      t.stop();     // we just stop the target-thread for this Runnable
-      // to be on the safe side, use try-catch
-      try {
-	super.beforeExecute(t,r);
-      } catch (Exception e) {
-      }
-      return;
-    }
-    if (r instanceof ProcessTask) {
-      ProcessTask pt = (ProcessTask) r;
-      pt.getProcessStarter().addProcessEventListener(this);
-    }
-    super.beforeExecute(t,r);
-  }
-
-  ////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Deregister this ProcessExecutor as a {@link ProcessEventListener}.
-
-     {@inheritDoc}
-  */
-
-  protected void afterExecute(Runnable r, Throwable t) {
-    super.afterExecute(r,t);
-    if (r instanceof ProcessTask) {
-      ProcessTask pt = (ProcessTask) r;
-      pt.getProcessStarter().removeProcessEventListener(this);
-    }
-  }
-
-  ////////////////////////////////////////////////////////////////////////////
-
-  /**
-     {@inheritDoc}
-  */
-
-  public void processInitiated(ProcessEvent pEvent) {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     {@inheritDoc}
-
-     This method is called at process startup. We keep track of processes
-     so we can destroy them if necessary.
-  */
-
-  public void processStarted(ProcessEvent pEvent) {
-    synchronized (iProcesses) {
-      iProcesses.add(pEvent.getProcess());
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     {@inheritDoc}
-
-     This method is called at normal or abnormal process termination.
-  */
-
-  public void processTerminated(ProcessEvent pEvent) {
-    synchronized (iProcesses) {
-      iProcesses.remove(pEvent.getProcess());
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     {@inheritDoc}
-  */
-
-  public List<Runnable> shutdownNow() {
-    iShutdownNowInProgress=true;         // to prevent any processes to
-    destroy();                           // start during call to destroy()
-    return super.shutdownNow();
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Destroy all active processes.
-  */
-
-  public void destroy() {
-    synchronized (iProcesses) {
-      Iterator<Process> it = iProcesses.iterator();
-      while (it.hasNext()) {
-	it.next().destroy();
-      }
-    }
-  }
-}

+ 0 - 52
TWPUtil/libdir/JMagix/src/org/im4java/process/ProcessListener.java

@@ -1,52 +0,0 @@
-/**************************************************************************
-/* This interface defines methods for a ProcessListener.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-/**
-   This interface defines methods for a ProcessListener.
-
-   @version $Revision: 1.5 $
-   @author  $Author: bablokb $
- 
-   @since 0.96
-
-   @deprecated This interface has been superseeded by ProcessEventListener
- */
-
-public interface ProcessListener {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     This method is called at process startup.
-  */
-
-  public void processStarted(Process pProcess);
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     This method is called at normal or abnormal process termination.
-  */
-
-  public void processTerminated(ProcessEvent pEvent);
-}

+ 0 - 663
TWPUtil/libdir/JMagix/src/org/im4java/process/ProcessStarter.java

@@ -1,663 +0,0 @@
-/**************************************************************************
-/* This class implements the processing of os-commands using Runtime.exec()
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-import java.io.BufferedInputStream;
-import java.io.BufferedOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.util.LinkedList;
-import java.util.concurrent.atomic.AtomicInteger;
-import java.util.concurrent.Callable;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.FutureTask;
-
-/**
-   This class implements the processing of os-commands using a
-   ProcessBuilder. 
-
-   <p>
-     This is the core class of the im4java-library where all the
-     magic takes place. It does add some overhead compared to a
-     direct call of ProcessBuilder, but you gain additional features
-     like piping and asynchronous execution.
-   </p>
-
-   @version $Revision: 1.38 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class ProcessStarter {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Buffer size of process input-stream (used for reading the
-     output (sic!) of the process). Currently 64KB.
-  */
-
-  public static final int BUFFER_SIZE=65536;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Static global search path for executables.
-  */
-
-  private static String iGlobalSearchPath = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Per instance search path for executables.
-  */
-
-  private String iSearchPath = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The value of the global process-id counter.
-  */
-
-  private static AtomicInteger iPIDCounter = new AtomicInteger(0);
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The value of the process-id of the ProcessStarter.
-  */
-
-  private int iPID;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The InputProvider for the ProcessStarter (if used as a pipe).
-  */
-
-  private InputProvider iInputProvider = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The OutputConsumer for the ProcessStarter (if used as a pipe).
-  */
-
-  private OutputConsumer iOutputConsumer = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The ErrorConsumer for the stderr of the ProcessStarter.
-  */
-
-  private ErrorConsumer iErrorConsumer = null;
-
-
-  ////////////////////////////////////////////////////////////////////////////
-  
-  /**
-    Execution-mode. If true, run asynchronously.
-  */
-  
-  private boolean iAsyncMode = false;
-
-  ////////////////////////////////////////////////////////////////////////////
-  
-  /**
-    The ProcessListeners for this ProcessStarter.
-
-    <p>
-    This field is for compatibility only and will be removed in future
-    versions.
-    </p>
-  */
-
-  @SuppressWarnings("deprecation")
-  private LinkedList<ProcessListener> iProcessListener;
-  
-  ////////////////////////////////////////////////////////////////////////////
-  
-  /**
-    The ProcessEventListeners for this ProcessStarter.
-  */
-  private LinkedList<ProcessEventListener> iProcessEventListener;
-  
-  //////////////////////////////////////////////////////////////////////////////
-
-  /** 
-      Static initializer
-  */
-
-  static {
-    iGlobalSearchPath=System.getenv("IM4JAVA_TOOLPATH");
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-  */
-
-  @SuppressWarnings("deprecation")
-  protected ProcessStarter() {
-    iProcessListener = new LinkedList<ProcessListener>();
-    iProcessEventListener = new LinkedList<ProcessEventListener>();
-    iPID = iPIDCounter.getAndAdd(1);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Set the InputProvider for the ProcessStarter (if used as a pipe).
-  */
-
-  public void setInputProvider(InputProvider pInputProvider) {
-    iInputProvider = pInputProvider;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Set the OutputConsumer for the ProcessStarter (if used as a pipe).
-  */
-
-  public void setOutputConsumer(OutputConsumer pOutputConsumer) {
-    iOutputConsumer = pOutputConsumer;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Set the ErrorConsumer for the stderr of the ProcessStarter.
-  */
-
-  public void setErrorConsumer(ErrorConsumer pErrorConsumer) {
-    iErrorConsumer = pErrorConsumer;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add a ProcessEventListener to this ProcessStarter.
-
-     @param pListener the ProcessEventListener to add
-
-   */
-
-  public void addProcessEventListener(ProcessEventListener pListener) {
-    iProcessEventListener.add(pListener);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Remove a ProcessEventListener from this ProcessStarter.
-
-     @param pListener the ProcessEventListener to remove
-
-   */
-
-  public void removeProcessEventListener(ProcessEventListener pListener) {
-    iProcessEventListener.remove(pListener);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Add a ProcessListener to this ProcessStarter.
-
-     @param pProcessListener the ProcessListener to add
-
-     @deprecated use {@link #addProcessEventListener} instead
-   */
-  public void addProcessListener(ProcessListener pProcessListener) {
-    iProcessListener.add(pProcessListener);
-  }
-
-  /////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Pipe input to the command. This is done asynchronously.
-  */
-
-  private void processInput(OutputStream pOutputStream) throws IOException {
-	  final BufferedOutputStream bos = 
-		  new BufferedOutputStream(pOutputStream,BUFFER_SIZE);
-    (new Thread() {
-	public void run() {
-	  try {
-	    iInputProvider.provideInput(bos);
-	  } catch (IOException iex) {
-	    // we do nothing, since we are in an asynchronous thread anyway
-	  }
-	}
-      }).run();
-    bos.close();
-    if (pOutputStream != null) {
-      pOutputStream.close();
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Let the OutputConsumer process the output of the command.
-  */
-
-  private void processOutput(InputStream pInputStream, 
-		  OutputConsumer pConsumer) throws IOException{
-    BufferedInputStream bis = new BufferedInputStream(pInputStream,BUFFER_SIZE);
-    pConsumer.consumeOutput(bis);
-    bis.close();
-    if (pInputStream != null) {
-      pInputStream.close();
-    }
-  }
-  
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Let the ErrorConsumer process the stderr-stream.
-  */
-
-  private void processError(InputStream pInputStream, 
-		  ErrorConsumer pConsumer) throws IOException{
-    BufferedInputStream bis = new BufferedInputStream(pInputStream,BUFFER_SIZE);
-    pConsumer.consumeError(bis);
-    bis.close();
-    if (pInputStream != null) {
-      pInputStream.close();
-    }
-  }
- 
- //////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Execute the command.
-
-     @param pArgs         arguments for ProcessBuilder
-   */ 
-  
-  protected int run(LinkedList<String> pArgs) 
-                          throws IOException, InterruptedException, Exception {
-
-    // create and execute process (synchronous mode)
-    if (! iAsyncMode) {
-      Process pr = startProcess(pArgs);
-      int rc = waitForProcess(pr);
-      finished(rc);
-      return rc;
-    } else {
-      ProcessTask pt = getProcessTask(pArgs);
-      (new Thread(pt)).start();
-      return 0;
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return a ProcessTask for future execution.
-
-     @param pArgs         arguments for ProcessBuilder
-   */ 
-  
-  protected ProcessTask getProcessTask(LinkedList<String> pArgs)  {
-    // prepare ProcessEvent and call processInitiated
-    final ProcessEvent pe = new ProcessEvent(iPID,this);
-    pe.setReturnCode(-1);
-    for (ProcessEventListener pel:iProcessEventListener) {
-      pel.processInitiated(pe);
-    }
-
-    // create ProcessTask for future execution
-    return new ProcessTask(this,pArgs,pe);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Run the process and notify all listeners.
-
-     @param pArgs         arguments for ProcessBuilder
-     @param pProcessEvent store state in this ProcessEvent
-  */
-
-  @SuppressWarnings("deprecation")
-  void runAndNotify(LinkedList<String> pArgs, ProcessEvent pProcessEvent) {
-    int rc;
-    try {
-      Process pr = startProcess(pArgs);
-      pProcessEvent.setProcess(pr);
-      for (ProcessEventListener pel:iProcessEventListener) {
-	pel.processStarted(pProcessEvent);
-      }
-      // TODO: remove in future version
-      for (ProcessListener pl:iProcessListener) {
-	pl.processStarted(pr);
-      }
-      rc = waitForProcess(pr);
-      pProcessEvent.setReturnCode(rc);
-      finished(rc);
-    } catch (Exception e) {
-      pProcessEvent.setException(e);
-      try {
-	finished(e);
-      } catch (Exception e2) {
-	pProcessEvent.setException(e2);
-      }
-    }
-    for (ProcessEventListener pel:iProcessEventListener) {
-      pel.processTerminated(pProcessEvent);
-    }
-    // TODO: remove in future version
-    for (ProcessListener pl:iProcessListener) {
-      pl.processTerminated(pProcessEvent);
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-  
-  /**
-       Execute the command.
-   */	
-  
-  private Process startProcess(LinkedList<String> pArgs) 
-                      throws IOException, InterruptedException {
-
-    // if a global or per object search path is set, resolve the
-    // the executable
-
-    if (iSearchPath != null) {
-      String cmd = pArgs.getFirst();
-      cmd = searchForCmd(cmd,iSearchPath);
-      pArgs.set(0,cmd);
-    } else if (iGlobalSearchPath != null) {
-      String cmd = pArgs.getFirst();
-      cmd = searchForCmd(cmd,iGlobalSearchPath);
-      pArgs.set(0,cmd);
-    }
-    ProcessBuilder builder = new ProcessBuilder(pArgs);
-    return builder.start();
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-  
-  /**
-       Perform process input/output and wait for process to terminate.
-   */	
-  
-  private int waitForProcess(final Process pProcess) 
-                      throws IOException, InterruptedException {
-
-    FutureTask<Object> outTask = null;
-    FutureTask<Object> errTask = null;
-    
-    if (iInputProvider != null) {
-      processInput(pProcess.getOutputStream());
-    }
-
-    // Process stdout and stderr of subprocess in parallel.
-    // This prevents deadlock under Windows, if there is a lot of
-    // stderr-output (e.g. from ghostscript called by convert)
-
-    if (iOutputConsumer != null) {
-      outTask = new FutureTask<Object>(new Callable<Object>() {
-        public Object call() throws IOException {
-          processOutput(pProcess.getInputStream(), iOutputConsumer);
-          return null;
-        }
-      });
-      new Thread(outTask).start();
-    }
-    if (iErrorConsumer != null) {
-      errTask = new FutureTask<Object>(new Callable<Object>() {
-        public Object call() throws IOException {
-          processError(pProcess.getErrorStream(), iErrorConsumer);
-          return null;
-        }
-      });
-      new Thread(errTask).start();
-    }
-    
-    // Wait and check IO exceptions (FutureTask.get() blocks).
-    try {
-      if (outTask != null) {
-        outTask.get();
-      }
-      if (errTask != null) {
-        errTask.get();
-      }
-    } catch (ExecutionException e) {
-      Throwable t = e.getCause();
-			
-      if (t instanceof IOException) {
-        throw (IOException) t;
-      } else if(t instanceof RuntimeException) {
-        throw (RuntimeException) t;
-      } else {
-        throw new IllegalStateException(e);
-      }
-    }
-    
-    pProcess.waitFor();
-    int rc=pProcess.exitValue();
-     
-    // just to be on the safe side
-    try {
-      pProcess.getInputStream().close();
-      pProcess.getOutputStream().close();
-      pProcess.getErrorStream().close();
-    } catch (Exception e) {
-    }
-    return rc;
-  }
-
-  /////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Set the async-execution mode.
-
-     @param pAsyncMode the iAsyncMode to set
-  */
-  public void setAsyncMode(boolean pAsyncMode) {
-    iAsyncMode = pAsyncMode;
-  }
-
-  ////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Query the async-execution mode.
-
-     @return the iAsyncMode
-  */
-  public boolean isAsyncMode() {
-    return iAsyncMode;
-  }
-
-  /////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Set the global (static) search path. You can override this search path
-     on a per object basis.
-
-     @param pGlobalSearchPath the global search path
-  */
-
-  public static void setGlobalSearchPath(String pGlobalSearchPath) {
-    iGlobalSearchPath = pGlobalSearchPath;
-  }
-
-  /////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Query the global (static) search path.
-  */
-
-  public static String getGlobalSearchPath() {
-    return iGlobalSearchPath;
-  }
-
-  /////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Set the per object search path. This overrides the global search path
-     (if set).
-
-     @param pSearchPath the search path
-  */
-
-  public void setSearchPath(String pSearchPath) {
-    iSearchPath = pSearchPath;
-  }
-
-  /////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Query the per object search path.
-  */
-
-  public String getSearchPath() {
-    return iSearchPath;
-  }
-
-  /////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Set the process-id counter of the class.
-
-     @param pPID the process-id
-  */
-
-  public static void setPIDCounter(int pPID) {
-    iPIDCounter.set(pPID);
-  }
-
-  /////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Set the process-id of this ProcessStarter.
-
-     @param pPID the process-id
-  */
-
-  public void setPID(int pPID) {
-    iPID = pPID;
-  }
-
-  /////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Query the process-id.
-  */
-
-  public int getPID() {
-    return iPID;
-  }
-
-  /////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Post-processing after the process has terminated. Subclasses might
-     override this method to do some specific post-processing.
-
-     @param pReturnCode  the return-code of the process
-  */
-    
-  protected void finished(int pReturnCode) throws Exception {
-  }
-
-  /////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Post-processing after the process has terminated with an 
-     exception. Subclasses might override this method to do some 
-     specific post-processing. This method is only called in
-     asynchronous execution mode (in synchronous mode, the exception
-     just propagates as usual to the caller).
-
-     <p>Note that if this method throws an exception in asynchronous
-       execution mode, the original exception is lost and not propagated
-       to any ProcessEventListeners. Therefore, you should take care to fill
-       in any exception and stack-trace information.
-     </p>
-
-     @param pException  the exception of the process
-  */
-    
-  protected void finished(Exception pException) throws Exception {
-  }
-
-  /////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Query the per object search path.
-
-     @param pCmd  the  command to search for
-     @param pPath the  search path
-  */
-
-  public String searchForCmd(String pCmd, String pPath)
-                                   throws IOException, FileNotFoundException {
-    // check is pCmd is absolute
-    if ((new File(pCmd)).isAbsolute()) {
-      return pCmd;
-    }
-
-    // special processing on windows-systems.
-    // File.pathSeparator is hopefully more robust than 
-    // System.getProperty("os.name") ?!
-    boolean isWindows=File.pathSeparator.equals(";");
-
-    String dirs[] = pPath.split(File.pathSeparator);
-    for (int i=0; i<dirs.length; ++i) {
-      if (isWindows) {
-	// try thre typical extensions
-	File cmd = new File(dirs[i],pCmd+".exe");
-	if (cmd.exists()) {
-	  return cmd.getCanonicalPath();
-	} 
-        cmd = new File(dirs[i],pCmd+".cmd");
-	if (cmd.exists()) {
-	  return cmd.getCanonicalPath();
-	} 
-	cmd = new File(dirs[i],pCmd+".bat");
-	if (cmd.exists()) {
-	  return cmd.getCanonicalPath();
-	} 
-      } else {
-	File cmd = new File(dirs[i],pCmd);
-	if (cmd.exists()) {
-	  return cmd.getCanonicalPath();
-	}
-      }
-    }
-    throw new FileNotFoundException(pCmd);
-  }
-}

+ 0 - 106
TWPUtil/libdir/JMagix/src/org/im4java/process/ProcessTask.java

@@ -1,106 +0,0 @@
-/**************************************************************************
-/* This class represents a runnable process.
-/*
-/* Copyright (c) 2010 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-import java.util.*;
-import java.util.concurrent.*;
-
-/**
-   This class represents a runnable process. It extends FutureTask so
-   it can be used to query the result of an asynchronously run
-   process.
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 1.1.0
- */
-
-public class ProcessTask extends FutureTask<ProcessEvent> {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The {@link ProcessStarter} which created this ProcessTask.
-  */
-
-  private ProcessStarter iProcessStarter;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The {@link ProcessEvent} of this ProcessTask.
-  */
-
-  private ProcessEvent iProcessEvent ;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The constructor.
-
-     @param pProcessStarter The creating ProcessStarter
-     @param pArgs           Arguments for the process
-     @param pProcessEvent   The ProcessEvent for this ProcessTask
-  */
-
-  public ProcessTask(final ProcessStarter pProcessStarter, 
-                     final LinkedList<String> pArgs,
-                     final ProcessEvent pProcessEvent) {
-    super(new Runnable() {
-	public void run() {
-	  pProcessStarter.runAndNotify(pArgs,pProcessEvent);
-	}
-      },pProcessEvent);
-    iProcessStarter = pProcessStarter;
-    iProcessEvent   = pProcessEvent;
-  }
-
-  ////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     Query the ProcessStarter field of this ProcessTask.
-
-     @return the ProcessStarter which created this ProcessTask
-  */
-  public ProcessStarter getProcessStarter() {
-    return iProcessStarter;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     {@inheritDoc}
-  */
-
-  public boolean cancel(boolean mayInterruptIfRunning) {
-    if (isDone()) {
-      return super.cancel(mayInterruptIfRunning);
-    }
-    Process p = iProcessEvent.getProcess();
-    if (p != null) {
-      p.destroy();
-    }
-    return super.cancel(mayInterruptIfRunning);
-  }
-
-}

+ 0 - 70
TWPUtil/libdir/JMagix/src/org/im4java/process/StandardStream.java

@@ -1,70 +0,0 @@
-/**************************************************************************
-/* This class is a container for objects logically wrapping stdin, stdout
-/* and stderr.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.process;
-
-/**
-   This class is a container for objects logically wrapping stdin, stdout
-   and stderr.
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 0.95
-*/
-
-public class StandardStream {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     InputProvider wrapping System.in.
-  */
-
-  public static final InputProvider STDIN = new Pipe(System.in,null);
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     OutputConsumer wrapping System.out.
-  */
-
-  public static final OutputConsumer STDOUT = new Pipe(null,System.out);
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     ErrorConsumer wrapping System.err.
-  */
-
-  public static final ErrorConsumer STDERR = new Pipe(null,System.err);
-
- //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Private Constructor. Since this is just a container for predefined
-     objects, there is no need to instantiate this class.
-  */
-
-  private StandardStream() {
-  }
-}

+ 0 - 22
TWPUtil/libdir/JMagix/src/org/im4java/process/package.html

@@ -1,22 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<!--
-
-  Copyright (c) 2009-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
-  $Revision: 1.1 $
-  $Author: bablokb $
-
--->
-</head>
-<body bgcolor="white">
-
-Contains mostly low-level classes for managing processes.
-
-<!-- Put @see and @since tags down here. -->
-
-@since 0.95
-
-</body>
-</html>

+ 0 - 340
TWPUtil/libdir/JMagix/src/org/im4java/script/AbstractScriptGenerator.java

@@ -1,340 +0,0 @@
-/**************************************************************************
-/* An abstract implementation of a ScriptGenerator.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.script;
-
-import java.util.*;
-import java.io.*;
-import org.im4java.core.*;
-
-/**
-   This class is an abstract implementation of a ScriptGenerator.
-
-   @version $Revision: 1.7 $
-   @author  $Author: bablokb $
- 
-   @since 1.0.0
- */
-
-abstract public class AbstractScriptGenerator implements ScriptGenerator {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The maximum linesize.
-  */
-
-  protected static final int LINE_SIZE=78;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The EOL escape character.
-  */
-
-  protected char ESC_EOL;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The escape character for special characters.
-  */
-
-  protected char ESC_SPECIAL;
-
-  //////////////////////////////////////////////////////////////////////////////
-  
-  /**
-     The current indentation-level.
-  */
-
-  protected String iIndent="";
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The current line-buffer.
-  */
-
-  protected StringBuilder iLineBuffer = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The current script-argument-index.
-  */
-
-  protected int iArgIndex=0;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The Properties-object of this ScriptGenerator.
-  */
-
-  private Properties iProps = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The PrintWriter-object of this ScriptGenerator.
-  */
-
-  private PrintWriter iWriter = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The ImageCommand-object of this ScriptGenerator.
-  */
-
-  private ImageCommand iCmd = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The Operation-object of this ScriptGenerator.
-  */
-
-  private Operation iOp = null;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Generate the script.
-  */
-
-  public void createScript() {
-    iIndent="";
-    iArgIndex=0;
-    writeHeader();
-    writeCommand();
-    writeOperation();
-    getWriter().flush();
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Write the header of the script. This method must be implemented by
-     subclasses.
-  */
-
-  protected void writeHeader() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the search-path in a plattform-dependent way.
-  */
-
-  protected String getSearchPath() {
-    String globalPath=getProperties().getProperty("im4java.globalSearchPath");
-    String localPath=getProperties().getProperty("im4java.localSearchPath");
-    
-    String path=null;
-    if (localPath.length() > 0 && globalPath.length() > 0) {
-      path=localPath+File.pathSeparator+globalPath;
-    } else if (localPath.length() > 0 && globalPath.length() == 0) {
-      path=localPath;
-    } else if (globalPath.length() > 0) {
-      path=globalPath;
-    }
-
-    return path;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Write the ImageCommand to the script-file. This is a default implementation
-     which should do for most cases.
-  */
-
-  protected void writeCommand() {
-    PrintWriter writer=getWriter();
-    writer.print(iProps.getProperty("im4java.cmd"));
-    writer.println(ESC_EOL);
-    iIndent = iIndent+"  ";
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the token as a script-argument. Normally, the argument token is
-     only part of the script-argument if it contains a [wxh+x+y]-read-spec.
-
-     <p>This method must be implemented by subclasses.</p>
-  */
-
-  protected String getScriptArg(String pToken) {
-    return null;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Quote the given string. This method must be implemented by subclasses.
-  */
-
-  protected String quote(String pString) {
-    return null;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Write the Operation to the script-file.
-  */
-
-  protected void writeOperation() {
-    LinkedList<String> cmdArgs= getOperation().getCmdArgs();
-
-    // initialize buffers
-    iLineBuffer = new StringBuilder();
-    StringBuilder opBuffer = new StringBuilder();
-
-    for (String token:cmdArgs) {
-      char firstChar=token.charAt(0);
-      if (firstChar=='-' || firstChar=='+') {
-	// a new command-option. Flush line if necessary and reset buffer.
-	flushBuffer(opBuffer);
-	opBuffer = new StringBuilder(token);
-      } else {
-	// arguments for an option. Just append to the buffer.
-	if (opBuffer.length() > 0) {
-	  opBuffer.append(" ");
-	}
-
-        // handle dynamic images as script-arguments
-	if (token.startsWith(Operation.IMG_PLACEHOLDER)) {
-	  opBuffer.append(getScriptArg(token));
-
-	  // special case sub-operation: start new line and indent
-	} else if (firstChar=='(') {
-	  flushBuffer(opBuffer);
-	  flushLine(false);
-	  opBuffer = new StringBuilder("\"(\"");
-	  flushBuffer(opBuffer);
-	  flushLine(false);
-	  opBuffer = new StringBuilder();
-	  iIndent = iIndent+"  ";
-
-	  // end of su-operation: start new line and reduce indentation
-	} else if (firstChar==')') {
-	  flushBuffer(opBuffer);
-	  flushLine(false);
-	  iIndent = iIndent.substring(0,iIndent.length()-2);
-	  opBuffer = new StringBuilder("\")\"");
-	  flushBuffer(opBuffer);
-	  flushLine(false);
-	  opBuffer = new StringBuilder();
-
-	  // standard case: add token to buffer
-	} else {
-	  opBuffer.append(quote(token));
-	}
-      }
-    }
-    flushBuffer(opBuffer);
-    flushLine(true);
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Flush the given buffer to the line-buffer.
-  */
-
-  private void flushBuffer(StringBuilder pBuf) {
-    if (iIndent.length()+iLineBuffer.length()+pBuf.length()+2 > LINE_SIZE) {
-      // dump the line and re-init the line-buffer
-      flushLine(false);
-      iLineBuffer.append(pBuf);
-    } else {
-      // the given buffer still fits, so append to the line
-      iLineBuffer.append(pBuf);
-      iLineBuffer.append(" ");
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Flush the line to the writer.
-  */
-
-  private void flushLine(boolean last) {
-    PrintWriter writer=getWriter();
-    writer.print(iIndent);
-    writer.print(iLineBuffer.toString());
-    if (last) {
-      writer.println("\n");
-    } else {
-      writer.println(ESC_EOL);
-      iLineBuffer = new StringBuilder();
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Intialize the generator.
-  */
-
-  public void init(PrintWriter pWriter, Operation pOp, Properties pProps) {
-    iWriter=pWriter;
-    iOp=pOp;
-    iProps=pProps;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the PrintWriter-object.
-  */
-
-  public PrintWriter getWriter() {
-    return iWriter;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the Operation-object.
-  */
-
-  public Operation getOperation() {
-    return iOp;
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the Properties-object.
-  */
-
-  public Properties getProperties() {
-    return iProps;
-  }
-
-}

+ 0 - 109
TWPUtil/libdir/JMagix/src/org/im4java/script/BashScriptGenerator.java

@@ -1,109 +0,0 @@
-/**************************************************************************
-/* This class implements a BashScriptGenerator.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.script;
-
-import java.util.*;
-import java.io.*;
-import org.im4java.core.*;
-
-/**
-   This class implements a BashScriptGenerator.
-
-   @version $Revision: 1.7 $
-   @author  $Author: bablokb $
- 
-   @since 1.0.0
- */
-
-public class BashScriptGenerator extends AbstractScriptGenerator {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The default constructor.
-  */
-
-  public BashScriptGenerator() {
-    ESC_EOL = '\\';
-    ESC_SPECIAL = '\\';
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Write the header of the script.
-  */
-
-  protected void writeHeader() {
-    getWriter().println(
-       "#!/bin/bash\n"+
-       "#-------------------------------------------------------\n"+
-       "# Bash-script autogenerated by im4java\n"+
-       "# at " + Calendar.getInstance().getTime() + "\n"+
-       "#-------------------------------------------------------\n"
-    );
-
-    // add search-path
-    String path=getSearchPath();
-    if (path != null) {
-      getWriter().println(
-       "export PATH="+path+File.pathSeparator+"$PATH\n"
-      );
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the token as a script-argument. Normally, the argument token is
-     only part of the script-argument if it contains a [wxh+x+y]-read-spec.
-  */
-
-  protected String getScriptArg(String pToken) {
-    iArgIndex++;
-    if (pToken.length()>Operation.IMG_PLACEHOLDER.length()) {
-      return "\"${"+iArgIndex+"}\"" + 
-	                  pToken.substring(Operation.IMG_PLACEHOLDER.length());
-    } else {
-      return "\"${"+iArgIndex+"}\"";
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Quote the given string.
-
-     <p>
-     Note that this implementation is not 100% correct, since it does not
-     handle the case with pre-escaped strings correctly.
-     </p>
-  */
-
-  protected String quote(String pString) {
-    if (pString.indexOf('"')==-1) {
-      return '"'+pString+'"';
-    } else {
-      return '"'+pString.replace("\"",ESC_SPECIAL+"\"")+'"';
-    }
-  }
-}

+ 0 - 104
TWPUtil/libdir/JMagix/src/org/im4java/script/CmdScriptGenerator.java

@@ -1,104 +0,0 @@
-/**************************************************************************
-/* This class implements a CmdScriptGenerator.
-/*
-/* Copyright (c) 2010 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.script;
-
-import java.util.*;
-import java.io.*;
-import org.im4java.core.*;
-
-/**
-   This class implements a CmdScriptGenerator.
-
-   @version $Revision: 1.3 $
-   @author  $Author: bablokb $
- 
-   @since 1.0.0
- */
-
-public class CmdScriptGenerator extends AbstractScriptGenerator {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The default constructor.
-  */
-
-  public CmdScriptGenerator() {
-    ESC_EOL = '^';
-    ESC_SPECIAL = '^';
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Write the header of the script.
-  */
-
-  protected void writeHeader() {
-    getWriter().println(
-       "@echo off\n"+
-       "REM -------------------------------------------------------\n"+
-       "REM  Cmd-script autogenerated by im4java\n"+
-       "REM  at " + Calendar.getInstance().getTime() + "\n"+
-       "REM -------------------------------------------------------\n"
-    );
-
-    // add search-path
-    String path=getSearchPath();
-    if (path != null) {
-      getWriter().println(
-       "set PATH="+path+File.pathSeparator+"%PATH%\n"
-      );
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the token as a script-argument. Normally, the argument token is
-     only part of the script-argument if it contains a [wxh+x+y]-read-spec.
-  */
-
-  protected String getScriptArg(String pToken) {
-    iArgIndex++;
-    if (pToken.length()>Operation.IMG_PLACEHOLDER.length()) {
-      return "\"%~"+iArgIndex+"\"" + 
-	                  pToken.substring(Operation.IMG_PLACEHOLDER.length());
-    } else {
-      return "\"%~"+iArgIndex+"\"";
-    }
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Quote the given string.
-  */
-
-  protected String quote(String pString) {
-    if (pString.indexOf('"')==-1) {
-      return '"'+pString+'"';
-    } else {
-      return '"'+pString.replace("\"","'")+'"';
-    }
-  }
-}

+ 0 - 55
TWPUtil/libdir/JMagix/src/org/im4java/script/ScriptGenerator.java

@@ -1,55 +0,0 @@
-/**************************************************************************
-/* The interface for a ScriptGenerator.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.script;
-
-import java.util.*;
-import java.io.*;
-import org.im4java.core.*;
-
-/**
-   This interface defines the methods for a ScriptGenerator.
-
-   @version $Revision: 1.5 $
-   @author  $Author: bablokb $
- 
-   @since 1.0.0
- */
-
-public interface ScriptGenerator {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Initialize the ScriptGenerator.
-  */
-
-  public void init(PrintWriter pWriter, Operation pOp, Properties pProp);
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Generate the script. Note that this method should not close the
-     PrintWriter.
-  */
-
-  public void createScript();
-}

+ 0 - 22
TWPUtil/libdir/JMagix/src/org/im4java/script/package.html

@@ -1,22 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
-<head>
-<!--
-
-  Copyright (c) 2009-2010 by Bernhard Bablok (bablokb@users.sourceforge.net)
-
-  $Revision: 1.1 $
-  $Author: bablokb $
-
--->
-</head>
-<body bgcolor="white">
-
-Contains classes for script-generation.
-
-<!-- Put @see and @since tags down here. -->
-
-@since 1.0.0
-
-</body>
-</html>

+ 0 - 85
TWPUtil/libdir/JMagix/src/org/im4java/test/AbstractTestCase.java

@@ -1,85 +0,0 @@
-/**************************************************************************
-/* The abstract base class of all test-cases.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.test;
-
-import java.util.*;
-import java.io.*;
-import org.im4java.core.*;
-
-/**
-   This class implements an abstract base class for all test-cases.
-
-   @version $Revision: 1.4 $
-   @author  $Author: bablokb $
- 
-   @since 1.0.0
- */
-
-public abstract class AbstractTestCase implements TestCase {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The directory with test-images (platform-independent).
-  */
-
-  protected static final String iImageDir = "images"+File.separatorChar;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     A temporary file for display of results.
-  */
-
-  protected static final String iTmpImage = iImageDir+"tmpImage.miff";
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Program arguments.
-  */
-
-  protected String[] iArgs;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Run test and catch execptions.
-
-     @param pArgs Additional arguments for the test.
-  */
-
-  public void runTest(String[] pArgs) {
-    iArgs=pArgs;
-    try {
-      run();
-    } catch (CommandException ce) {
-      ce.printStackTrace();
-      ArrayList<String> cmdError = ce.getErrorText();
-      for (String line:cmdError) {
-        System.err.println(line);
-      }
-    } catch (Exception e) {
-      e.printStackTrace();
-    }
-  }
-}

+ 0 - 125
TWPUtil/libdir/JMagix/src/org/im4java/test/Test.java

@@ -1,125 +0,0 @@
-/**************************************************************************
-/* This class implements various tests of the im4java-package.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.test;
-
-import java.util.*;
-import java.io.*;
-import java.awt.image.*;
-import javax.imageio.ImageIO;
-
-import org.im4java.core.*;
-import org.im4java.process.Pipe;
-import org.im4java.process.ArrayListOutputConsumer;
-import org.im4java.process.ProcessEvent;
-import org.im4java.process.ProcessStarter;
-import org.im4java.utils.*;
-
-
-/**
-   This class implements various tests of the im4java-package.
-
-   @version $Revision: 1.42 $
-   @author  $Author: bablokb $
- 
-   @since 1.0.0
- */
-
-public class  Test {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     The directory with test-images (platform-independent).
-  */
-
-  private static final String iImageDir = "images"+File.separatorChar;
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Constructor.
-   */
-
-  public  Test() {
-  }
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Main-method. You can either pass the number(s) of the test or the
-     string "all" for all tests.
-   */
-
-  public static void main(String[] args) {
-    if (args.length == 0 || args[0].equals("help")) {
-      System.err.
-      println("usage: java org.im4java.test.Test all | help | nr [...]\n\n" +
-          "Available tests:\n"
-      );
-      try {
-	int i=1;
-	StringWriter sw = new StringWriter();
-	PrintWriter pw = new PrintWriter(sw);
-	while (true) {
-	  String tcName="org.im4java.test.TestCase"+i;
-	  Class tcClass=Class.forName(tcName);
-	  TestCase tc = (TestCase) tcClass.newInstance();
-	  System.err.printf("%2d: %s\n",i, tc.getDescription());
-	  i++;
-	}
-      } catch (Exception e) {
-      }
-      System.err.println();
-      System.exit(1);
-    }
-
-    try {
-      if (args[0].equals("all")) {
-	int i=1;
-	while (true) {
-	  String tcName="org.im4java.test.TestCase"+i;
-	  Class tcClass=Class.forName(tcName);
-	  TestCase tc = (TestCase) tcClass.newInstance();
-	  tc.run();
-	  System.err.println("\n--------------------------\n");
-	  i++;
-	}
-      } else {
-	for(String arg:args) {
-	  String tcName="org.im4java.test.TestCase"+arg;
-	  Class tcClass=Class.forName(tcName);
-	  TestCase tc = (TestCase) tcClass.newInstance();
-	  tc.run();
-	}
-      }
-    } catch (ClassNotFoundException cfe) {
-    } catch (CommandException ce) {
-      ce.printStackTrace();
-      ArrayList<String> cmdError = ce.getErrorText();
-      for (String line:cmdError) {
-        System.err.println(line);
-      }
-    } catch (Exception e) {
-      e.printStackTrace();
-    }
-  }
-}

+ 0 - 50
TWPUtil/libdir/JMagix/src/org/im4java/test/TestCase.java

@@ -1,50 +0,0 @@
-/**************************************************************************
-/* The interface for a single test-case.
-/*
-/* Copyright (c) 2009 by Bernhard Bablok (mail@bablokb.de)
-/*
-/* This program is free software; you can redistribute it and/or modify
-/* it under the terms of the GNU Library General Public License as published
-/* by  the Free Software Foundation; either version 2 of the License or
-/* (at your option) any later version.
-/*
-/* This program is distributed in the hope that it will be useful, but
-/* WITHOUT ANY WARRANTY; without even the implied warranty of
-/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-/* GNU Library General Public License for more details.
-/*
-/* You should have received a copy of the GNU Library General Public License
-/* along with this program; see the file COPYING.LIB.  If not, write to
-/* the Free Software Foundation Inc., 59 Temple Place - Suite 330,
-/* Boston, MA  02111-1307 USA
-/**************************************************************************/
-
-package org.im4java.test;
-
-/**
-   This interface defines the methods for a single test-case.
-
-   @version $Revision: 1.2 $
-   @author  $Author: bablokb $
- 
-   @since 1.0.0
- */
-
-public interface TestCase {
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Return the description of the test.
-  */
-
-  public String getDescription();
-
-  //////////////////////////////////////////////////////////////////////////////
-
-  /**
-     Run the test.
-  */
-
-  public void run() throws Exception;
-}

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.