Table of Contents

Method SetAlpha

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

SetAlpha(int, int, byte)

Sets the alpha value for the given pixel.

public virtual void SetAlpha(int x, int y, byte alpha)

Parameters

x int

X coordinate of the pixel.

y int

Y coordinate of the pixel.

alpha byte

New 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 byte

New alpha channel (transparency) value of the pixels.

Returns

bool

Remarks

This function should only be called if the image has alpha channel data, use HasAlpha to check for this.