GetBufferWidth

Top  Previous  Next

Syntax

INT = GetBufferWidth(buffer as POINTER)

Description

Returns the width of the buffer in pixels.

Parameters

buffer - Can be one of FrontBuffer, BackBuffer or SpriteBuffer

Return value

The width of the buffer in pixels.

Remarks

This is not the buffers true width, or pitch, but the width specified when creating the buffer.

See Also: GetBufferPitch, GetBufferHeight

Example usage

width = GetBufferWidth(SpriteBuffer)