Click to See Complete Forum and Search --> : Grab pixels and applet


Swayhand
December 8th, 2002, 03:29 PM
Hello, there:

I wanted to some image processing with C#. I have two questions here:

1. Does C# have some class like the PixelGrabber in JAVA, with which I can put all the pixel of an image into an array?

2. Can C# do some web page small programs like JAVA Applets instead of the embedded script into ASP.NET?

Might sound stupid, but forgivable for a newbie. like to know the answers.

thanx all,

wolfofthenorth
December 9th, 2002, 02:53 PM
Hi,

For question 1, you might try the Bitmap class. It exposes GetPixle and SetPixle methods that take X,Y coordinates.

You could also use unsafe code and the Bitmap.LockBits method, BitmapData class, and a pointer. This may give better performance. :confused:

Hope this helps.

excuseMe
March 17th, 2004, 09:52 PM
After i get the pointer, how do i goes about puting the pixel data to the byte arary?