GetBufferPointer |
Top Previous Next |
Syntax POINTER = GetBufferPointer(opt buffer as POINTER) Description Returns the beginning memory address of a screen buffer. Parameters buffer - Optional. Can be either BACKBUFFER (default) or FRONTBUFFER Return value The address of the first pixel in a screen buffer Remarks Used for direct memory access of a screen buffer. The buffer must be locked first with the LockBuffer command and unlocked with the UnlockBuffer command after access is completed. You must be sure never to write outside the confines of the buffer. The return value is actually a UINT. To use with a POINTER a variable must be defined first. See Also: LockBuffer, UnlockBuffer, GetBufferPitch Example usage DEF buffer as POINTER |