.net - How to use DoubleAnimation for changing "Tint"? -
i'm used cocos2d apply tint animation of object , hoping find same in wpf since opacity similar between cocos2d , wpf shown below:
bitmapimage image = new bitmapimage(); image.begininit(); image.urisource = new uri(longresourcespath + item.imagefile); image.endinit(); imgprofile.source = image; imgprofile.opacity = 0; doubleanimation anin = new doubleanimation(); anin.from = 0; anin.to = 1; anin.duration = new duration(timespan.frommilliseconds(250)); imgprofile.beginanimation(image.opacityproperty, anin);
how can change code change tint 100% white 0 (image normal tint)
thanks
Comments
Post a Comment