Windows Media Player 11 SDK AmbientAttributes.alphaBlendÂ
Previous | Next |
AmbientAttributes.alphaBlend
The alphaBlend attribute specifies or retrieves a value for alpha blending any VIEW, SUBVIEW, or UI widget.
Syntax
Possible Values
This attribute is a read/write Number (long) with a value ranging from 0 (no opacity) to 255 (full opacity) and a default value of 255.
Remarks
This attribute allows an element to appear semitransparent, depending on the amount of opacity set. The less opacity, the more transparent the element will appear. Each element in the skin can have a separate opacity value except for button elements in a BUTTONGROUP control. When alphaBlend is set in VIEW, the opacity of the entire skin will be set. Alpha blend will not work for windowed controls, including PLAYLIST, EFFECTS, LISTBOX, POPUP, EDITBOX, and VIDEO (if windowless is set to false). When alphaBlend is set on VIEW, the whole skin becomes transparent. The transparencyColor attributes used by several elements are not supported with alphaBlend.
When you use alphaBlend with a TEXT element that does not have the backgroundColor specified, a background color of black will be used. If the foreground color is also black (which is the default value for TEXT.foregroundColor), your text may become unreadable. In order to prevent this, always specify the backgroundColor attribute, or set foregroundColor to a color other than black.
Note This attribute is not supported in Windows 98.
Requirements
Windows Media Player 9 Series or later.
See Also
- Ambient Attributes
- AmbientAttributes.alphaBlendTo
- TEXT Element
- TEXT.backgroundColor
- TEXT.foregroundColor
Previous | Next |