Click or drag to resize
SpriteBaseModulateAlpha Property
Affects the sprite's visibility.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual int ModulateAlpha { get; set; }

Property Value

Type: Int32
Remarks
By setting this to 128, the sprite will be drawn half-transparent. By setting it to 255, it draws in the usual way (as defined). This value is merged with the ModulateAlpha value in the frames that make up the sprite. So if the frame is set to ModulateAlpha=128 and the sprite ModulateAlpha=128, then the final visibility of the frame will only be 25% (64).
See Also