IImagingFactory::CreateNewBitmap (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This method creates an in-memory bitmap image object.

HRESULT CreateNewBitmap(
  UINT           width,
  UINT           height,
  PixelFormatID  pixelFormat,
  IBitmapImage** bitmap


[in] A UINT value specifying the width of the bitmap in pixels.
[in] A UINT value specifying the height of the bitmap in pixels.
[in] A PixelFormatID value identifying the numerical data format of the pixels in the new bitmap. The following table shows the PixelFormat Values this parameter supports.
PixelFormat1bppIndexed1 bit-per-pixel indexed color bitmap
PixelFormat4bppIndexed4bpp indexed color
PixelFormat8bppIndexed8bpp indexed color
PixelFormat16bppGrayScale16bpp grayscale
PixelFormat16bppRGB55516bpp RGB 5-5-5 (blue in low-order bits)
PixelFormat16bppRGB56516bpp RGB 5-6-5
PixelFormat16bppARGB155516bpp ARGB 1-5-5-5
PixelFormat24bppRGB24bpp RGB (blue in low-order byte)
PixelFormat32bppRGB32bpp RGB (high order byte unused)
PixelFormat32bppARGB32bpp ARGB, non-premultiplied alpha
PixelFormat32bppPARGB32bpp ARGB, premultiplied alpha
PixelFormat48bppRGB48bpp RGB
PixelFormat64bppARGB64bpp ARGB, non-premultiplied alpha
PixelFormat64bppPARGB64bpp ARGB, premultiplied alpha
[out] A pointer to the resulting IBitmapImage interface pointer.

Return Values

If successful, this method returns S_OK.

This method may return E_POINTER if it fails.


OS Versions: Windows CE 5.0 and later.
Header: Imaging.h.
Link Library: Imaging.

See Also

IImagingFactory |

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.