登录
首页 » C# » wpf下实现图片的放大缩小和平移 - CSDN博客

wpf下实现图片的放大缩小和平移 - CSDN博客

于 2018-04-04 发布 文件大小:867KB
0 141
下载积分: 1 下载次数: 3

代码说明:

  要求及背景 工作需要,要在一个Form里面实现一个实时预览的picturebox图像,由于picturebox可能会遮挡到其后面的画面,所以要求picturebox可以由用户自行拖拽,类似于悬浮框。 原理说明 在网上兜了几圈之后,决定用三段代码实现。首先要注册鼠标的三个事件:移动、鼠标左键按下、鼠标左键抬起,当然,都是在picturebox上的动作。注册三个事件后,即可以在三个对应的事件函数里面实现拖拽。(Amplification, reduction and translation of images under WPF)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • URAT-untest
    十分详尽的串口调试程序,未经测试,不过已通过仿真(Very detailed serial debugger, without testing, but had passed through Simulation)
    2007-08-30 15:38:13下载
    积分:1
  • DEBUGwithu-bootonsam9261
    SAM9261上调试U-boot 在ADS环境下运行,可以帮助了解Uboot的运行(DEBUG with u-boot on sam9261)
    2010-05-13 20:06:04下载
    积分:1
  • RK3288_datasheet_V03
    RK3288资料文档,作为硬件和驱动开发用(RK3288 datasheet,for hardware and driver develop)
    2016-05-19 17:00:04下载
    积分:1
  • devcpp
    Differential evoluation 非常好的非线性最优化算法,可用于参数识别,图像处理等。(Differential evoluation very good nonlinear optimization algorithm, can be used for parameter identification, image processing and so on.)
    2008-12-31 03:59:42下载
    积分:1
  • 机械臂-labview控制仿真
    用labview程序实现机械臂的多自由度动作(Using LabVIEW program to realize multi degree of freedom action of manipulator)
    2020-07-04 01:40:01下载
    积分:1
  • 视频监控系统
    视频监控系统
    2015-05-11下载
    积分:1
  • 5486575
    文本文件操作,C#练习源码,很好的学习资料。(Text file operations, C# source code, very good learning materials.)
    2013-12-04 20:48:31下载
    积分:1
  • soc5
    soc cycloneV硬件压缩数据设计和参考源代码(soc hardware compression numerical software development and design reference)
    2014-02-11 00:00:51下载
    积分:1
  • RollingWheel
    VC++应用实例,使用message 传递机制,以实现圆形滚动的动画效果,(VC++ application example of using message passing mechanism in order to achieve a circular scrolling animation effects,)
    2014-03-02 22:18:45下载
    积分:1
  • C6000
    说明:   经典的DSP的C程序和汇编程序库,请站长过目 (classic DSP C procedures and the procedures for compiling, please read head)
    2006-04-10 09:58:21下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载