GET PIXELS PITCH This command in combination with LOCK PIXELS will return the pitch in bytes of the visual surface you have locked.
Syntax
    Return Integer=GET PIXELS PITCH()
Returns
The value returned is the number of bytes required to advance the screen address pointer to the next line down
Description
A pitch is the number of bytes you must skip to get to the next physical line of pixels in a visual surface.
Example Code
    LOCK PIXELS

    pitch=GET PIXELS PITCH()

    UNLOCK PIXELS

    PRINT pitch

    WAIT KEY
See also
BASIC2D Commands Menu Index