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

Image::GetPalette メソッドは、この Image オブジェクトの ColorPalette取得します。

構文

Status GetPalette(
  [out] ColorPalette *palette,
  [in]  INT          size
);

パラメーター

[out] palette

種類: ColorPalette*

パレットを受け取る ColorPalette 構造体へのポインター。

[in] size

型: INT

パレットのサイズをバイト単位で指定する整数。 Image::GetPaletteSize メソッドを呼び出してサイズを確認します。

戻り値

種類: 状態

メソッドが成功した場合は、 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

Image::GetPaletteSize

Image::SetPalette

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

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