Professional Documents
Culture Documents
Yout
Yout
With
Filters
FILTERS:
Filters
Types of Filters:
Flip
Filter
Mask filter
Miscellaneous image
filter(invert,gray & xray)
Shadow filter
Alpha filter
Glow filter
Blur Filter
Wave Filter
Chroma Filter
Flip Filter:
It
Example of Flip
Filter:
<html>
<head>
<title>The Flip Filter</title>
<style type="text/css">
body
{
background-color: #CCFFCC}
table {font-size: 3em;font-family:arial,sans-serif;
background-color:#FFCCCC;border-style:ridge;
border-collapse:collapse
}
td
{
border-style:groove;
}
</style>
</head>
<body>
<table>
<tr>
<td style="filter:fliph">Text</td>
<td>Text</td>
</tr>
<tr>
<td style="filter:flipv fliph">Text</td>
<td style="filter:flipv">Text</td>
</tr>
</table>
<body>
</html>
OUTPUT:
MASK FILTER:
In
Filters applied on an
Image(invert,gray & xray):
Invert
Syntax:
<IMG src=pic.jpeg"
style="filter:gray( )">
<IMG src=pic.jpg"
style="filter:invert( )">
<IMG src=pic.jpg"
style="filter:xray( )">
Shadow filter:
Use
Direction
is expressed in terms of
degree & it can be set to any of
eight directions 0(up),45(aboveright),90(right),
135(belowright),180(below),225(belowleft,315(above-left).
E.g:
<h1
style=width:400px;position:abso
lute;left:50px;top:50px;filter:shad
ow(direction=45,color=red)>
CHROMA Filter:
The
Alpha Filter:
Use
Parameters:
Opacity: determine the level of opacity
0=full transparent(invisible)
100=fully opaque(visible)
Finishopacity=value range from 0 to 100 & determine
at what value the gradient effect will finish.
Style=specifies the shape characteristic of the opacity
gradient.possible values are:
0=uniform
1=linear
2=radial/circular gradient
3=rectangular
Note: alpha filter has additional attributes like
startx,starty,finishx,finishy that specify at what x& y
coordinates the gradient start |& finishes in that
element.
e.g:
<div
style=width:400px;height:500px
;filter:
alpha(opacity=100,finishopacity
=0,style=2)>
<img src=1.jpg>
</div>
Glow Filter:
It
Parameters:
Color:determine
object
Strength(optional):determine the
intensity of the glow means the no. pf
pixel the glow will extend.
Range is 1 to 255.Default is 5
e.g:<h1
style=width:200px;position:absolute;to
p:100px;left:50px;filter:glow(color=gree
n,strength=20)>Example of glow
filter</h1>
Blur filter
It
Parameters:
Wave Filter:
Creates
Parameters:
Eg:
<div
style=width:100px;filter:wave(a
dd=0,freq=1,phase=0,strength=
10)>
<h1>Example of Wave Filter</h1>
</dIV>