IWICPalette_InitializeFromBitmap_Proxy function

Proxy function for the InitializeFromBitmap method.

Syntax


HRESULT IWICPalette_InitializeFromBitmap_Proxy(
  _In_ IWICPalette      *THIS_PTR,
  _In_ IWICBitmapSource *pISurface,
  _In_ UINT             colorCount,
  _In_ BOOL             fAddTransparentColor
);

Parameters

THIS_PTR [in]

Type: IWICPalette*

Pointer to this IWICPalette object.

pISurface [in]

Type: IWICBitmapSource*

Pointer to the source bitmap.

colorCount [in]

Type: UINT

The number of colors to initialize the palette with.

fAddTransparentColor [in]

Type: BOOL

A value to indicate whether to add a transparent color.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Requirements

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

DLL

Windowscodecs.dll;
Wincodec.lib

 

 

Show: