LVHues

|
| Note how
the applet applies the hue rotation only in the image
areas corresponding to white areas in the mask (here
grass and trees). Where the mask is black, the image will
remain unmodified. Furthermore, gray levels will give a
graduated effect. This is useful to achieve a good
result. |
This is
the <APPLET> tag:
<applet
code="LVHues.class" width="154"
height="192">
<param name="Period"
value="15000">
<param name="SleepTime"
value="0">
<param name="BgColor"
value="FFFFFF">
<param name="FgColor"
value="003366">
<param name="Image"
value="image.gif">
<param name="Mask"
value="mask.jpg">
<param name="MoreSpeed"
value="2">
<param name="Message"
value="Popeye">
<param name="Font"
value="Helvetica, 3, 16">
<param name="Link"
value="http://www.lvplanet.com/">
<param name="Target"
value="_blank">
</applet>
- Period is
the number of milliseconds in which the applet
makes a complete hue rotation (default 15000).
- SleepTime
is a pause between frames in milliseconds
(default 0). You can use it to obtain particular
effects.
- BgColor is
the background color (default white).
- FgColor is
the foreground color, used to display the message
(default black).
- Image is
the name of the image file (required).
- Mask is
the name of the mask file (optional). If you use
a mask, make sure that the dimension of the mask
is identical to the image one.
- MoreSpeed
allows you to display a JPEG image faster
(default is 0 for GIFs and 3 for JPEGs). Its
value is an integer between -7 and 7 included.
This will reduce the number of colors in the
image allowing the applet to make a minor number
of operations. Negative values darken the image,
positive lighten. Numbers greater than 3 (or
smaller than -3) usually decrease image quality
but can give interesting results.
- Message is
the string displayed while loading the image
(default "Loading ..."). To avoid
message, use "" or set FgColor
equal to BgColor.
- Font is
the font used to display the message (default
Helvetica plain 12pt). Remember that the only
fonts always available in Java are: Helvetica,
TimesRoman, Courier and Dialog. The first
numerical value is 0 for plain, 1 for bold,
2 for Italic or 3 for Bold
Italic. The second number is the
font size.
- Link is an
URL to connect to when the user clicks on the
applet (optional).
- Target is
the target frame for Link (default _self).
|
Back to the LVHues applet page
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.
|