Image::SetPalette メソッド (gdiplusheaders.h)

Image::SetPalette メソッドは、この Image オブジェクトのカラー パレット設定します。

構文

Status SetPalette(
  [in] const ColorPalette *palette
);

パラメーター

[in] palette

種類: const ColorPalette*

パレットを指定する ColorPalette 構造体へのポインター。

戻り値

種類: 状態

メソッドが成功した場合は、 Status 列挙体の要素である Ok を返します。

メソッドが失敗した場合は、 Status 列挙体の他の要素のいずれかを返します。

要件

   
サポートされている最小のクライアント Windows XP、Windows 2000 Professional [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows 2000 Server [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー gdiplusheaders.h (Gdiplus.h を含む)
Library Gdiplus.lib
[DLL] Gdiplus.dll

関連項目

Bitmap

Color

ColorPalette

イメージ

Image::GetPalette

Image::GetPaletteSize

イメージ、ビットマップ、メタファイル

イメージ、ビットマップ、メタファイルの使用