Gets or sets a value that specifies object or group opacity in Cascading Style Sheets (CSS) or Scalable Vector Graphics (SVG).
HRESULT IHTMLCSSStyleDeclaration::get_opacity(float *p);HRESULT IHTMLCSSStyleDeclaration::put_opacity(float v);
- Pointer to a variable of type float that receives one of the values listed in Possible Values.
- float that specifies one of the values listed in 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) to
1.0(fully opaque) is restricted to this range.
Returns S_OK if successful, or an error value otherwise.
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.