Touchup
Place Touchup.jar in the same directory as your HTML page, and follow instructions on the Parameters page.
Download the Touchup file
into your page's directory, and place the example code below onto your page.
Replace "Vancouver.jpg" with the name of your image.
Make your desired changes, click on Touchup's HTML button, and replace the code below with the new code.
| |
<APPLET MAYSCRIPT STYLE="LEFT: 0px; WIDTH: 600px; TOP: 0px; HEIGHT: 400px" NAME=Touchup CODE=Touchup.class ARCHIVE="Touchup.jar" WIDTH=600 HEIGHT=400>
<PARAM NAME="image" VALUE="Vancouver.jpg">
</APPLET>
|
All of the following parameters can be set within the <APPLET> HTML definition,
this example increases the contrast of the image:
| |
<APPLET MAYSCRIPT STYLE="LEFT: 0px; WIDTH: 600px; TOP: 0px; HEIGHT: 400px" NAME=Touchup CODE=Touchup.class ARCHIVE="Touchup.jar" WIDTH=600 HEIGHT=400>
<PARAM NAME="image" VALUE="Vancouver.jpg">
<PARAM NAME="contrast" VALUE="1.25">
</APPLET>
|
| Name | | Value | | Default |
| image | | URL of image to be displayed | | n/a |
| lowRes | | Low resolution version of image (optional) | | n/a |
| secondarylanguage | | Default to secondary language (touchuplanguage2.txt) | | off |
| link | | Hyperlink | | n/a |
| target | | Hyperlink target window | | <current window> |
| title | | Title or copyright | | n/a |
| justify | | Title justify: left, center, right, or bottom (-right) | | right |
| info | | Picture Information URL or text | | n/a |
| pageColor | | Image background color, format rrggbb | | FFFFFF (white) |
| background | | Background text color, format rrggbb | | 000000 (black) |
| foreground | | Foreground text color, format rrggbb | | FFFFFF (white) |
| alphacolor | | Transparency color, format rrggbb | | 000000 (black) |
| alpha | | Transparency 0.00 (opaque, image only) to 1 (alpha color only) | | 0 (opaque) |
| gamma | | Gamma: 0.00 to 100 (adjust midtones) | | 1.0 |
| brightness | | -255 to 255 (adjust all colors) | | 0 |
| contrast | | Contrast: 0.00 to 100 | | 1.0 |
| saturation | | Saturation: 0.00 to 100 | | 1.0 |
| zoom | | Zoom: 0.00 to 100 | | 1.0 |
| color | | Color: on or off | | on |
| negative | | Negative: on or off | | off |
| red | | Gamma: 0.00 to 100 | | 1.0 |
| green | | Gamma: 0.00 to 100 | | 1.0 |
| blue | | Gamma: 0.00 to 100 | | 1.0 |
| redChannel | | Color scale: -1 (invert), 0 (void), 1 (default) | | 1 |
| greenChannel | | Color scale: -1, 0, 1 | | 1 |
| blueChannel | | Color scale: -1, 0, 1 | | 1 |
| posterization | | Number of color steps: 0 to 128 (non-zero disables user change) | | 0 (off) |
| mode | | Mode: view, basic (zoom and info only), edit | | edit |
| entryScript | | Javascript executed when mouse enters image | | n/a |
| exitScript | | Javascript executed when mouse exits image | | n/a |
| clickTitle | | Message displayed in status bar | | n/a |
| clickScript | | Javascript executed on mouse click | | n/a |
| btnTitle | | Title for user defined button | | n/a |
| btnScript | | Javascript executed when button clicked | | n/a |
| mirror | | Flip the image horizontally: on or off | | off |
| flip | | Flip the image vertically: on or off | | off |
| rotate | | Degrees to rotate the image: 0, 90, 180, 270 | | 0 |
| descText | | Text description of the image | | blank |
| descBgColor | | Background color for the text description area | | gray |
| descFgColor | | Color for the text in the description area | | white |
| noiseLevel | | Strength of the pixel noise: -255..255 | | -30 |
| noiseFrequency | | Spacing of pixel noise (non-zero disables user change) | |
0 (none) |
| horizontal | | Move image horizontally: -left, right (pixels) | | 0 |
| vertical | | Move image vertically: -up, +down (pixels) | | 0 |
| distScale | | Multiplier for pixel distance (for keyhole zoom) | | 1 |
| distUnits | | Distance measurement units (eg: Miles) | | pixels |
| record | | URL for recording Touchup settings (eg: http://mysite.com/save?) | | pixels |
| regName | | Licensee name (when registered) | | n/a |
| regURL | | Licensed site URL (when registered) | | n/a |
| regCode | | Unique code for Name and URL (Shareware if not present) | | n/a |
Back to Touchup
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.