ImageAttributes.ClearRemapTable 方法

定义

清除颜色重新映射表。

重载

名称 说明
ClearRemapTable()

清除默认类别的颜色重新映射表。

ClearRemapTable(ColorAdjustType)

清除指定类别的颜色重新映射表。

ClearRemapTable()

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 ClearRemapTable();
public void ClearRemapTable();
member this.ClearRemapTable : unit -> unit
Public Sub ClearRemapTable ()

注解

对象维护五个 ImageAttributes 调整类别的颜色和灰度设置:默认、位图、画笔、笔和文本。 例如,可以为默认类别指定重新映射表、位图类别的不同重新映射表,以及笔类别的其他重新映射表。

默认颜色调整和灰度调整设置适用于没有自己调整设置的所有类别。 例如,如果从未为笔类别指定任何调整设置,则默认设置将应用于笔类别。

适用于

ClearRemapTable(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 ClearRemapTable(System::Drawing::Imaging::ColorAdjustType type);
public void ClearRemapTable(System.Drawing.Imaging.ColorAdjustType type);
member this.ClearRemapTable : System.Drawing.Imaging.ColorAdjustType -> unit
Public Sub ClearRemapTable (type As ColorAdjustType)

参数

type
ColorAdjustType

一个元素 ColorAdjustType ,指定重新映射表被清除的类别。

注解

对象维护五个 ImageAttributes 调整类别的颜色和灰度设置:默认、位图、画笔、笔和文本。 例如,可以为默认类别指定重新映射表、位图类别的不同重新映射表,以及笔类别的其他重新映射表。

默认颜色调整和灰度调整设置适用于没有自己调整设置的所有类别。 例如,如果从未为笔类别指定任何调整设置,则默认设置将应用于笔类别。

指定特定类别的颜色调整或灰度调整设置后,默认调整设置将不再应用于该类别。 例如,假设你为默认类别指定了重新映射表和伽马值。 如果通过调用 SetRemapTable 方法为笔类别设置重新映射表,则默认的重新映射表将不适用于笔。 如果稍后通过调用 ClearRemapTable 该方法清除笔重新映射表,笔类别将不会还原为默认重新映射表;相反,笔类别将没有重新映射表。 同样,笔类别不会还原为默认伽马值;相反,笔类别将没有伽玛值。

适用于