在.Net,WinForms中查找有关PixelOffsetMode枚举的详细信息 [英] Looking for details on the PixelOffsetMode Enumeration in .Net, WinForms

查看:140
本文介绍了在.Net,WinForms中查找有关PixelOffsetMode枚举的详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PixelOffsetMode的可能值为:

Invalid  
Default  
HighSpeed  
HighQuality  
None  
Half  

我猜测HighQuality = Half,HighSpeed = None,默认= HighSpeed.

I'm guessing that HighQuality = Half, HighSpeed = None and Default = HighSpeed.

如果这是真的,那么像SmoothingMode一样,我只能提供两个简单的选择.

If this is true then, like the SmoothingMode, I can offer just two simple options.

有人知道这是正确的吗?如果是这样,您是在哪里找到信息的?

Does anyone know if this is correct and, if so, where on earth did you find the information?

推荐答案

如果这是真的,那么像SmoothingMode一样,我只能提供两个简单的选项.

If this is true then, like the SmoothingMode, I can offer just two simple options.

您的假设似乎是正确的.

Your assumption seems to be correct.

根据出色的关于Graphics.DrawImage的页面/博客:

那些文档明确说明;实际上只有两种选择, 备注部分很好地描述了每个功能.真正的 选项:无和一半.其余只是这两个的别名.患病的 让它变得更简单:无=坏,一半=好.默认值为错误".

Those docs make it clear; there are really only two options, and the Remarks section describes quite nicely what each does. The real options: None and Half. The rest are just aliases for those two. I’ll make it even simpler: None=Bad, Half=Good. The default value is Bad.

GDI + MSDN 积极解释说实际上只有两个选择:

The GDI+ MSDN actively explains that there are actually only two options:

PixelOffsetModeNone表示像素中心具有整数坐标.

PixelOffsetModeNone Indicates that pixel centers have integer coordinates.

PixelOffsetModeHalf表示像素中心的坐标位于整数值的一半之间.

PixelOffsetModeHalf Indicates that pixel centers have coordinates that are half way between integer values.

永远不要使用Invalid,而其他值只是简单地链接到上述值.

Invalid is never to be used, and the other values simply link through to the ones mentioned above.

因此,总而言之, 枚举具有不同的值:

So in summary, although the enumeration has different values:

无==默认==高速,产生较低的质量但操作更快,像素通常不代表其整数位置(即其角)的颜色值

None == Default == HighSpeed, yielding a lower quality but faster operation, pixels usually do NOT represent the color value of their integer location (i.e. their corner)

Half == HighQuality,在所有像素通常代表其中心值之后,产生更好的结果(减少伪像),但操作成本更高.

Half == HighQuality , yielding better results (less artifacting) but in a costlier operation, after all pixels usually represent the value of their center.

这篇关于在.Net,WinForms中查找有关PixelOffsetMode枚举的详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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