Skip to content

SetPanelImage

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
BlitzPlus

SetPanelImage

SetPanelImage:Void panel:Int32, file:String
Parameter Mode Type Default Description
panel In Int32 required Handle of a panel.
file In String required Name of a picture file.

Description

Shows a picture from a file in a panel. If the panel is bigger than the picture it is repeated like tiles.

Examples

Graphics 320, 240, 32, 2
tile = CreateImage(16, 16)
SetBuffer ImageBuffer(tile)
Color 40, 90, 160
Rect 0, 0, 16, 16, 1
Color 255, 255, 255
Oval 4, 4, 8, 8, 1
SaveImage tile, "tile.bmp"
SetBuffer BackBuffer()
win = CreateWindow("Tiles", 10, 10, 300, 140, Desktop(), 3)
p   = CreatePanel(10, 10, 200, 90, win)
SetPanelImage p, "tile.bmp"
Repeat
Until WaitEvent() = $803

Media

SetPanelImage

Related Commands

SetButtonState, SetGadgetFont, SetGadgetLayout, SetGadgetShape, SetGadgetText, SetPanelColor, SetSliderRange, SetSliderValue

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally