如何使用DoubleAnimation更改“Tint”?

时间:2015-07-08 22:31:09

标签: .net wpf

我习惯使用cocos2d来应用对象的色调动画,我希望在wpf中找到相同的,因为不透明度在cocos2d和wpf之间非常相似,如下所示:

                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);

如何更改代码以将色调从100%白色更改为0(图像正常色调)

感谢

0 个答案:

没有答案