当前位置: 动力学知识库 > 问答 > 编程问答 >

Replace pixels with an image

问题描述:

I want the user to upload an image, so the black pixels on Image 1 get replaced with the pixels of the uploaded image, so you get something like Image 2

Is there any way to do this with HTML/CSS/JAVASCRIPT?

Image 1

Image 2 (result)

Uploaded Image

网友答案:

Here is an article having to do with flood fills using javascript. It could be a start:

http://www.htmlgoodies.com/primers/jsp/article.php/3622321/Javascript-Basics-Part-12.htm

Though, your question is probably too broad.

分享给朋友:
您可能感兴趣的文章:
随机阅读: