C#中的动画 [英] Animation in C#

查看:132
本文介绍了C#中的动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经做过一个带有菜单栏和一些链接的程序.我使用带有图片框的图片说首页",我的帐户"等.

当我将鼠标悬停在项目上时,我想像Google Chrome中的书签一样制作动画效果,因此我开始制作一些gif动画.不幸的是,图片框无法理解透明度,因此产生了一些非常酷的效果-

I once made a program that had a menu bar with some links. I used pictureboxes with a picture Saying "Home", "My Account" etc etc.

When i hover the items i wanted to make an animation effect just like bookmarks in google chrome, so i started to make some gif animations. Unfortunately pictureboxes can''t understand transparency so it made some very uncool effects-

Do you know how to make some kind of glowing effects when hovering?

推荐答案

如果真的想要这样的效果,则应该使用WPF.否则,将悬停时的图像替换为具有发光效果的图像.
If really want such effects you should be using WPF. Otherwise, replace the image on hover with one that has the glow effect.


这篇关于C#中的动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆