Set pixel color?

bsaucer

New member
Joined
Oct 3, 2008
Messages
3
Programming Experience
5-10
I want to have a rectangular "image" on the page, which either has 300 by 300 "pixels", or 3.0 by 3.0 "coordinates". I wish to set the color of each of the pixels individually to quickly produce a graphic image. I also want to determine which "pixel", or (coordinate X, Y) the mouse is in when it is clicked.

I would imagine that drawing 90,000 individual "rectangles" or "lines" would be too slow. I prefer to just have a bitmap in memory, set all the pixels, and then display it on the page when I'm finished. Then the user can click on it.

Whatever solution we come up with should be able to work in a Silverlight 2.0 application.
 
Back
Top