home *** CD-ROM | disk | FTP | other *** search
/ .net 2000 August / NET74.ISO / pc / Software / JavaApplet / PC / data1.cab / Program_Files / Applet / lens / lens.txt < prev    next >
Encoding:
Text File  |  1999-07-08  |  5.4 KB  |  120 lines

  1.  
  2.           AnfyLens - Copyright (C) by Fabio Ciucci 1996-99
  3.  
  4.  
  5. This applet can simulate a lens moving over any GIF or JPG image.This applet
  6. is fully parameterized, so you can generate all kinds of lens effects.
  7.  
  8. *************************************************************************
  9.  
  10. NECESSARY FILES.
  11.  
  12. As well as an image to be animated and an optional overlay image, the
  13. following 3 ".class" files must be uploaded: 
  14.  
  15. AnLens.class
  16. Lware.class
  17. anfy.class
  18.  
  19. Plus, AnLens.jar for speedy loading on recent browsers.
  20.  
  21. ************************************************************************
  22.  
  23. EXAMPLE.
  24.  
  25. Insert the <applet> tag in your html document as follows to add this applet
  26. to your page (Comments after the ";" symbol are code descriptions and
  27. acceptable min/max values. They are not part of the applet language):
  28.  
  29.  
  30. <applet archive="AnLens.jar" code="AnLens.class" width="320" height="256">
  31. <param name="credits" value="Applet by Fabio Ciucci (www.anfyteam.com)">
  32. <param name="regcode" value="NO">          ; Registration code (if you have it)
  33. <param name="reglink" value="NO">          ; Optional URL link when the applet
  34.                                            is "clicked".
  35. <param name="regnewframe" value="YES">       ; Reglink opened in new frame?
  36. <param name="regframename" value="_blank">   ; Name of new frame for reglink
  37. <param name="statusmsg" value="Lens applet"> ; Statusbar message
  38. <param name="image" value="facet.jpg">       ; Image to load
  39. <param name="lenswidth" value="35">          ; Size of lens
  40. <param name="distdval" value="10">           ; Diagonal distortion (5 .. 20)
  41. <param name="distoxy" value="0">             ; XY distortion (-40 .. 40)
  42. <param name="zoomfactor" value="5">          ; Zoom factor (0 .. 30)
  43. <param name="interactive" value="YES">       ; Interaction ("ON" .. "OFF")
  44. <param name="distort" value="YES">           ; Distortion ("ON" .. "OFF")
  45. <param name="spdx" value="2">                ; X speed (0 .. 8)
  46. <param name="spdy" value="1">                ; Y speed (0 .. 8)
  47. <param name="overimg" value="NO">            ; Optional image over applet
  48. <param name="overimgX" value="0">            ; Over image X offset
  49. <param name="overimgY" value="0">            ; Over image Y offset
  50. <param name="memdelay" value="1000">         ; Memory deallocation delay
  51. <param name="priority" value="3">            ; Task priority (1..10)
  52. <param name="MinSYNC" value="10">            ; Min. milliseconds/frame for sync
  53. Sorry, your browser doesn't support Java.  ; Msg in no java browsers
  54. </applet>
  55.  
  56. *************************************************************************
  57.  
  58. INSTRUCTIONS.
  59.  
  60.  
  61. The following instructions describe how to change parameters:
  62.  
  63. Attempting to change the credits parameter will disable the applet.
  64.  
  65. To activate the reg parameters read the shareware registration notes.
  66. In the "regcode" parameter, place the registration code you purchased
  67. from the author. If the code is correct and the applet is run from
  68. the registered domain name, you can use "link" parameters to link to a URL
  69. when the applet is "clicked".
  70.  
  71. If you set "regnewframe" to "YES", you can specify a specific frame location
  72. for the reglink:
  73.  
  74. "_blank"  : To load the link in a new blank unnamed browser window.
  75. "_self"   : To load the link into the same window the applet occupies.
  76. "_parent" : To load the link into the immediate FRAMESET parent.
  77. "_top"    : To load the link into the top body of the window.
  78.  
  79. You can also set a custom frame name, such as "myframe1".
  80.  
  81. With the "overimg" parameter you can specify the name of an image that will
  82. be painted over the applet. The best options are transparent GIF images.
  83. NOTE: Animated GIF images are supported, but will be displayed as an animated
  84. sequence only on latest browsers (Netscape 4 and Explorer 4 or newer).
  85. With "overimgX" and "overimgY" you can center the image over the applet area.
  86.  
  87. You can load any GIF or JPG image, but remember to write the exact image size in
  88. the width and height tags.
  89.  
  90. You can choose the width of the lens with the parameter "lenswidth".
  91. Greater lens size  means slower movements.
  92.  
  93. If you select "NO" to "distort" parameter, you will disable distortions, and
  94. the zoom will be plain (this is useful especially for applications where the
  95. image is zoomed to view it better).
  96.  
  97. The "distdval" parameter determines the diagonal distortion.
  98. To have a perfect sphere, use the value 10. Smaller or higher
  99. values (the range is 5 .. 20) will change the lens distortion.
  100.  
  101. The "distoxy" value (-40 .. 40) will distort X for negative values and Y
  102. for positive values. Choose 0 for normal spheric distortion.
  103.  
  104. As you know, lens effects are useful for zooming images. With "zoomfactor"
  105. you will change the lens zooming ability. A value of 0 = no zooming,
  106. only distortion. Higher values = higher zooming.
  107.  
  108. The interactive placement feature of the lens is the best way to test this
  109. applet, so it should be enabled to give optimum interactive ability using a
  110. mouse. Usually the lens is moved around the image automatically, but if you
  111. set to "YES" the "interactive" parameter, the user can move the lens with 
  112. the mouse when it is over the applet area. The automatic movements will 
  113. restart after 2 seconds of no user activity. If set to "NO", the user will
  114.  not be able to use the interactive feature.
  115.  
  116. You can control the speed of automatic movement with the "spdx" and "spdy"
  117. parameters.
  118.  
  119.  
  120.