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

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

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

代码说明:

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

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

发表评论

0 个回复

  • ADC-IN0-Voltage
    在单片机的数码管上显示AD转换出来的电压(Display the voltage converted by AD on the digital tube of MCU)
    2020-06-19 17:20:02下载
    积分:1
  • Black_Jack1981413192006
    simple c++ program for learners ,Black jack
    2011-10-08 23:37:28下载
    积分:1
  • p4
    为了让您在使用数组,指针,结构,枚举,和不同的I/ O流的经验。为了让你有乐趣的应用程序是非常迷人的。 世界的简单的程序,我们将编写此项目模拟运行的生物围绕在一个简单的方形的世界。世界是一个m-n的平方二维网格(数m代表网格的高度的个数n表示宽度的网格。)。 每个生物生活的广场之一,面临的一个主要罗盘方向(北, 东,南,西),属于一个特定的物种,这就决定了该生物如何 行为方式。(To give you experience in using arrays, pointers, structs, enums, and different I/O streams. To let you have fun with an application that is extremely captivating. The simple world program we will write for this project simulates a number of creatures running around in a simple square world. The world is an m-by-n two-dimensional grid of squares (The number m represents the height of the grid and the number n represents the width of the grid.). Each creature lives in one of the squares, faces in one of the major compass directions (north, east, south, or west) and belongs to a particular species, which determines how that creature behaves. )
    2013-11-16 14:15:33下载
    积分:1
  • ArraySorter
    ArraySorter 的实现 封装了Array以方便使用(ArraySorter implementation)
    2011-11-03 20:00:59下载
    积分:1
  • C
    说明:  C#生成中文汉字验证码源码.rar C#生成中文汉字验证码源码.rar()
    2007-10-09 18:48:54下载
    积分:1
  • v01-201612061519
    移动榨汁机源程序,包括清洗、红外检测、计数、报警、提示、4G信号传送、榨汁、封杯检测、防夹手功能。(Mobile juice extractor source program, including cleaning, infrared detection, counting, alarm, prompt, 4G signal transmission, juicing, cup sealing detection, anti-clip function.)
    2020-06-18 20:40:01下载
    积分:1
  • 读取WebBrowser中的Cookies(含Session)信息 并赋值给HttpWebRequest 执行模拟网页操作
    通常大家通过 webbrowser.document.cookies 只能得到cookie但是得不到 session,这个实例也得到了session
    2013-01-05下载
    积分:1
  • xuliehua
    vc基本序列化的程序源码,希望对大家有所帮助(vc basic sequence of the program source code, we want to help)
    2011-06-05 22:20:23下载
    积分:1
  • NotifyIcon
    非常实用的一个功能,MFC实现系统动态托盘图标(A very useful feature, MFC achieve dynamic tray icon)
    2013-11-25 17:03:33下载
    积分:1
  • CPPtrining
    华为C++中级培训教材,吐血奉献,挺好的资料。(huawei C++ trining)
    2011-11-23 23:06:59下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载