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

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

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

代码说明:

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

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

发表评论

0 个回复

  • 103Server
    辅助通讯规约测试的程序,支持串口103规约,可以模拟四方、南瑞等厂家的保护装置,通过修改配置文件,可以对应保护的点号及实际值。(Auxiliary communication protocol testing procedures, supporting serial 103 of the Statute, can simulate the Quartet, NARI and other manufacturers of protective devices, by modifying the configuration file, you can protect the dot and the corresponding actual values.)
    2021-05-09 23:58:34下载
    积分:1
  • iap15w413as串口
    说明:  iap15w413串口程序,串口初始化程序(iap15w413Serial Port Program)
    2020-06-18 12:00:02下载
    积分:1
  • Blind-Beamforming-
    基于盲波束形成的波达方向──多普勒稳健估计(Based on Blind Beamforming DOA ─ ─ Doppler robust estimation)
    2013-12-26 12:38:50下载
    积分:1
  • 电力自动抄表管理系统
    一款电力远程电表自动抄表系统,采用VC开发设计,供大家相互学习使用。(Power system auto-collecting and managing system,designed with VC for lerning.)
    2017-10-05 09:31:01下载
    积分:1
  • ISP
    isp 相机底层驱动程序,适配多款sensor(ips bottom)
    2014-07-09 10:53:28下载
    积分:1
  • TC-B SDK
    ANVIZ Demo Source .NET Language
    2018-10-11 12:12:52下载
    积分:1
  • vbcloseapp
    利用vb关闭应用程序,提供了2种方法,具体看源码(Close the application using vb provide two kinds of methods, see the specific source)
    2016-05-08 08:54:25下载
    积分:1
  • SerialComm
    基于vs2012的串口调试助手调试软件,简单清晰适合于初学者。(Based vs2012 serial debugging aides debugging software, is clear and simple for beginners.)
    2020-09-27 18:27:45下载
    积分:1
  • Small_c_function
    说明:  small_c 超级小巧的c语言的库函数源代码。对内存需求极少的空间的嵌入式产品开发非常有帮助。 (small_c super compact c language source code library functions. Very little space on the memory requirements for embedded product development is very helpful.)
    2010-04-28 21:26:15下载
    积分:1
  • libdmtx-0.7.4
    DataMatrix码的开源库,可以在不同的平台上(Windows,Linux,Unix,手机系统)进行编解码操作,使用前需要根据README上说明进行编译(DataMatrix code open source library, it can encode and decode operation on the (Windows, Linux, Unix, mobile phone system) different platforms, before use according to the instructions on the README to compile)
    2021-04-15 23:08:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载