API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IWIDGET_SETOPACITYCURVE()

Brew Release
Brew MP 1.0.2
See Also
IWidget_GetOpacityCurve IHFont_GetOpacityCurve IHFont_SetOpacityCurve ITextLayout_GetOpacityCurve ITextLayout_SetOpacityCurve
Description
This routine sets the opacity curve on the IWidget object. The valid range of opacity curve is [-100, 100], with 0 being the default (linear). As the value of the opacity curve increases, the rendered glyphs look more and more opaque.
Params
pif
[]:
[in] Pointer to the IWidget interface object
nOpacityCurve
[]:
[in] The opacity curve to be set on the object
Interface
Prototype
  •    AEEResult IWidget_SetOpacityCurve(IWidget* pif, int nOpacityCurve);
    
Return
  •    AEE_SUCCESS - If the object is able to set the opacity curve.
       AEE_EFAILED - If the opacity curve could not be set.
    
Side Effect
  • None
Comments
Opacity curve only has impact on opacity of glyphs. Depending on the font engine implementation, not necessarily every opacity curve is accounted for. For example, it is possible that setting a opacity value to 5 could results in the same opacity on glyphs as setting it to 8.