次の方法で共有


ImageAttributes 関数

Windows GDI+ は、約 600 個の関数で構成されるフラット API を公開します。これは、Gdiplus.dllに実装され、Gdiplusflat.h で宣言されています。 GDI+ フラット API の関数は、約 40 個の C++ クラスのコレクションによってラップされます。 フラット API で関数を直接呼び出さないでください。 GDI+ を呼び出す場合は常に、C++ ラッパーによって提供されるメソッドと関数を呼び出します。 Microsoft 製品サポート サービスでは、フラット API を直接呼び出すコードのサポートは提供されません。 これらのラッパー メソッドの使用方法の詳細については、「 GDI+ Flat API」を参照してください。

次のフラット API 関数は、 ImageAttributes C++ クラスによってラップされます。

ImageAttributes 関数と対応するラッパー メソッド

フラット関数 ラッパー メソッド 解説
GpStatus WINGDIPAPI GdipCreateImageAttributes(GpImageAttributes **imageattr)
ImageAttributes::ImageAttributes() ImageAttributes オブジェクトを作成します。
GpStatus WINGDIPAPI GdipCloneImageAttributes(GDIPCONST GpImageAttributes *imageattr, GpImageAttributes **cloneImageattr)
ImageAttributes* ImageAttributes::Clone() const この ImageAttributes オブジェクトのコピーを作成します。
GpStatus WINGDIPAPI GdipDisposeImageAttributes(GpImageAttributes *imageattr)
ImageAttributes::~ImageAttributes() ImageAttributes オブジェクトによって使用されるリソースを解放します。
GpStatus WINGDIPAPI GdipSetImageAttributesToIdentity(GpImageAttributes *imageattr, ColorAdjustType 型)
Status ImageAttributes::SetToIdentity( IN ColorAdjustType type = ColorAdjustTypeDefault ) 指定したカテゴリの色調整行列を ID 行列に設定します。
GpStatus WINGDIPAPI GdipResetImageAttributes(GpImageAttributes *imageattr, ColorAdjustType type)
Status ImageAttributes::Reset( IN ColorAdjustType type = ColorAdjustTypeDefault ) 指定したカテゴリの色調整行列を ID 行列に設定します。
GpStatus WINGDIPAPI GdipSetImageAttributesColorMatrix(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, GDIPCONST ColorMatrix* colorMatrix, GDIPCONST ColorMatrix* grayMatrix, ColorMatrixFlags flags)
Status ImageAttributes::SetColorMatrix( IN const ColorMatrix *colorMatrix, IN ColorMatrixFlags mode = ColorMatrixFlagsDefault, IN ColorAdjustType type = ColorAdjustTypeDefault )Status ImageAttributes::ClearColorMatrix(IN ColorAdjustType type = ColorAdjustTypeDefault) 指定したカテゴリのカラー調整行列を設定します。 フラット関数の enableFlag パラメーターは、 パラメーターで指定されたカテゴリに対して個別の色調整を有効にするかどうかを指定するブール値です。 ImageAttributes::SetColorMatrixenableFlagTRUE に設定し、 ImageAttributes::ClearColorMatrixenableFlag を FALSE に設定 します
指定したカテゴリのカラー調整行列を消去します。 grayMatrix パラメーターは、flags パラメーターの値が ColorMatrixFlagsAltGray の場合に灰色の網かけを調整するために使用するマトリックスを指定します。
GpStatus WINGDIPAPI GdipSetImageAttributesThreshold(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, REAL threshold)
Status ImageAttributes::SetThreshold( IN REAL threshold, IN ColorAdjustType type = ColorAdjustTypeDefault )
Status ImageAttributes::ClearThreshold(IN ColorAdjustType type = ColorAdjustTypeDefault)
指定したカテゴリのしきい値 (透明度の範囲) を設定します。
フラット関数の enableFlag パラメーターは、 パラメーターで指定されたカテゴリに対して個別のしきい値を有効にするかどうかを指定するブール値です。 ImageAttributes::SetThresholdenableFlagTRUE に設定し、 ImageAttributes::ClearThresholdenableFlag を FALSE に設定 します。指定したカテゴリのしきい値をクリアします。
GpStatus WINGDIPAPI GdipSetImageAttributesGamma(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, REAL gamma)
Status ImageAttributes::SetGamma(IN REAL gamma, IN ColorAdjustType type = ColorAdjustTypeDefault)
Status ImageAttributes::ClearGamma(IN ColorAdjustType type = ColorAdjustTypeDefault)
指定したカテゴリのガンマ値を設定します。 フラット関数の enableFlag パラメーターは、 パラメーターで指定されたカテゴリに対して個別のガンマを有効にするかどうかを指定するブール値です。 ImageAttributes::SetGammaenableFlagTRUE に設定し、 ImageAttributes::ClearGammaenableFlag を FALSE に設定 します
指定したカテゴリのガンマ補正を無効にします。
GpStatus WINGDIPAPI GdipSetImageAttributesNoOp(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag)
Status ImageAttributes::SetNoOp( IN ColorAdjustType type = ColorAdjustTypeDefault )
Status ImageAttributes::ClearNoOp(IN ColorAdjustType type = ColorAdjustTypeDefault)
指定したカテゴリのカラー調整をオフにします。 ImageAttributes::ClearNoOp メソッドを呼び出して、ImageAttributes::SetNoOp メソッド の呼び出しの前に設定されていた色調整設定を元に戻すことができます。 フラット関数の enableFlag パラメーターは、 パラメーターで指定されたカテゴリに対して色調整を有効にするかどうかを指定するブール値です。 ImageAttributes::SetNoOpenableFlagTRUE に設定し、 ImageAttributes::ClearNoOpenableFlag を FALSE に設定 します
指定したカテゴリの NoOp 設定をクリアします。
GpStatus WINGDIPAPI GdipSetImageAttributesColorKeys(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, ARGB colorLow, ARGB colorHigh)
Status ImageAttributes::SetColorKey( IN const Color& colorLow, IN const Color& colorHigh, IN ColorAdjustType type = ColorAdjustTypeDefault )
Status ImageAttributes::ClearColorKey(IN ColorAdjustType type = ColorAdjustTypeDefault)
指定したカテゴリのカラー キー (透明度の範囲) を設定します。 フラット関数の enableFlag パラメーターは、 パラメーターで指定されたカテゴリに対して個別の透過性範囲を有効にするかどうかを指定するブール値です。 ImageAttributes::SetColorKeyenableFlagTRUE に設定し、 ImageAttributes::ClearColorKeyenableFlag を FALSE に設定 します
指定したカテゴリのカラー キー (透明度の範囲) を消去します。
GpStatus WINGDIPAPI GdipSetImageAttributesOutputChannel(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, ColorChannelFlags channelFlags)
Status ImageAttributes::SetOutputChannel( IN ColorChannelFlags channelFlags, IN ColorAdjustType type = ColorAdjustTypeDefault )
Status ImageAttributes::ClearOutputChannel(IN ColorAdjustType type = ColorAdjustTypeDefault)
指定したカテゴリのシアンマゼンタイエローブラック(CMYK)出力チャネルを設定します。 フラット関数の enableFlag パラメーターは、 パラメーターで指定されたカテゴリに対して個別の出力チャネルを有効にするかどうかを指定するブール値です。 ImageAttributes::SetOutputChannelenableFlagTRUE に設定し、 ImageAttributes::ClearOutputChannelenableFlag を FALSE に設定 します
指定したカテゴリのシアン マゼンタイエローブラック (CMYK) 出力チャネル設定をクリアします。
GpStatus WINGDIPAPI GdipSetImageAttributesOutputChannelColorProfile(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, GDIPCONST WCHAR *colorProfileFilename)
Status ImageAttributes::SetOutputChannelColorProfile( IN const WCHAR *colorProfileFilename, IN ColorAdjustType type = ColorAdjustTypeDefault )
Status ImageAttributes::ClearOutputChannelColorProfile(IN ColorAdjustType type = ColorAdjustTypeDefault)
指定したカテゴリの出力チャネルのカラー プロファイル ファイルを設定します。 フラット関数の enableFlag パラメーターは、 パラメーターで指定されたカテゴリに対して個別の出力チャネルカラー プロファイルを有効にするかどうかを指定するブール値です。 ImageAttributes::SetOutputChannelColorProfileenableFlagTRUE に設定し、 ImageAttributes::ClearOutputChannelColorProfileenableFlag を FALSE に設定 します
指定したカテゴリの出力チャネルのカラー プロファイル設定を消去します。
GpStatus WINGDIPAPI GdipSetImageAttributesRemapTable(GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, UINT mapSize, GDIPCONST ColorMap *map)
Status ImageAttributes::SetRemapTable( IN UINT mapSize, IN const ColorMap *map, IN ColorAdjustType type = ColorAdjustTypeDefault )
Status ImageAttributes::ClearRemapTable(IN ColorAdjustType type = ColorAdjustTypeDefault)
指定したカテゴリのカラー リマップ テーブルを設定します。 フラット関数の enableFlag パラメーターは、 パラメーターで指定されたカテゴリに対して個別のカラー 再マップ テーブルを有効にするかどうかを指定するブール値です。 ImageAttributes::SetRemapTableenableFlagTRUE に設定し、 ImageAttributes::ClearRemapTableenableFlag を FALSE に設定 します
指定したカテゴリのカラー リマップ テーブルを消去します。
GpStatus WINGDIPAPI GdipSetImageAttributesWrapMode(GpImageAttributes *imageAttr, WrapMode wrap, ARGB argb, BOOL clamp )
Status ImageAttributes::SetWrapMode(IN WrapMode wrap, IN const Color& color = Color(), IN BOOL clamp = FALSE)
この ImageAttributes オブジェクトのラップ モードを設定します
GpStatus WINGDIPAPI GdipSetImageAttributesICMMode(GpImageAttributes *imageAttr, BOOL on )
ラッパー メソッドによって呼び出されません。
この関数は、内部状態変数を on パラメーターで指定された値 設定します。 この値が TRUE の場合は、すべての色調整にイメージ カラー管理 (ICM) が使用されます。 値が FALSE の場合、ICM は使用されません。
GpStatus WINGDIPAPI GdipGetImageAttributesAdjustedPalette(GpImageAttributes *imageAttr, ColorPalette * colorPalette, ColorAdjustType colorAdjustType )
Status ImageAttributes::GetAdjustedPalette(IN OUT ColorPalette* colorPalette, IN ColorAdjustType colorAdjustType) const
指定したカテゴリの調整設定に従ってパレットの色を調整します。
GpStatus WINGDIPAPI GdipSetImageAttributesCachedBackground(GpImageAttributes *imageattr, BOOL enableFlag)
ラッパー メソッドによって呼び出されません。
指定した GpImageAttributes オブジェクトの CachedBackground メンバーを設定またはクリアします。 GDI+ は CachedBackground メンバーを使用しないため、この関数を呼び出しても効果はありません。 imageattr パラメーターは、GpImageAttributes オブジェクトを指定します。 enableFlag パラメーターは、CachedBackground メンバーが設定されている (TRUE) かクリア (FALSE) かを指定します。