Syntax
INT is_GetImageMemPitch (HIDS hf, INT* pPitch)
Description
is_GetImageMemPitch() returns the line increment in bytes. The line increment is the number of bytes from the beginning of a line to the beginning of the next line. If required, the line increment can be larger that the returned parameters from is_AllocImageMem(). The line increment is always a multiple of 4.
The line increment is calculated as follows:
•line = width * [(bitspixel + 1) / 8]
•lineinc = line + adjust
•adjust = 0 when line without remainder is divisible by 4
•adjust = 4 - rest(line/4) when line with remainder is divisible by 4
Parameters
hf |
Frame grabber handle |
pPitch |
Pointer to variable, which contains line increment |
Return value
IS_SUCCESS, IS_NO_SUCCESS