Gdi::DibByteWidth (Windows CE 5.0)
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 intN,unsigned intW);
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.
See Also
Send Feedback on this topic to the authors