How to fade the image to certain percentage?? | developer.brewmp.com How to fade the image to certain percentage?? | developer.brewmp.com

Developer

How to fade the image to certain percentage??

Forums:

hi

can anyone help me how to fade the image to certain percentage ????

I want to create a shadow image with 30% fading of the particular image.

 

Please suggest any API or with sample code.

 

Regards

Gautam

Use blend widget.
ISHELL_CreateInstance(pMe->piShell, AEECLSID_BlendWidget, (void**)&pidBlend);
IDecorator_QueryInterface(pidBlend, AEEIID_IWidget, (void**) &pMe->piwBlend);
IWidget_SetTransparency(pMe->piwBlend, pMe->uPrgs);//value
IDecorator_SetWidget(pidBlend, pMe->piwImg);//set image as child

Use blend widget.
ISHELL_CreateInstance(pMe->piShell, AEECLSID_BlendWidget, (void**)&pidBlend);
IDecorator_QueryInterface(pidBlend, AEEIID_IWidget, (void**) &pMe->piwBlend);
IWidget_SetTransparency(pMe->piwBlend, pMe->uPrgs);//value
IDecorator_SetWidget(pidBlend, pMe->piwImg);//set image as child

HI 
 
Thanks for ur reply. I want something like the image should gradually shade from starting to end.
The Blend widget fades the whole image, i want the image to be gradually shading . is there any other widget??
 
Regards
Gautam

HI 
 
Thanks for ur reply. I want something like the image should gradually shade from starting to end.
The Blend widget fades the whole image, i want the image to be gradually shading . is there any other widget??
 
Regards
Gautam

I don't think something like that is possible but you may try applying gradients. IWidget_SetGradientStyle/IWidget_SetGradientColor etc...
 
You can use AEECLSID_CTransition2_Fader as well to fade the image over range of transparency values. There are other transitions like mover/scaler etc. Refer https://developer.brewmp.com/resources/how-to/applying-transition-widget
 

I don't think something like that is possible but you may try applying gradients. IWidget_SetGradientStyle/IWidget_SetGradientColor etc...
 
You can use AEECLSID_CTransition2_Fader as well to fade the image over range of transparency values. There are other transitions like mover/scaler etc. Refer https://developer.brewmp.com/resources/how-to/applying-transition-widget