Click or drag to resize
Ab4d.SharpEngine logo

Color4SetAlpha(Single, Boolean) Method

Sets the alpha value of this Color4.

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public Color4 SetAlpha(
	float alphaValue,
	bool premultiplyAlpha
)

Parameters

alphaValue  Single
alpha value (1 - opaque; 0 - fully transparent)
premultiplyAlpha  Boolean
when true, then Red, Green and Blue color values are multiplied by alpha

Return Value

Color4
See Also