次の方法で共有


ImageAttributes.SetColorMatrices メソッド (ColorMatrix, ColorMatrix, ColorMatrixFlag)

既定のカテゴリのカラー調整行列とグレースケール調整行列を設定します。

Overloads Public Sub SetColorMatrices( _
   ByVal newColorMatrix As ColorMatrix, _   ByVal grayMatrix As ColorMatrix, _   ByVal flags As ColorMatrixFlag _)
[C#]
public void SetColorMatrices(ColorMatrixnewColorMatrix,ColorMatrixgrayMatrix,ColorMatrixFlagflags);
[C++]
public: void SetColorMatrices(ColorMatrix* newColorMatrix,ColorMatrix* grayMatrix,ColorMatrixFlagflags);
[JScript]
public function SetColorMatrices(
   newColorMatrix : ColorMatrix,grayMatrix : ColorMatrix,flags : ColorMatrixFlag);

パラメータ

  • newColorMatrix
    カラー調整行列。
  • grayMatrix
    グレースケール調整行列。
  • flags
    カラー調整行列とグレースケール調整行列の影響を受けるイメージと色の種類を指定する ColorMatrixFlag 列挙体の要素。

戻り値

このメソッドは値を返しません。

解説

ImageAttributes オブジェクトは、5 つの調整カテゴリ (既定、ビットマップ、ブラシ、ペン、テキスト) に関して色とグレースケールの設定を保持します。たとえば、既定のカテゴリに対してある調整行列を指定し、ビットマップ カテゴリには別の調整行列を指定し、さらにペン カテゴリにも異なる調整行列を指定できます。

既定のカラー調整設定値およびグレースケール調整設定値は、調整設定値が設定されていないすべてのカテゴリに対して適用されます。たとえば、ペン カテゴリの調整設定を一切指定していない場合、ペン カテゴリには既定の設定が適用されます。

必要条件

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

参照

ImageAttributes クラス | ImageAttributes メンバ | System.Drawing.Imaging 名前空間 | ImageAttributes.SetColorMatrices オーバーロードの一覧