SIGN UP MEMBER LOGIN:    
ARTICLE

Image Filters using HTML

Posted by Syed Shakeer Articles | ASP, JavaScript, CSS May 24, 2010
Filters give a great variety of visual effects in web pages dynamically. We will see different types of filters in this article.
Reader Level:

Filters give a great variety of visual effects in web pages dynamically. Image Filters are of three types:
  1. Gray:-The Gray Filter applies a grayscale image effect in which all color is stripped from the image and all that remains in brightness data. 
  2. Xray:-The Xray Filter applies an Xray effect which is just an inversion of the Gray effect.
  3. Invert:-The Invert Filter applies a Negative Image effect ie: dark areas become light and light areas become dark.
File name must be given with STYLE attribute as follows:

STYLE="filter:gray"

For example, look at following code snippets:

<Html>
<Body>
 <br>
 <br>
 <table>
  <tr>
   <td>
    <img src="F:\photo.gif" >
   </td>
  <td>
    <img src="F:\photo.gif" STYLE="filter:gray">
  </td>
  <td>
    <img src="F:\photo.gif" STYLE="filter:xray">
  </td>
  <td>
    <img src="F:\photo.gif" STYLE="filter:invert">
  </td>
 </tr>
 <tr align="center"><td>Normal</td>
 <td>Gray</td>
 <td>XRay</td>
 <td>Invert</td>
 </tr>
</table>
</Body>
</Html>

Output:
 
 
 1.gif
 

Login to add your contents and source code to this article
share this article :
post comment
 
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
    ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Become a Sponsor