次の方法で共有


LinearGradientBrush.SetBlendTriangularShape メソッド (Single)

中心の色、および両端の単色への線形の減色が設定されている線形グラデーションを作成します。

Overloads Public Sub SetBlendTriangularShape( _
   ByVal focus As Single _)
[C#]
public void SetBlendTriangularShape(floatfocus);
[C++]
public: void SetBlendTriangularShape(floatfocus);
[JScript]
public function SetBlendTriangularShape(
   focus : float);

パラメータ

  • focus
    グラデーションの中心 (グラデーションの終了色だけで構成される点) を指定する 0 ~ 1 の値。

解説

このメソッドは、グラデーションの中で終了色だけで構成されている点である focus を指定します。 focus パラメータは、グラデーション線に沿った距離の比率として位置を表します。線形に両端で開始色に戻るグラデーションになります。

使用例

例については、 LinearGradientBrush.SetBlendTriangularShape Method (Single, Single) のトピックを参照してください。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

LinearGradientBrush クラス | LinearGradientBrush メンバ | System.Drawing.Drawing2D 名前空間 | LinearGradientBrush.SetBlendTriangularShape オーバーロードの一覧