|
-
December 8th, 2002, 04:29 PM
#1
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,
-
December 9th, 2002, 03:53 PM
#2
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.
Hope this helps.
That which does not kill us, only makes us stronger.
MCSD .NET
-
March 17th, 2004, 10:52 PM
#3
After i get the pointer, how do i goes about puting the pixel data to the byte arary?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|