473,387 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

create black-white picture on the fly

Hi all,

I want to make a coloured picture black and white when a user moves its
mouse pointer over it. I just don't want to store a coloured an black and
white (grayscaled) version on the server.

Someone done this before?

kind regards
Stijn
Jul 20 '05 #1
3 8367
"Stijn Goris" <me*****@hotmail.com> wrote in message
news:bH*********************@phobos.telenet-ops.be...
I want to make a coloured picture black and white when a user
moves its mouse pointer over it. I just don't want to store a
coloured an black and white (grayscaled) version on the server.


The combination of JavaScript and web browser DOMs have no standard
mechanisms for manipulating images. If you are willing to only have the
effect on some IE browsers, and write the code so that it does not error
on all other browsers (including the ones that fake the "filters"
properties of DOM elements) you could look into the Microsoft
proprietary "filters" which probably can transform an image to
greyscale. But the cross browser approach would be to do a normal image
swap using a greyscale version of the image, and that would need to be
stored on your server.

Richard.
Jul 20 '05 #2
Stijn Goris wrote on 16 dec 2003 in comp.lang.javascript:
I want to make a coloured picture black and white when a user moves its
mouse pointer over it. I just don't want to store a coloured an black and
white (grayscaled) version on the server.
Why?
Someone done this before?


Sure, use a filter [only IE].

Kijk maar eens hier:

http://msdn.microsoft.com/workshop/a...lters/gray.asp

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #3

"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message
news:br*******************@news.demon.co.uk...
"Stijn Goris" <me*****@hotmail.com> wrote in message
news:bH*********************@phobos.telenet-ops.be...
I want to make a coloured picture black and white when a user
moves its mouse pointer over it. I just don't want to store a
coloured an black and white (grayscaled) version on the server.


The combination of JavaScript and web browser DOMs have no standard
mechanisms for manipulating images. If you are willing to only have the
effect on some IE browsers, and write the code so that it does not error
on all other browsers (including the ones that fake the "filters"
properties of DOM elements) you could look into the Microsoft
proprietary "filters" which probably can transform an image to
greyscale. But the cross browser approach would be to do a normal image
swap using a greyscale version of the image, and that would need to be
stored on your server.

Richard.


I thuld it would be possible. And what good is the filter if it is browser
dependent?

I ll use the server approache...

thanks
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: mb | last post by:
Here is an example of what I want to create: A class called Cars public class Cars { public string Mazda; public string Ford; etc, etc.......... }
7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
2
by: Programmer | last post by:
Hi all Here is my problem I want to create an image so i can pass it on an object to put it as watermark in my pdf report Here is what i have write so far Dim objBitmap As...
3
by: Joe Black | last post by:
Hi everyone, I have a pesky little problem that is driving me nuts. I'm trying to capture an image of a web page programmatically in a background thread or process. What I'd like to do is create...
0
by: shandy.b | last post by:
Hi all. Here's the problem: I've got a black box and a bunch of particles in an environment. The particles go into the black box, follow a path, and pop out the end after some processing. ...
2
by: Krustov | last post by:
The question of how to create thumbnails with clickable links gets asked on this newsgroup every so often - like clock work . Just really posing this script here for google to archive it & so...
4
by: Abdhul Saleem | last post by:
Hi, I am recieving error ActiveX component can't create object in the following line in the asp page. set ExcelApp = CreateObject("Excel.Application") Previously this code was working fine....
4
by: DeWittds | last post by:
Had no luck in the visual basic group maybe someone here can give me a hand. I have been tring to recreate a simple program that I wrote many years ago in quick basic. The program get name and...
1
by: amsablotny | last post by:
Hi all, I am a newbie at this. I am trying to create thumbnails. However, I am only creating black image with the correct thumbnail size. I am using php 5.1.6 and GD 2.0.28. Below is the...
3
by: Mark B | last post by:
I want to create a top navigation bar: Home Products Services About Contact I have been trying to use web.sitemap as the source for a menu control as show in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.