Skip to content

GraphicsBuffer

Claude edited this page Oct 27, 2026 · 4 revisions

Blitz3DBlitzPlusBlitzBasic

GraphicsBuffer

GraphicsBuffer:Int32

Returns: The handle of the current buffer.

Description

Returns the buffer that drawing commands currently draw to, which is the one that the last SetBuffer chose. Use it to remember the target and go back to it later.

Examples

Graphics 320, 240, 0, 2
SetBuffer BackBuffer()
Local img = CreateImage(32, 32)
Local old = GraphicsBuffer()
SetBuffer ImageBuffer(img)
Color 255, 255, 0
Rect 0, 0, 32, 32, 1
SetBuffer old
Cls
DrawImage img, 100, 100
Flip
WaitKey

Related Commands

BackBuffer, BufferDirty, FrontBuffer, LoadBuffer, LockBuffer, SaveBuffer, SetBuffer, UnlockBuffer

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally