Results 1 to 3 of 3

Thread: GetPixel

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    GetPixel

    What are the options for getting the color of a pixel from an image. If I dont wnat to use GetPixel (speed).

    Thanks

  2. #2
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Re: GetPixel

    I believe the fastest way is using Bitmap.LockBits and Bitmap.UnlockBits and marshalling the data into an array. Here is a good explanation of the whole process (which is admittedly a bit confusing compared to GetPixel):

    http://www.bobpowell.net/lockingbits.htm

    Bill
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: GetPixel

    I thought so, i've used this before and I can use it well now. Just curious to know if there was any other method

    Thanks

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