Stretchwickster
Programmer
Hi,
On a webpage, I would like to manipulate a simple 2-colour image (invert it and apply a mask) depending on the value of a variable. For example, if var1 = "red" then I want to manipulate the image such that it's outline changes from black to red.
I have managed to achieve this using CSS filters but these only work in IE.
In order to create a generic approach that works in all browsers I was wondering if the following process was feasible:
1) pass image from web directory to java applet
2) java applet inverts image and applies mask based on value of var1
3) java applet returns modified image to web directory to be displayed in webpage
Clive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
On a webpage, I would like to manipulate a simple 2-colour image (invert it and apply a mask) depending on the value of a variable. For example, if var1 = "red" then I want to manipulate the image such that it's outline changes from black to red.
I have managed to achieve this using CSS filters but these only work in IE.
Code:
<img src="Grid.bmp" style="width='100%';Filter: Invert Chroma(Color = #000000) Mask(Color=#FF0000)" />
1) pass image from web directory to java applet
2) java applet inverts image and applies mask based on value of var1
3) java applet returns modified image to web directory to be displayed in webpage
Clive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096