Class PathGradientBrush

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

継承

objectDisposableObjectBrushTransformBrushPathGradientBrushBasePathGradientBrush

実装

IDisposable

継承されたメンバー

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()

注意事項

中心の色はデフォルトで白です。ユーザーはこの値を後でいつでも変更できます。

周囲の色の配列は、デフォルトで白色を含む単一の要素で初期化されます。周囲の色は後で変更できますが、周囲の色を設定する際には少なくとも1つの要素が必要です。

その初期化に関する詳細は、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; }

プロパティ値

Blend

CenterColor

パスグラデーションの中心の色を取得または設定します。

public Color CenterColor { get; set; }

プロパティ値

Color

InterpolationColors

マルチカラー線形グラデーションを定義するAspose.Imaging.ColorBlendを取得または設定します。

[Obsolete("このプロパティはこのクラスではもはや使用されません。PathMulticolorGradientBrushクラスを代わりに使用してください。")]
[JsonIgnore]
public ColorBlend InterpolationColors { get; set; }

プロパティ値

ColorBlend

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)

パスの中心から外側に向かって色が変わるグラデーションブラシを作成します。1つの色から別の色への遷移はベル型の曲線に基づいています。

public void SetSigmaBellShape(float focus)

パラメーター

focus float

パスの中心からパスの境界までの任意の放射線に沿って、中心の色が最も高い強度になる位置を指定する0から1の値。1の値(デフォルト)は、パスの中心で最も高い強度を配置します。

SetSigmaBellShape(float, float)

パスの中心から外側に向かって色が変わるグラデーションブラシを作成します。1つの色から別の色への遷移はベル型の曲線に基づいています。

public void SetSigmaBellShape(float focus, float scale)

パラメーター

focus float

パスの中心からパスの境界までの任意の放射線に沿って、中心の色が最も高い強度になる位置を指定する0から1の値。1の値(デフォルト)は、パスの中心で最も高い強度を配置します。

scale float

中心の色が境界の色とブレンドされる最大強度を指定する0から1の値。1の値は中心の色の最大強度を引き起こし、デフォルト値です。

 日本語