Share via


IImageSink::SetPalette

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method is used by an image source to pass color palette information to the image sink.

You must call this method before image data transfer takes place.

Syntax

HRESULT SetPalette(
  const ColorPalette* palette
);

Parameters

  • palette
    [in] A pointer to a ColorPalette structure containing the color palette information about the image that will be sent to the image sink.

Return Value

If successful, this method returns S_OK.

This method may return E_NOTIMPL if it fails.

Requirements

Header imaging.h
Library Imaging.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IImageSink
ColorPalette
IImageSink::BeginSink
IImageSink::GetPixelDataBuffer
IImageSink::PushPixelData
IImageSink::PushRawData