System.Drawing.Point和System.Windows.Point之间的区别是什么? [英] What is the difference between System.Drawing.Point and System.Windows.Point?

查看:2006
本文介绍了System.Drawing.Point和System.Windows.Point之间的区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 在什么System.Drawing.Point和System.Windows.Point之间的差异
  2. 在什么情况下应该哪一个被使用?

我正在使用WPF。

推荐答案

System.Drawing.Point 重presents一个GDI点和用于Windows窗体。它只能容纳整数值。

System.Drawing.Point represents a GDI point and is used in Windows Forms. It can only hold integer values.

WPF不使用GDI了,所以它有自己的 System.Windows.Point 键入重新presents一个点,它可以有非整数值

WPF doesn't use GDI anymore, so it has its own System.Windows.Point type to represents a point, which can have non integer values.

这篇关于System.Drawing.Point和System.Windows.Point之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆