c# - Hidden pixels in PNG -


enter image description herei'm designing c# console application converts bitmap vector art (svg) looping through pixels, pixel color in order draw , fill corresponding vector art component color .

the issue i'm facing , when loop through pixels colors using code

bitmap img = (bitmap)image.fromfile(imagepath); (int x = 0; x < img.width; x++) {    (int y = 0; y < img.height; y++)    {       currentfill = img.getpixel(x, y).name ;    }  } 

at x , y black color (#afafaf) not exist in image (or can't seen naked eye) ! issue did not happen jpg or tiff formats instance..any ideas ?

png files can have alpha channel. color type has a property represents alpha (transparency).


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -