Skip to content

MidHandle

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

Blitz3DBlitzPlusBlitzBasic

MidHandle

MidHandle:Void image:Int32
Parameter Mode Type Default Description
image In Int32 required The image.

Description

Puts the handle of an image in its middle. Images drawn at a position then appear centered on it, and rotate and scale around their middle.

Examples

Graphics 320, 240, 0, 2
SetBuffer BackBuffer()
Local img = CreateImage(40, 40)
SetBuffer ImageBuffer(img)
Color 255, 160, 0
Rect 0, 0, 40, 40, 1
SetBuffer BackBuffer()
MidHandle img
Cls
DrawImage img, MouseX(), MouseY()
Print ImageXHandle(img) + ", " + ImageYHandle(img)
Flip
WaitKey

Related Commands

AutoMidHandle, HandleImage, ImageXHandle, ImageYHandle

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally