Partager via


Gdi::DibByteWidth

This method retrieves the number of bytes in each scan line. This value must be divisible by 2, because the OS assumes that the bit values of a bitmap form an array that is word aligned.

static unsigned int DibByteWidth(
  unsigned int N,
  unsigned int W
);

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. This value must be greater than zero.

Return Values

The return value is the number of bytes in each scan line.

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.