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

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

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

代码说明:

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

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

发表评论

0 个回复

  • surface111
    说明:  这是个曲面建模的程序,里面同时也包含算法,(This is a surface modeling procedures, but also includes inside algorithm. .)
    2006-03-05 09:16:48下载
    积分:1
  • cmake-3.14.6-win64-x64
    cmake+window,用于cmake生成window代码。(cmake+window. Generating windows code for cmake.)
    2020-06-17 08:20:02下载
    积分:1
  • driver
    在制作驱动软件的过程中,运用此程序可以用来截取包(Driver software in the production process, the use of this procedure can be used to intercept packets)
    2010-12-22 09:44:40下载
    积分:1
  • 1.CreateViewController
    oc编程,将视图控制器添加至UIWindow,若干方法(oc programming, will add a view controller to UIWindow, several methods)
    2013-12-10 13:49:36下载
    积分:1
  • EK-LM3S811套件光盘
    说明:  EK-LM3S811套件的光盘,资料齐全。符合EK-LM3S811的板型(EK-LM3S811 CD-ROM sets, complete information. Plate shape conforming to EK-LM3S811)
    2020-06-17 18:00:01下载
    积分:1
  • TIN三角网
    通过离散点坐标数据,计算简单TIN三角网连接方式,并进行绘制(Through discrete point coordinate data, simple TIN triangulation connection mode is calculated and plotted)
    2019-02-27 14:43:54下载
    积分:1
  • 24234464biandianzhan
    变电站监控界面,变电站运行主界面图及命令上传下发(userinterface of transformer station)
    2012-05-03 22:26:36下载
    积分:1
  • ADE7758
    说明:  ADE7758驱动程序;三相电能芯片读写源程序,全部采用C语言编写;(ADE7758 driver;read and write source program of three-phase power chip, all written in C language;)
    2020-06-20 23:00:01下载
    积分:1
  • arm-C
    ARM 嵌入式系统C 语言编程  无操作系统支持的嵌入式系统软件,包括系统引导(BOOT) 、驱动程序、动态内存管理、IPO、通信以及应用软件等方面。 本文详细介绍了嵌入式平台上用C 语言编写系统软件和应用软件的方法。虽然是针对ARM平台介绍的,但基本经验和算法也适 合于其他嵌入式平台的软件设计。(ARM C)
    2009-11-04 11:06:52下载
    积分:1
  • RemoveDriveByLetter_demo
    安全移除usb设备功能,可禁止某类usb设备的使用,实行系统安全控制Removing a USB drive using the Windows tray icon is easy - especially if you single left-click it... But sometimes it s useful to it from your program(safety equipment functions, prohibit certain types of equipment used usb, Safety control system implemented Removing a USB drive using the Windows tray icon is easy- especially if you left single- click it ... But sometimes it's useful to it from your program)
    2007-05-16 16:47:00下载
    积分:1
  • 696516资源总数
  • 106668会员总数
  • 21今日下载