![]() |
XIOview V1.5 Image Zoom Applet - TRIAL VERSION - Example ImplementationsPlease consider to license XIOview ». For more information about this applet visit www.XIO.biz ». |
Code for Demonstration 5Gamma / inversion filtering and examples for instant multi-parameter-modification.
<applet code="biz.xio.XIOview" archive="CODE/XIOview.jar" codebase="../" name="applet1" width="220px" height="240px" alt="XIOview 1.5 Java Applet (requires a Java-enabled browser)">
<param name="cabbase" value="CODE/XIOview.cab">
<param name="zoom_range" value="50%-200%">
<!-- Text below is shown if Java is not currently supported or activated. --> </applet>
Additionally used applet-parameters:
<!-- more html code -->
<a class="control" href="JavaScript:document.applet1.setCfg('image_gamma=0.4 + zoom_gamma=0.4')">X</a>
<b>+</b>
<a class="control" href="JavaScript:document.applet1.setCfg('image_inverted=false + zoom_inverted=true')"><b>zoom</b></a>
</p>
The text-links shown here are used to implement the gamma-correction and inversion-filtering controls in demonstration #5.
Coding is quite analogous to example #3: After mouse-clicking on one of the links, the "setCfg(...)"-method
of the XIOview applet is called with the new parameter-assignments in brackets.
<!-- more html code --> <a class="control" href="JavaScript:document.applet1.setCfg('image = images/grafitti.jpg + zoom=50% + image_inverted=false + zoom_inverted=false + image_grayscale=true + zoom_area_width=125px + zoom_area_height=125px')"><b>»</b></a>
</p> <a class="control" href="JavaScript:document.applet1.setCfg('background_color=255,120,0 + image_rgb=100%,0%,0% + image_grayscale=false + image_gamma=0.3 + zoom_rgb=0%,200%,100%')"><b>»</b></a>
</p> <a class="control" href="JavaScript:document.applet1.setCfg('image=images/bridge.jpg + zoom=100% + zoom_range=100%-200% + image_inverted=false + zoom_inverted=true + image_grayscale=false + zoom_area_width=100px + zoom_area_height=60% + background_color=128,128,128 + image_rgb=100%,100%,100% + zoom_rgb=100%,100%,100% + image_gamma=1.0')"><b>»</b></a>
</p>
These three JavaScript-links illustrate the possibility to change any number / combination of parameters
at the same time with just one call of the "setCfg(...)" or "setConfiguration(...)"-method. |
Copyright © 2004-2005 by Martin Rieger, XIO® Software. XIO® is a registered trademark of
Martin Rieger. |