Duotone
Duotone 类
表示 Duotone 效果。对于每个像素,通过线性插值将 Color1 和 Color2 组合,以确定该像素的新颜色。
public sealed class Duotone : ImageTransformOperation, IDuotone
属性
| Name | Description |
|---|---|
| AsIPresentationComponent { get; } | 允许获取基 IPresentationComponent 接口。只读 IPresentationComponent。 |
| Color1 { get; } | 返回暗像素的目标颜色格式。只读 IColorFormat。 |
| Color2 { get; } | 返回亮像素的目标颜色格式。只读 IColorFormat。 |
方法
| Name | Description |
|---|---|
| override Equals(object) | 确定指定的 Duotone 是否等于当前的 Duotone。 |
| GetEffective() | 获取应用继承后的有效 Duetone 效果数据。 |
| override GetHashCode() | 作为特定类型的哈希函数。 |