Expand file tree
/
Copy pathLevelsEffect.xml
More file actions
154 lines (154 loc) · 8.7 KB
/
Copy pathLevelsEffect.xml
File metadata and controls
154 lines (154 loc) · 8.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<Type Name="LevelsEffect" FullName="System.Drawing.Imaging.Effects.LevelsEffect">
<TypeSignature Language="C#" Value="public class LevelsEffect : System.Drawing.Imaging.Effects.Effect" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit LevelsEffect extends System.Drawing.Imaging.Effects.Effect" />
<TypeSignature Language="DocId" Value="T:System.Drawing.Imaging.Effects.LevelsEffect" />
<TypeSignature Language="VB.NET" Value="Public Class LevelsEffect
Inherits Effect" />
<TypeSignature Language="F#" Value="type LevelsEffect = class
 inherit Effect" />
<TypeSignature Language="C++ CLI" Value="public ref class LevelsEffect : System::Drawing::Imaging::Effects::Effect" />
<AssemblyInfo>
<AssemblyName>System.Drawing.Common</AssemblyName>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Drawing.Imaging.Effects.Effect</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Adjusts the light, mid-tone, or dark areas of an image.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public LevelsEffect (int highlight, int midtone, int shadow);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int32 highlight, int32 midtone, int32 shadow) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Drawing.Imaging.Effects.LevelsEffect.#ctor(System.Int32,System.Int32,System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (highlight As Integer, midtone As Integer, shadow As Integer)" />
<MemberSignature Language="F#" Value="new System.Drawing.Imaging.Effects.LevelsEffect : int * int * int -> System.Drawing.Imaging.Effects.LevelsEffect" Usage="new System.Drawing.Imaging.Effects.LevelsEffect (highlight, midtone, shadow)" />
<MemberSignature Language="C++ CLI" Value="public:
 LevelsEffect(int highlight, int midtone, int shadow);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Drawing.Common</AssemblyName>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="highlight" Type="System.Int32" />
<Parameter Name="midtone" Type="System.Int32" />
<Parameter Name="shadow" Type="System.Int32" />
</Parameters>
<Docs>
<param name="highlight">
Integer in the range 0 through 100 that specifies which pixels should be lightened.
</param>
<param name="midtone">
Integer in the range -100 through 100 that specifies how much to lighten or darken an image.
</param>
<param name="shadow">
Integer in the range 0 through 100 that specifies which pixels should be darkened.
</param>
<summary>Creates a new <see cref="T:System.Drawing.Imaging.Effects.LevelsEffect" /> with the specified highlight, midtone, and shadow values.</summary>
<remarks>
<para>
For the <paramref name="highlight" />, you can use this adjustment
to lighten pixels that are already lighter than a certain threshold. Setting highlight to 100 specifies no change.
Setting highlight to t specifies that a color channel value is increased if it is already greater than t percent
of full intensity. For example, setting highlight to 90 specifies that all color channel values greater than 90
percent of full intensity are increased.
</para>
<para>
For the <paramref name="midtone" />, color channel values
in the middle of the intensity range are altered more than color channel values near the minimum or maximum
intensity. You can use this adjustment to lighten (or darken) an image without loosing the contrast between the
darkest and lightest portions of the image. A value of 0 specifies no change. Positive values specify that the
mid-tones are made lighter, and negative values specify that the mid-tones are made darker.
</para>
<para>
For the <paramref name="shadow" />, you can use this adjustment
to darken pixels that are already darker than a certain threshold. Setting shadow to 0 specifies no change.
Setting shadow to t specifies that a color channel value is decreased if it is already less than t percent of
full intensity. For example, setting shadow to 10 specifies that all color channel values less than 10 percent
of full intensity are decreased.
</para>
</remarks>
<exception cref="T:System.ArgumentException">
<para>
<paramref name="highlight" /> or <paramref name="shadow" /> is less than 0 or greater than 100 or</para>
<para>
<paramref name="midtone" /> is less than -100 or greater than 100.</para>
</exception>
</Docs>
</Member>
<Member MemberName="Highlight">
<MemberSignature Language="C#" Value="public int Highlight { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 Highlight" />
<MemberSignature Language="DocId" Value="P:System.Drawing.Imaging.Effects.LevelsEffect.Highlight" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Highlight As Integer" />
<MemberSignature Language="F#" Value="member this.Highlight : int" Usage="System.Drawing.Imaging.Effects.LevelsEffect.Highlight" />
<MemberSignature Language="C++ CLI" Value="public:
 property int Highlight { int get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Drawing.Common</AssemblyName>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the highlight threshold.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Midtone">
<MemberSignature Language="C#" Value="public int Midtone { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 Midtone" />
<MemberSignature Language="DocId" Value="P:System.Drawing.Imaging.Effects.LevelsEffect.Midtone" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Midtone As Integer" />
<MemberSignature Language="F#" Value="member this.Midtone : int" Usage="System.Drawing.Imaging.Effects.LevelsEffect.Midtone" />
<MemberSignature Language="C++ CLI" Value="public:
 property int Midtone { int get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Drawing.Common</AssemblyName>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the midtone adjustment.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Shadow">
<MemberSignature Language="C#" Value="public int Shadow { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 Shadow" />
<MemberSignature Language="DocId" Value="P:System.Drawing.Imaging.Effects.LevelsEffect.Shadow" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Shadow As Integer" />
<MemberSignature Language="F#" Value="member this.Shadow : int" Usage="System.Drawing.Imaging.Effects.LevelsEffect.Shadow" />
<MemberSignature Language="C++ CLI" Value="public:
 property int Shadow { int get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Drawing.Common</AssemblyName>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the shadow threshold.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>