ImageAttributes.ClearColorMatrix 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
清除颜色调整矩阵。
重载
| 名称 | 说明 |
|---|---|
| ClearColorMatrix() |
清除默认类别的颜色调整矩阵。 |
| ClearColorMatrix(ColorAdjustType) |
清除指定类别的颜色调整矩阵。 |
ClearColorMatrix()
- 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 ClearColorMatrix();
public void ClearColorMatrix();
member this.ClearColorMatrix : unit -> unit
Public Sub ClearColorMatrix ()
注解
对象维护五个 ImageAttributes 调整类别的颜色和灰度设置:默认、位图、画笔、笔和文本。 例如,可以为默认类别指定颜色调整矩阵、位图类别的不同颜色调整矩阵,以及笔类别的颜色调整矩阵。
默认颜色调整和灰度调整设置适用于没有自己调整设置的所有类别。 例如,如果从未为笔类别指定任何调整设置,则默认设置将应用于笔类别。
适用于
ClearColorMatrix(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 ClearColorMatrix(System::Drawing::Imaging::ColorAdjustType type);
public void ClearColorMatrix(System.Drawing.Imaging.ColorAdjustType type);
member this.ClearColorMatrix : System.Drawing.Imaging.ColorAdjustType -> unit
Public Sub ClearColorMatrix (type As ColorAdjustType)
参数
- type
- ColorAdjustType
一个元素 ColorAdjustType ,指定颜色调整矩阵被清除的类别。
注解
对象维护五个 ImageAttributes 调整类别的颜色和灰度设置:默认、位图、画笔、笔和文本。 例如,可以为默认类别指定颜色调整矩阵、位图类别的不同颜色调整矩阵,以及笔类别的颜色调整矩阵。
默认颜色调整和灰度调整设置适用于没有自己调整设置的所有类别。 例如,如果从未为笔类别指定任何调整设置,则默认设置将应用于笔类别。
指定特定类别的颜色调整或灰度调整设置后,默认调整设置将不再应用于该类别。 例如,假设为默认类别指定颜色调整矩阵和伽马值。 如果通过调用 SetColorMatrix 方法为笔类别设置颜色调整矩阵,则默认颜色调整矩阵将不适用于笔。 如果稍后通过调用 ClearColorMatrix 方法清除笔颜色调整矩阵,笔类别将不会还原为默认调整矩阵;相反,笔类别将没有调整矩阵。 同样,笔类别不会还原为默认伽马值;相反,笔类别将没有伽玛值。