Modifier

Partager via


ColorBalanceEffect(Int32, Int32, Int32) Constructor

Definition

Creates a new ColorBalanceEffect with the specified red, green, and blue values.

public:
 ColorBalanceEffect(int cyanRed, int magentaGreen, int yellowBlue);
public ColorBalanceEffect (int cyanRed, int magentaGreen, int yellowBlue);
new System.Drawing.Imaging.Effects.ColorBalanceEffect : int * int * int -> System.Drawing.Imaging.Effects.ColorBalanceEffect
Public Sub New (cyanRed As Integer, magentaGreen As Integer, yellowBlue As Integer)

Parameters

cyanRed
Int32

Integer in the range -100 through 100 that specifies a change in the amount of red in the image. If the value is 0, there is no change. As the value moves from 0 to 100, the amount of red in the image increases and the amount of cyan decreases. As the value moves from 0 to -100, the amount of red in the image decreases and the amount of cyan increases.

magentaGreen
Int32

Integer in the range -100 through 100 that specifies a change in the amount of green in the image. If the value is 0, there is no change. As the value moves from 0 to 100, the amount of green in the image increases and the amount of magenta decreases. As the value moves from 0 to -100, the amount of green in the image decreases and and the amount of magenta increases.

yellowBlue
Int32

Integer in the range -100 through 100 that specifies a change in the amount of blue in the image. If the value is 0, there is no change. As the value moves from 0 to 100, the amount of blue in the image increases and the amount of yellow decreases. As the value moves from 0 to -100, the amount of blue in the image decreases and the amount of yellow increases.

Exceptions

cyanRed, magentaGreen, or yellowBlue is less than

-100 or greater than 100.

Applies to