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

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

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

代码说明:

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

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

发表评论

0 个回复

  • LCD_13700_1019
    arm9200下的13700驱动程序,完整的ads文件(arm9200`s 13700 driver,ads drivers,and AD7843 TOUCH PANNLE)
    2009-10-21 14:15:27下载
    积分:1
  • SevLaunch
    自制的一个快捷启动工具,简介好用。功能可以继续完善(Made a quick start tool, Introduction handy.)
    2013-11-28 14:43:44下载
    积分:1
  • FormAndXml
    C#读取xml文件生成窗体,以及由存在的窗体生成xml文件(C# read xml file to generate forms, as well as by the existence of a form generated xml file)
    2013-07-24 23:36:57下载
    积分:1
  • Vrognams_Fractal
    Mini Programs, written in VC++ to display xg1cc Fractal Images, can learn
    2018-12-01 19:57:41下载
    积分:1
  • ChildViewTx
    这是VC++其中的一个源代码,是普通的程序代码,主要用于教学范例(This is VC in which a source code, there are the ordinary program code, mainly for teaching examples)
    2016-02-16 02:21:28下载
    积分:1
  • IQMATH_v15
    说明:  f2812、F28335、F2808 IQMATH数学库及说明文档、例程(IQMATH Mathematics Library and Description Documents and Routines)
    2021-04-24 17:48:47下载
    积分:1
  • gyro_invensense
    说明:  hi3519v101 icm_20628 driver
    2020-06-19 21:40:02下载
    积分:1
  • Proteus 8051+LCD+PWM电机调速测速(仿真+源码)
    说明:  Proteus 8051+LCD+PWM电机调速测速(仿真+源码)(Proteus 8051+LCD+PWM Motor speed measurement (simulation + source))
    2019-05-28 01:10:50下载
    积分:1
  • Aion+Client+toolAION PAK解包
    说明:  Aion+Client+toolAION PAK解包 永恒之塔pak文件和对话框html解密工具(Aion+Client+toolAION PAK unpack eternal tower PAK file and dialog box HTML decryption tool)
    2019-01-12 20:48:17下载
    积分:1
  • ExportHomeWork
    程序包含了三层结构和Excel导出功能,可以快速的了解三层结构。(Program includes a three-tier structure and Excel export functions, you can quickly understand the three-tier structure.)
    2011-10-09 10:17:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载