• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

page in color to gray scale

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

As we all know how to convert a colored image to grayscale. I have created a Jsp which contains colored images, charts and also text. Is der a way by which all at once the colored contents of the Jsp could be converted to grayscale which i could later refer in as GrayscaleJsp... !!!
 
Greenhorn
Posts: 20
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can look into the following solution based on CSS filter:

http://stackoverflow.com/questions/609273/convert-an-image-to-grayscale-in-html-css#8612047
 
abida khatoon
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this is snap shot of my Jsp.!!I want entire content having ARGB coloring to be removed.!! I m new to svg and filters in css
snap.png
[Thumbnail for snap.png]
jsp in color snapshot
 
Ravi Khadgi
Greenhorn
Posts: 20
Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you look into the following page, the CSS filter is applied to the image (img tag). You can apply the same filter to the body of the HTML page and your whole page should turn into grayscale. Also I would recommend to test on different browsers for cross-browser compatibility.

http://dl.dropboxusercontent.com/u/11137205/grayscale.html
 
abida khatoon
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ravi Khadgi.!!!
Well its working fine for my JSP .I m using PD4ml to generate pdf file.my question is pd4ml does not support svg tag. in this case what can i do..?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic