Method GetPixel
GetPixel(int, int, bool)
Gets Color at given pixel location.
Color GetPixel(int x, int y, bool withAlpha = false)
Parameters
x
intX coordinate of the pixel.
y
intY coordinate of the pixel.
withAlpha
boolIf 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.