Method GetPixel
GetPixel(int, int, bool)
Gets Color at given pixel location.
public Color GetPixel(int x, int y, bool withAlpha = false)
Parameters
xintX coordinate of the pixel.
yintY coordinate of the pixel.
withAlphaboolIf true alpha channel is also returned in result (A); if false it is set to 255.
Returns
Remarks
Some images can have mask color, this method doesn't use this info. You need to add additional code in order to determine transparency if your image is with mask color.