Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get pixel color from image

using System.Drawing;

Bitmap img = new Bitmap("*imagePath*");
for (int i = 0; i < img.Width; i++)
{
    for (int j = 0; j < img.Height; j++)
    {
        Color pixel = img.GetPixel(i,j);
    }
} 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pixel #color #image
ADD COMMENT
Topic
Name
1+4 =