LockedFormat( [buffer] )

Parameters

buffer - A locked graphics buffer handle

Description

Returns the pixel format of a locked graphics buffer.

The return value can be one of the following:

1 - 16 bit RGB format with 5 bits red, 6 bits green and 5 bits blue.
2 - 16 bit RGB format with 5 bits red, 5 bits green and 5 bits blue. The high bit is unused.
3 - 24 bit RGB format.
4 - 32 bit RGB format. The high byte is unused.

See also: LockedPitch, LockedPixels, LockBuffer, UnlockBuffer.

Index

Click here to view the latest version of this page online