Method SetAlpha
SetAlpha(int, int, byte)
Sets the alpha value for the given pixel.
public virtual void SetAlpha(int x, int y, byte alpha)
Parameters
x
intX coordinate of the pixel.
y
intY coordinate of the pixel.
alpha
byteNew alpha channel (transparency) value of the pixels.
Remarks
This function should only be called if the image has alpha channel data, use HasAlpha to check for this.
SetAlpha(byte)
Sets the alpha value for the each pixel.
public virtual bool SetAlpha(byte value)
Parameters
value
byteNew alpha channel (transparency) value of the pixels.
Returns
Remarks
This function should only be called if the image has alpha channel data, use HasAlpha to check for this.