Partager via


IBitmapImage::GetPixelFormatID

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method returns the pixel format of the bitmap image object.

Syntax

HRESULT GetPixelFormatID(
  PixelFormatID* pixelFormat
);

Parameters

  • pixelFormat
    [out] A pointer to a PixelFormatID value describing the pixel format of the bitmap image.

    The dereferenced value of the pointer is one of the PixelFormat Values.

Return Value

This method returns S_OK.

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

IBitmapImage
PixelFormatID
PixelFormat Values