Gdi::DibByteWidth (Windows Embedded CE 6.0)
1/6/2010
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.
Syntax
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 Value
The return value is the number of bytes in each scan line.
Requirements
Header | gdi.hpp |
Windows Embedded CE | Windows CE .NET 4.0 and later |