I would just use two different namespaces for this two classes and NOT try to rename the methods - therefor are the namespases finally ...
Looks like
myFirstNamecpace.GetPixels(..)
mySecondNamespace.GetPixels(...)
[EDITED - Question of OP]
continuing with GetPixels - I would like to get the pixel values of a jpeg image and sum them up into one integer value. But a jpeg image has Red, Green and Blue channels, right? I have opened it in picture box as a Bitmap. So, would I need to loop through all 3 channels of each pixel or just get a single value of each pixel?
private Color[,] GetPixels_1(string filename)
{
Bitmap myImage1 = (Bitmap)pictureBox1.Image;
//Bitmap bmp = (Bitmap)Bitmap.FromFile(filename);
Color[,] results = new Color[myImage1.Width, myImage1.Height];
for (int y = 0; y < myImage1.Height; y++)
{
for (int x = 0; x < myImage1.Width; x++)
{
results[x, y] = myImage1.GetPixel(x, y);
}
}
return results;
}
[EDITED - Answer]
To paste the code use {} of editor above. So, I have found this one, HTH:https://stackoverflow.com/a/10128284/1758762
using System.Drawing;
Bitmap img = new Bitmap("*imagePath*");
for (int i = 0; i < img.GetWidth; i++)
{
for (int i = 0; i < img.GetWidth; i++)
{
Color pixel = img.GetPixel(i,j);
if (pixel == *somecondition*)
{
**Store pixel here in a array or list or whatever**
}
}
}