Skip to content

DesktopBuffer

Claude edited this page Oct 27, 2026 · 5 revisions
BlitzPlus

DesktopBuffer

DesktopBuffer:Int32

Returns: A buffer handle.

Description

Gives the buffer of the desktop. Drawing to it does nothing here, and reading from it gives nothing.

Differences

  • Drawing on, or reading from, the desktop does not work: it is a buffer of one black pixel that starts over every time this is called, so the screen of the computer is never touched and nothing shows behind the windows. The original draws on the Windows desktop with the DirectDraw driver only.

Examples

Graphics 320, 240, 32, 2
win = CreateWindow("In front", 40, 20, 240, 120, Desktop(), 3)
; Safe to call, but nothing is painted on the desktop.
SetBuffer DesktopBuffer()
Color 255, 160, 0
Oval 20, 170, 30, 30, 1
SetBuffer BackBuffer()
Repeat
Until WaitEvent() = $803

Related Commands

CanvasBuffer, CreateCanvas, FlipCanvas, LockedFormat

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally