Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
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 ColorPalettestructure 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