IHTMLStyle7::opacity Property
[This documentation is preliminary and is subject to change.]
Gets or sets a value that specifies object or group opacity in Cascading Style Sheets (CSS) or Scalable Vector Graphics (SVG).
Syntax
HRESULT IHTMLStyle7::get_opacity(float *p); HRESULT IHTMLStyle7::put_opacity(float v);
Parameters
- p
Pointer to a variable of type float that receives one of the values listed in Possible Values.- v
float that specifies one of the values listed in Possible Values.
Possible Values
inherit Indicates that the property takes the same computed value as the property for the element's parent. opacity-value The uniform opacity setting to be applied to the object, as a number. This value is a floating-point number between 0 and 1. Any value outside the range 0.0
(fully transparent) to1.0
(fully opaque) is restricted to this range.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
Object or group opacity can be thought of conceptually as a postprocessing operation. Conceptually, after the object or group is rendered into an RGBA offscreen image, the object or group opacity setting specifies how to blend the offscreen image into the current background.
See Also
IHTMLStyle7::fillOpacity, IHTMLStyle7::strokeOpacity, IHTMLStyle7::stopOpacity