-
Grab pixels and applet
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,
-
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.
-
After i get the pointer, how do i goes about puting the pixel data to the byte arary?