Touchup - Parameters
Example
Download the Touchup.jar 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 by 25%:
<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?) | blank | ||
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 |