LinearGradientBrush 생성자

정의

지정된 점과 색을 사용하여 클래스의 LinearGradientBrush 새 인스턴스를 초기화합니다.

오버로드

Name Description
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)

매개 변수

point1
Point

Point 선형 그라데이션의 시작점을 나타내는 구조체입니다.

point2
Point

Point 선형 그라데이션의 엔드포인트를 나타내는 구조체입니다.

color1
Color

Color 선형 그라데이션의 시작 색을 나타내는 구조체입니다.

color2
Color

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)

매개 변수

point1
PointF

PointF 선형 그라데이션의 시작점을 나타내는 구조체입니다.

point2
PointF

PointF 선형 그라데이션의 엔드포인트를 나타내는 구조체입니다.

color1
Color

Color 선형 그라데이션의 시작 색을 나타내는 구조체입니다.

color2
Color

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)

매개 변수

rect
Rectangle

Rectangle 선형 그라데이션의 범위를 지정하는 구조체입니다.

color1
Color

Color 그라데이션의 시작 색을 나타내는 구조체입니다.

color2
Color

Color 그라데이션의 끝 색을 나타내는 구조체입니다.

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)

매개 변수

rect
Rectangle

Rectangle 선형 그라데이션의 범위를 지정하는 구조체입니다.

color1
Color

Color 그라데이션의 시작 색을 나타내는 구조체입니다.

color2
Color

Color 그라데이션의 끝 색을 나타내는 구조체입니다.

angle
Single

그라데이션 방향 선의 x축에서 시계 방향으로 측정된 각도입니다.

설명

방향 선에 수직인 모든 선의 모든 점이 동일한 색입니다.

시작 선은 방향 선과 수직이며 사각형의 모서리 중 하나를 통과합니다. 시작 줄의 모든 점이 시작 색입니다. 그런 다음 끝 선은 방향 선에 수직이며 사각형의 모서리 중 하나를 통과합니다. 끝 선의 모든 점이 끝 색입니다.

방향 선의 각도에 따라 시작 및 끝 선이 통과하는 모서리가 결정됩니다. 예를 들어 각도가 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 선형 그라데이션의 범위를 지정하는 구조체입니다.

color1
Color

Color 그라데이션의 시작 색을 나타내는 구조체입니다.

color2
Color

Color 그라데이션의 끝 색을 나타내는 구조체입니다.

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 선형 그라데이션의 범위를 지정하는 구조체입니다.

color1
Color

Color 그라데이션의 시작 색을 나타내는 구조체입니다.

color2
Color

Color 그라데이션의 끝 색을 나타내는 구조체입니다.

angle
Single

그라데이션 방향 선의 x축에서 시계 방향으로 측정된 각도입니다.

설명

방향 선에 수직인 모든 선의 모든 점이 동일한 색입니다.

시작 선은 방향 선과 수직이며 사각형의 모서리 중 하나를 통과합니다. 시작 줄의 모든 점이 시작 색입니다. 그런 다음 끝 선은 방향 선에 수직이며 사각형의 모서리 중 하나를 통과합니다. 끝 선의 모든 점이 끝 색입니다.

방향 선의 각도에 따라 시작 및 끝 선이 통과하는 모서리가 결정됩니다. 예를 들어 각도가 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)

매개 변수

rect
Rectangle

Rectangle 선형 그라데이션의 범위를 지정하는 구조체입니다.

color1
Color

Color 그라데이션의 시작 색을 나타내는 구조체입니다.

color2
Color

Color 그라데이션의 끝 색을 나타내는 구조체입니다.

angle
Single

그라데이션 방향 선의 x축에서 시계 방향으로 측정된 각도입니다.

isAngleScaleable
Boolean

true 각도가 이와 LinearGradientBrush연결된 변환의 영향을 받도록 설정됩니다. 그렇지 않으면 false.

설명

방향 선에 수직인 모든 선의 모든 점이 동일한 색입니다.

시작 선은 방향 선과 수직이며 사각형의 모서리 중 하나를 통과합니다. 시작 줄의 모든 점이 시작 색입니다. 그런 다음 끝 선은 방향 선에 수직이며 사각형의 모서리 중 하나를 통과합니다. 끝 선의 모든 점이 끝 색입니다.

방향 선의 각도에 따라 시작 및 끝 선이 통과하는 모서리가 결정됩니다. 예를 들어 각도가 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 선형 그라데이션의 범위를 지정하는 구조체입니다.

color1
Color

Color 그라데이션의 시작 색을 나타내는 구조체입니다.

color2
Color

Color 그라데이션의 끝 색을 나타내는 구조체입니다.

angle
Single

그라데이션 방향 선의 x축에서 시계 방향으로 측정된 각도입니다.

isAngleScaleable
Boolean

true 각도가 이와 LinearGradientBrush연결된 변환의 영향을 받도록 설정됩니다. 그렇지 않으면 false.

설명

방향 선에 수직인 모든 선의 모든 점이 동일한 색입니다.

시작 선은 방향 선과 수직이며 사각형의 모서리 중 하나를 통과합니다. 시작 줄의 모든 점이 시작 색입니다. 그런 다음 끝 선은 방향 선에 수직이며 사각형의 모서리 중 하나를 통과합니다. 끝 선의 모든 점이 끝 색입니다.

방향 선의 각도에 따라 시작 및 끝 선이 통과하는 모서리가 결정됩니다. 예를 들어 각도가 0도에서 90도 사이이면 시작 선이 왼쪽 위 모서리를 통과하고 끝 선이 오른쪽 아래 모서리를 통과합니다.

적용 대상