Table of Contents

Method IsTransparent

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

IsTransparent(int, int, byte)

Returns true if the given pixel is transparent, i.e. either has the mask color if this image has a mask or if this image has alpha channel and alpha value of this pixel is strictly less than threshold.

bool IsTransparent(int x, int y, byte threshold)

Parameters

x int

X coordinate of the pixel.

y int

Y coordinate of the pixel.

threshold byte

Alpha value treshold.

Returns

bool