LinearGradientBrush コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したポイントと色を使用して、 LinearGradientBrush クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| LinearGradientBrush(Point, Point, Color, Color) |
指定したポイントと色を使用して、 LinearGradientBrush クラスの新しいインスタンスを初期化します。 |
| LinearGradientBrush(PointF, PointF, Color, Color) |
指定したポイントと色を使用して、 LinearGradientBrush クラスの新しいインスタンスを初期化します。 |
| LinearGradientBrush(Rectangle, Color, Color, LinearGradientMode) |
四角形、開始色と終了色、および向きに基づいて、 LinearGradientBrush クラスの新しいインスタンスを作成します。 |
| LinearGradientBrush(Rectangle, Color, Color, Single) |
四角形、開始色と終了色、および方向角度に基づいて、 LinearGradientBrush クラスの新しいインスタンスを作成します。 |
| LinearGradientBrush(RectangleF, Color, Color, LinearGradientMode) |
四角形、開始色と終了色、向きモードに基づいて、 LinearGradientBrush の新しいインスタンスを作成します。 |
| LinearGradientBrush(RectangleF, Color, Color, Single) |
四角形、開始色と終了色、および方向角度に基づいて、 LinearGradientBrush クラスの新しいインスタンスを作成します。 |
| LinearGradientBrush(Rectangle, Color, Color, Single, Boolean) |
四角形、開始色と終了色、および方向角度に基づいて、 LinearGradientBrush クラスの新しいインスタンスを作成します。 |
| LinearGradientBrush(RectangleF, Color, Color, Single, Boolean) |
四角形、開始色と終了色、および方向角度に基づいて、 LinearGradientBrush クラスの新しいインスタンスを作成します。 |
LinearGradientBrush(Point, Point, Color, Color)
指定したポイントと色を使用して、 LinearGradientBrush クラスの新しいインスタンスを初期化します。
public:
LinearGradientBrush(System::Drawing::Point point1, System::Drawing::Point point2, System::Drawing::Color color1, System::Drawing::Color color2);
public LinearGradientBrush(System.Drawing.Point point1, System.Drawing.Point point2, System.Drawing.Color color1, System.Drawing.Color color2);
new System.Drawing.Drawing2D.LinearGradientBrush : System.Drawing.Point * System.Drawing.Point * System.Drawing.Color * System.Drawing.Color -> System.Drawing.Drawing2D.LinearGradientBrush
Public Sub New (point1 As Point, point2 As Point, color1 As Color, color2 As Color)
パラメーター
適用対象
LinearGradientBrush(PointF, PointF, Color, Color)
指定したポイントと色を使用して、 LinearGradientBrush クラスの新しいインスタンスを初期化します。
public:
LinearGradientBrush(System::Drawing::PointF point1, System::Drawing::PointF point2, System::Drawing::Color color1, System::Drawing::Color color2);
public LinearGradientBrush(System.Drawing.PointF point1, System.Drawing.PointF point2, System.Drawing.Color color1, System.Drawing.Color color2);
new System.Drawing.Drawing2D.LinearGradientBrush : System.Drawing.PointF * System.Drawing.PointF * System.Drawing.Color * System.Drawing.Color -> System.Drawing.Drawing2D.LinearGradientBrush
Public Sub New (point1 As PointF, point2 As PointF, color1 As Color, color2 As Color)
パラメーター
適用対象
LinearGradientBrush(Rectangle, Color, Color, LinearGradientMode)
四角形、開始色と終了色、および向きに基づいて、 LinearGradientBrush クラスの新しいインスタンスを作成します。
public:
LinearGradientBrush(System::Drawing::Rectangle rect, System::Drawing::Color color1, System::Drawing::Color color2, System::Drawing::Drawing2D::LinearGradientMode linearGradientMode);
public LinearGradientBrush(System.Drawing.Rectangle rect, System.Drawing.Color color1, System.Drawing.Color color2, System.Drawing.Drawing2D.LinearGradientMode linearGradientMode);
new System.Drawing.Drawing2D.LinearGradientBrush : System.Drawing.Rectangle * System.Drawing.Color * System.Drawing.Color * System.Drawing.Drawing2D.LinearGradientMode -> System.Drawing.Drawing2D.LinearGradientBrush
Public Sub New (rect As Rectangle, color1 As Color, color2 As Color, linearGradientMode As LinearGradientMode)
パラメーター
- linearGradientMode
- LinearGradientMode
グラデーションの向きを指定する LinearGradientMode 列挙要素。 方向によって、グラデーションの始点と終点が決まります。 たとえば、 LinearGradientMode.ForwardDiagonal は、始点が四角形の左上隅であり、終了点が四角形の右下隅であることを指定します。
適用対象
LinearGradientBrush(Rectangle, Color, Color, Single)
四角形、開始色と終了色、および方向角度に基づいて、 LinearGradientBrush クラスの新しいインスタンスを作成します。
public:
LinearGradientBrush(System::Drawing::Rectangle rect, System::Drawing::Color color1, System::Drawing::Color color2, float angle);
public LinearGradientBrush(System.Drawing.Rectangle rect, System.Drawing.Color color1, System.Drawing.Color color2, float angle);
new System.Drawing.Drawing2D.LinearGradientBrush : System.Drawing.Rectangle * System.Drawing.Color * System.Drawing.Color * single -> System.Drawing.Drawing2D.LinearGradientBrush
Public Sub New (rect As Rectangle, color1 As Color, color2 As Color, angle As Single)
パラメーター
- angle
- Single
グラデーションの向き線の角度を、x 軸から時計回りに度単位で測定します。
注釈
方向線に対して垂直な線に沿った点はすべて同じ色になります。
開始線は方向線に対して垂直であり、四角形の角の 1 つを通過します。 開始線上のすべてのポイントが開始色です。 次に、終了線は方向線に対して垂直であり、四角形の角の 1 つを通過します。 終了線上のすべてのポイントは終了色です。
方向線の角度によって、開始線と終了線が通過する角が決まります。 たとえば、角度が 0 ~ 90 度の場合、開始線は左上隅を通過し、終了線は右下隅を通過します。
適用対象
LinearGradientBrush(RectangleF, Color, Color, LinearGradientMode)
四角形、開始色と終了色、向きモードに基づいて、 LinearGradientBrush の新しいインスタンスを作成します。
public:
LinearGradientBrush(System::Drawing::RectangleF rect, System::Drawing::Color color1, System::Drawing::Color color2, System::Drawing::Drawing2D::LinearGradientMode linearGradientMode);
public LinearGradientBrush(System.Drawing.RectangleF rect, System.Drawing.Color color1, System.Drawing.Color color2, System.Drawing.Drawing2D.LinearGradientMode linearGradientMode);
new System.Drawing.Drawing2D.LinearGradientBrush : System.Drawing.RectangleF * System.Drawing.Color * System.Drawing.Color * System.Drawing.Drawing2D.LinearGradientMode -> System.Drawing.Drawing2D.LinearGradientBrush
Public Sub New (rect As RectangleF, color1 As Color, color2 As Color, linearGradientMode As LinearGradientMode)
パラメーター
- rect
- RectangleF
線形グラデーションの境界を指定する RectangleF 構造体。
- linearGradientMode
- LinearGradientMode
グラデーションの向きを指定する LinearGradientMode 列挙要素。 方向によって、グラデーションの始点と終点が決まります。 たとえば、 LinearGradientMode.ForwardDiagonal は、始点が四角形の左上隅であり、終了点が四角形の右下隅であることを指定します。
適用対象
LinearGradientBrush(RectangleF, Color, Color, Single)
四角形、開始色と終了色、および方向角度に基づいて、 LinearGradientBrush クラスの新しいインスタンスを作成します。
public:
LinearGradientBrush(System::Drawing::RectangleF rect, System::Drawing::Color color1, System::Drawing::Color color2, float angle);
public LinearGradientBrush(System.Drawing.RectangleF rect, System.Drawing.Color color1, System.Drawing.Color color2, float angle);
new System.Drawing.Drawing2D.LinearGradientBrush : System.Drawing.RectangleF * System.Drawing.Color * System.Drawing.Color * single -> System.Drawing.Drawing2D.LinearGradientBrush
Public Sub New (rect As RectangleF, color1 As Color, color2 As Color, angle As Single)
パラメーター
- rect
- RectangleF
線形グラデーションの境界を指定する RectangleF 構造体。
- angle
- Single
グラデーションの向き線の角度を、x 軸から時計回りに度単位で測定します。
注釈
方向線に対して垂直な線に沿った点はすべて同じ色になります。
開始線は方向線に対して垂直であり、四角形の角の 1 つを通過します。 開始線上のすべてのポイントが開始色です。 次に、終了線は方向線に対して垂直であり、四角形の角の 1 つを通過します。 終了線上のすべてのポイントは終了色です。
方向線の角度によって、開始線と終了線が通過する角が決まります。 たとえば、角度が 0 ~ 90 度の場合、開始線は左上隅を通過し、終了線は右下隅を通過します。
適用対象
LinearGradientBrush(Rectangle, Color, Color, Single, Boolean)
四角形、開始色と終了色、および方向角度に基づいて、 LinearGradientBrush クラスの新しいインスタンスを作成します。
public:
LinearGradientBrush(System::Drawing::Rectangle rect, System::Drawing::Color color1, System::Drawing::Color color2, float angle, bool isAngleScaleable);
public LinearGradientBrush(System.Drawing.Rectangle rect, System.Drawing.Color color1, System.Drawing.Color color2, float angle, bool isAngleScaleable);
new System.Drawing.Drawing2D.LinearGradientBrush : System.Drawing.Rectangle * System.Drawing.Color * System.Drawing.Color * single * bool -> System.Drawing.Drawing2D.LinearGradientBrush
Public Sub New (rect As Rectangle, color1 As Color, color2 As Color, angle As Single, isAngleScaleable As Boolean)
パラメーター
- angle
- Single
グラデーションの向き線の角度を、x 軸から時計回りに度単位で測定します。
- isAngleScaleable
- Boolean
このtrueに関連付けられた変換によって角度が影響を受けるかどうかを指定するには、LinearGradientBrushに設定します。それ以外の場合はfalse。
注釈
方向線に対して垂直な線に沿った点はすべて同じ色になります。
開始線は方向線に対して垂直であり、四角形の角の 1 つを通過します。 開始線上のすべてのポイントが開始色です。 次に、終了線は方向線に対して垂直であり、四角形の角の 1 つを通過します。 終了線上のすべてのポイントは終了色です。
方向線の角度によって、開始線と終了線が通過する角が決まります。 たとえば、角度が 0 ~ 90 度の場合、開始線は左上隅を通過し、終了線は右下隅を通過します。
適用対象
LinearGradientBrush(RectangleF, Color, Color, Single, Boolean)
四角形、開始色と終了色、および方向角度に基づいて、 LinearGradientBrush クラスの新しいインスタンスを作成します。
public:
LinearGradientBrush(System::Drawing::RectangleF rect, System::Drawing::Color color1, System::Drawing::Color color2, float angle, bool isAngleScaleable);
public LinearGradientBrush(System.Drawing.RectangleF rect, System.Drawing.Color color1, System.Drawing.Color color2, float angle, bool isAngleScaleable);
new System.Drawing.Drawing2D.LinearGradientBrush : System.Drawing.RectangleF * System.Drawing.Color * System.Drawing.Color * single * bool -> System.Drawing.Drawing2D.LinearGradientBrush
Public Sub New (rect As RectangleF, color1 As Color, color2 As Color, angle As Single, isAngleScaleable As Boolean)
パラメーター
- rect
- RectangleF
線形グラデーションの境界を指定する RectangleF 構造体。
- angle
- Single
グラデーションの向き線の角度を、x 軸から時計回りに度単位で測定します。
- isAngleScaleable
- Boolean
このtrueに関連付けられた変換によって角度が影響を受けるかどうかを指定するには、LinearGradientBrushに設定します。それ以外の場合はfalse。
注釈
方向線に対して垂直な線に沿った点はすべて同じ色になります。
開始線は方向線に対して垂直であり、四角形の角の 1 つを通過します。 開始線上のすべてのポイントが開始色です。 次に、終了線は方向線に対して垂直であり、四角形の角の 1 つを通過します。 終了線上のすべてのポイントは終了色です。
方向線の角度によって、開始線と終了線が通過する角が決まります。 たとえば、角度が 0 ~ 90 度の場合、開始線は左上隅を通過し、終了線は右下隅を通過します。