Share via


Gdi::DibSize

This method retrieves the size, in bytes, of the image. This value can be zero for BI_RGB bitmaps.

static unsigned int DibSize(
  unsigned int N,
  unsigned int W,
  int H
);

Parameters

  • N
    [in] Unsigned integer that specifies the number of bits required to indicate the color of a pixel.
  • W
    [in] Unsigned integer that specifies the width, in pixels, of the bitmap. The width must be greater than zero.
  • H
    [in] Integer that specifies the height, in pixels, of the bitmap. The height must be greater than zero.

Return Values

The return value is the size, in bytes, of the image.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Gdi.hpp.

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.