TintEffect Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TintEffect(Color, Int32) |
Creates a new TintEffect with the specified hue adjustment. |
TintEffect(Int32, Int32) |
Creates a new TintEffect with the specified hue adjustment. |
TintEffect(Color, Int32)
- Source:
- TintEffect.cs
- Source:
- TintEffect.cs
Creates a new TintEffect with the specified hue adjustment.
public:
TintEffect(System::Drawing::Color color, int amount);
public TintEffect (System.Drawing.Color color, int amount);
new System.Drawing.Imaging.Effects.TintEffect : System.Drawing.Color * int -> System.Drawing.Imaging.Effects.TintEffect
Public Sub New (color As Color, amount As Integer)
Parameters
- color
- Color
The color to be applied to the image.
- amount
- Int32
Integer in the range -100 through 100 that specifies how much the hue (given by the hue parameter) is strengthened or weakened. A value of 0 specifies no change. Positive values specify that the hue is strengthened and negative values specify that the hue is weakened
Exceptions
amount
is less than -100 or greater than 100.
Applies to
TintEffect(Int32, Int32)
- Source:
- TintEffect.cs
- Source:
- TintEffect.cs
Creates a new TintEffect with the specified hue adjustment.
public:
TintEffect(int hue, int amount);
public TintEffect (int hue, int amount);
new System.Drawing.Imaging.Effects.TintEffect : int * int -> System.Drawing.Imaging.Effects.TintEffect
Public Sub New (hue As Integer, amount As Integer)
Parameters
- hue
- Int32
Integer in the range of 0 to 360 that specifies the hue to be strengthened or weakened.
- amount
- Int32
Integer in the range -100 through 100 that specifies how much the hue (given by the hue parameter) is strengthened or weakened. A value of 0 specifies no change. Positive values specify that the hue is strengthened and negative values specify that the hue is weakened
Exceptions
hue
is less than 0 or greater than 360.
amount
is less than -100 or greater than 100.
Applies to
.NET