Skip to content

DesktopBuffer

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

DesktopBuffer

Command Syntax

DesktopBuffer:Int32

Parameters

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


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally