首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 鱼眼

鱼眼

  • 资源大小:142.00 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

a simple class to use can help you to make a fish-eye magnifier. this program with Chinese&English notes which tell you how to use it. //by inuheaven@163.com //hi.baidu.com/inuko //bitmapdata fisheye magnifier //原创代码,如有雷同,纯属巧合 /**> 本例是使用近似算法,只是最简单的鱼眼应用。此类绑定一个以0,0为中心,半径R=50的圆即可使用。也可以自行绘制放大镜子。 原理很简单,可以baidu下。** 须和被放大的object封在一个mc里。这样bitmapdata.draw比较方便。涉及到层级问题,不这么做执行效率较低。 可以用模糊滤镜使之更平滑,不建议使用。 需要近远调节,可以自行写 放大镜与物件的距离,放大镜与人眼的距离 与 放大倍数的映射关系 this is a proximation. a simple fisheye.bind it with a sprite which has a circle which r=100 in point(0,0),u can draw your own magnifier. the theory is concentric circles filled with different scaled original pictures 可以用tweener做动画 move with tweener class Tweener.addTween(myMovieClip, {x:10, time:1,onUpdate:magnifier.render}); 时间轴动画可以用enterFrame move in flash function enterFrameH(e){ if(currentFrame>arg&¤tFrame
VIP VIP
0.188259s