Skip to content

ImageRectOverlap

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

Blitz3DBlitzPlusBlitzBasic

ImageRectOverlap

ImageRectOverlap:Int32 image:Int32, x:Int32, y:Int32, rect_x:Int32, rect_y:Int32, rect_width:Int32, rect_height:Int32
Parameter Mode Type Default Description
image In Int32 required The image.
x In Int32 required Horizontal position where the image is drawn.
y In Int32 required Vertical position where the image is drawn.
rect_x In Int32 required Left edge of the rectangle.
rect_y In Int32 required Top edge of the rectangle.
rect_width In Int32 required Width of the rectangle.
rect_height In Int32 required Height of the rectangle.

Returns: 1 if the rectangle touches the box of the image, otherwise 0.

Description

Tells whether a rectangle touches the box of an image at a position. Transparent pixels count, so this is the quick first check before the exact ImageRectCollide.

Related Commands

ImageBuffer, ImageFrameDelay, ImageFrames, ImageHeight, ImageReady 〔BlitzLLVM〕, ImageRectCollide, ImagesOverlap, ImageWidth

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally