CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1

    Question 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,

  2. #2
    Join Date
    Nov 2002
    Location
    Tatooine
    Posts
    155
    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

  3. #3
    Join Date
    Feb 2004
    Posts
    8
    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
  •  





Click Here to Expand Forum to Full Width

Featured