Skip to content

DrawBlockRect

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

Blitz3DBlitzPlusBlitzBasic

DrawBlockRect

DrawBlockRect:Void image:Int32, x:Int32, y:Int32, rect_x:Int32, rect_y:Int32, rect_width:Int32, rect_height:Int32, frame:Int32=0
Parameter Mode Type Default Description
image In Int32 required The image to draw.
x In Int32 required Horizontal position on the screen of the top left corner of the part.
y In Int32 required Vertical position on the screen of the top left corner of the part.
rect_x In Int32 required Left edge of the part inside the frame.
rect_y In Int32 required Top edge of the part inside the frame.
rect_width In Int32 required Width of the part.
rect_height In Int32 required Height of the part.
frame In Int32 0 Which frame to draw. Defaults to 0.

Description

Draws only a rectangle of a frame, without any transparency. See DrawBlock and DrawImageRect. The handle of the image is not used: the top left corner of the rectangle goes to the given position.

Differences

  • Only the part that lies inside the frame is drawn. A rectangle that reaches over the edge is cut off.

Related Commands

DrawBlock, DrawImage, DrawImageRect, ImageRectCollide, ImageRectOverlap, TileBlock

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally