ImageAttributes.ClearThreshold 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
清除阈值。
重载
| 名称 | 说明 |
|---|---|
| ClearThreshold() |
清除默认类别的阈值。 |
| ClearThreshold(ColorAdjustType) |
清除指定类别的阈值。 |
ClearThreshold()
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
清除默认类别的阈值。
public:
void ClearThreshold();
public void ClearThreshold();
member this.ClearThreshold : unit -> unit
Public Sub ClearThreshold ()
注解
阈值是一个介于 0 到 1 之间的值,该值指定每个颜色组件的截止点。 例如,假设阈值设置为 0.7,并且假设呈现的是红色、绿色和蓝色分量分别为 230、50 和 220 的颜色。 红色分量(230)大于 0.7x255,因此红色分量将更改为 255(完全强度)。 绿色组件(50)小于 0.7x255,因此绿色组件将更改为 0。 蓝色组件(220)大于 0.7x255,因此蓝色组件将更改为 255。
对象维护五个 ImageAttributes 调整类别的颜色和灰度设置:默认、位图、画笔、笔和文本。 例如,可以为默认类别指定阈值、位图类别的不同阈值,以及笔类别的阈值。
默认颜色调整和灰度调整设置适用于没有自己调整设置的所有类别。 例如,如果从未为笔类别指定任何调整设置,则默认设置将应用于笔类别。
适用于
ClearThreshold(ColorAdjustType)
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
- Source:
- ImageAttributes.cs
清除指定类别的阈值。
public:
void ClearThreshold(System::Drawing::Imaging::ColorAdjustType type);
public void ClearThreshold(System.Drawing.Imaging.ColorAdjustType type);
member this.ClearThreshold : System.Drawing.Imaging.ColorAdjustType -> unit
Public Sub ClearThreshold (type As ColorAdjustType)
参数
- type
- ColorAdjustType
一个元素 ColorAdjustType ,指定清除阈值的类别。
注解
阈值是一个介于 0 到 1 之间的值,该值指定每个颜色组件的截止点。 例如,假设阈值设置为 0.7,并且假设呈现的是红色、绿色和蓝色分量分别为 230、50 和 220 的颜色。 红色分量(230)大于 0.7x55,因此红色分量将更改为 255(完全强度)。 绿色组件(50)小于 0.7x255,因此绿色组件将更改为 0。 蓝色组件(220)大于 0.7x255,因此蓝色组件将更改为 255。
对象维护五个 ImageAttributes 调整类别的颜色和灰度设置:默认、位图、画笔、笔和文本。 例如,可以为默认类别指定阈值、位图类别的不同阈值,以及笔类别的阈值。
默认颜色调整和灰度调整设置适用于没有自己调整设置的所有类别。 例如,如果从未为笔类别指定任何调整设置,则默认设置将应用于笔类别。
指定特定类别的颜色调整或灰度调整设置后,默认调整设置将不再应用于该类别。 例如,假设为默认类别指定阈值和伽玛值。 如果通过调用 SetThreshold 方法设置笔类别的阈值,则默认阈值将不适用于笔。 如果稍后通过调用 ClearThreshold 方法清除笔阈值,笔类别将不会还原为默认阈值;相反,笔类别将没有阈值。 同样,笔类别不会还原为默认伽马值;相反,笔类别将没有伽玛值。