Q:

GetPixel always return 0 on png image

When i read image with GetPixel() color value is always black. My image is a png image.
I tried convert the image to bitmap before, but don't had success.
I believe which the problem isn't my code, because whether I open png image in Paint and only save it. The code read image correctly.
I load image like bellow
myImage = new Bitmap(fileName);

I need read image here
private void LoadImageMap(Bitmap value){
        for (int col = 0; col < value.Width; col++)
        {
            for (int row = 0; row < value.Height; row++)
            {
                var color = value.GetPixel(col, row);

var color is black, always.
Sample of the image...

A:

PNG image there is transparency and when pixel is full transparency GetPixel() result with zero value to RGB colors.
Then my code needed of the one if to validate this case.
the solution was like bellow:
var color = value.GetPixel(x, y);

if(color.A.Equals(0))
{
    color = Color.White;
}

PNG use ARGB colors where A represent the alpha channel and whether alpha is zero this pixel has full transparence.

