Class PathGradientBrush
Namespace: Aspose.Imaging.Brushes
Assembly: Aspose.Imaging.dll (25.2.0)
그라데이션이 있는 Aspose.Imaging.Brush 객체를 캡슐화합니다. 이 클래스는 상속될 수 없습니다.
[JsonObject(MemberSerialization.OptIn)]
public sealed class PathGradientBrush : PathGradientBrushBase, IDisposable
상속
object ← DisposableObject ← Brush ← TransformBrush ← PathGradientBrushBase ← PathGradientBrush
구현
상속된 멤버
PathGradientBrushBase.PathPoints, PathGradientBrushBase.GraphicsPath, PathGradientBrushBase.CenterPoint, PathGradientBrushBase.FocusScales, TransformBrush.ResetTransform(), TransformBrush.MultiplyTransform(Matrix), TransformBrush.MultiplyTransform(Matrix, MatrixOrder), TransformBrush.TranslateTransform(float, float), TransformBrush.TranslateTransform(float, float, MatrixOrder), TransformBrush.ScaleTransform(float, float), TransformBrush.ScaleTransform(float, float, MatrixOrder), TransformBrush.RotateTransform(float), TransformBrush.RotateTransform(float, MatrixOrder), TransformBrush.WrapMode, TransformBrush.Transform, TransformBrush.IsTransformChanged, Brush.DeepClone(), Brush.Equals(object), Brush.GetHashCode(), Brush.Opacity, DisposableObject.Dispose(), DisposableObject.Disposed, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
비고
중앙 색상은 기본적으로 흰색입니다. 사용자는 이 값을 나중에 언제든지 변경할 수 있습니다.
주변 색상 배열은 기본적으로 흰색 색상을 포함하는 단일 요소로 초기화됩니다. 주변 색상은 나중에 변경할 수 있지만 주변 색상을 설정할 때는 최소한 하나의 요소가 필요합니다.
초기화에 대한 자세한 내용은 Aspose.Imaging.Brushes.PathGradientBrush.Blend를 참조하십시오.
생성자
PathGradientBrush(PointF[])
지정된 점으로 Aspose.Imaging.Brushes.PathGradientBrush 클래스의 새 인스턴스를 초기화합니다.
public PathGradientBrush(PointF[] pathPoints)
매개변수
pathPoints
PointF[]
경로의 정점을 구성하는 Aspose.Imaging.PointF 구조체의 배열입니다.
PathGradientBrush(PointF[], WrapMode)
지정된 점과 래핑 모드로 Aspose.Imaging.Brushes.PathGradientBrush 클래스의 새 인스턴스를 초기화합니다.
public PathGradientBrush(PointF[] pathPoints, WrapMode wrapMode)
매개변수
pathPoints
PointF[]
경로의 정점을 구성하는 Aspose.Imaging.PointF 구조체의 배열입니다.
wrapMode
WrapMode
이 Aspose.Imaging.Brushes.PathGradientBrush로 그려진 채우기가 타일링되는 방식을 지정하는 Aspose.Imaging.WrapMode입니다.
PathGradientBrush(Point[])
지정된 점으로 Aspose.Imaging.Brushes.PathGradientBrush 클래스의 새 인스턴스를 초기화합니다.
public PathGradientBrush(Point[] pathPoints)
매개변수
pathPoints
Point[]
경로의 정점을 구성하는 Aspose.Imaging.Point 구조체의 배열입니다.
PathGradientBrush(Point[], WrapMode)
지정된 점과 래핑 모드로 Aspose.Imaging.Brushes.PathGradientBrush 클래스의 새 인스턴스를 초기화합니다.
public PathGradientBrush(Point[] pathPoints, WrapMode wrapMode)
매개변수
pathPoints
Point[]
경로의 정점을 구성하는 Aspose.Imaging.Point 구조체의 배열입니다.
wrapMode
WrapMode
이 Aspose.Imaging.Brushes.PathGradientBrush로 그려진 채우기가 타일링되는 방식을 지정하는 Aspose.Imaging.WrapMode입니다.
PathGradientBrush(GraphicsPath)
지정된 경로로 Aspose.Imaging.Brushes.PathGradientBrush 클래스의 새 인스턴스를 초기화합니다.
public PathGradientBrush(GraphicsPath path)
매개변수
path
GraphicsPath
이 Aspose.Imaging.Brushes.PathGradientBrush로 채워진 영역을 정의하는 Aspose.Imaging.GraphicsPath입니다.
속성
Blend
그라데이션의 사용자 정의 감쇠를 정의하는 위치 및 계수를 지정하는 Aspose.Imaging.Blend를 가져오거나 설정합니다.
public Blend Blend { get; set; }
속성 값
CenterColor
경로 그라데이션의 중앙 색상을 가져오거나 설정합니다.
public Color CenterColor { get; set; }
속성 값
InterpolationColors
다중 색 선형 그라데이션을 정의하는 Aspose.Imaging.ColorBlend를 가져오거나 설정합니다.
[Obsolete("이 속성은 더 이상 이 클래스에서 사용되지 않습니다. 대신 PathMulticolorGradientBrush 클래스를 사용하십시오.")]
[JsonIgnore]
public ColorBlend InterpolationColors { get; set; }
속성 값
SurroundColors
이 Aspose.Imaging.Brushes.PathGradientBrush가 채우는 경로의 점에 해당하는 색상 배열을 가져오거나 설정합니다.
public Color[] SurroundColors { get; set; }
속성 값
Color[]
메서드
SetBlendTriangularShape(float)
중앙 색상과 하나의 주변 색상으로 선형 감쇠가 있는 그라데이션을 생성합니다.
public void SetBlendTriangularShape(float focus)
매개변수
focus
float
경로의 중앙에서 경로의 경계까지의 임의의 방사선에서 중앙 색상이 가장 높은 강도로 위치할 곳을 지정하는 0에서 1까지의 값입니다. 1(기본값)의 값은 경로의 중앙에 가장 높은 강도를 배치합니다.
SetBlendTriangularShape(float, float)
중앙 색상과 각 주변 색상으로 선형 감쇠가 있는 그라데이션을 생성합니다.
public void SetBlendTriangularShape(float focus, float scale)
매개변수
focus
float
경로의 중앙에서 경로의 경계까지의 임의의 방사선에서 중앙 색상이 가장 높은 강도로 위치할 곳을 지정하는 0에서 1까지의 값입니다. 1(기본값)의 값은 경로의 중앙에 가장 높은 강도를 배치합니다.
scale
float
경로의 경계 색상과 혼합되는 중앙 색상의 최대 강도를 지정하는 0에서 1까지의 값입니다. 1의 값은 중앙 색상의 가능한 가장 높은 강도를 발생시키며, 이는 기본값입니다.
SetSigmaBellShape(float)
경로의 중앙에서 바깥쪽으로 경로의 경계까지 색상이 변경되는 그라데이션 브러시를 생성합니다. 한 색상에서 다른 색상으로의 전환은 종 모양의 곡선을 기반으로 합니다.
public void SetSigmaBellShape(float focus)
매개변수
focus
float
경로의 중앙에서 경로의 경계까지의 임의의 방사선에서 중앙 색상이 가장 높은 강도로 위치할 곳을 지정하는 0에서 1까지의 값입니다. 1(기본값)의 값은 경로의 중앙에 가장 높은 강도를 배치합니다.
SetSigmaBellShape(float, float)
경로의 중앙에서 바깥쪽으로 경로의 경계까지 색상이 변경되는 그라데이션 브러시를 생성합니다. 한 색상에서 다른 색상으로의 전환은 종 모양의 곡선을 기반으로 합니다.
public void SetSigmaBellShape(float focus, float scale)
매개변수
focus
float
경로의 중앙에서 경로의 경계까지의 임의의 방사선에서 중앙 색상이 가장 높은 강도로 위치할 곳을 지정하는 0에서 1까지의 값입니다. 1(기본값)의 값은 경로의 중앙에 가장 높은 강도를 배치합니다.
scale
float
경로의 경계 색상과 혼합되는 중앙 색상의 최대 강도를 지정하는 0에서 1까지의 값입니다. 1의 값은 중앙 색상의 가능한 가장 높은 강도를 발생시키며, 이는 기본값입니다.