Name
DisplayBrushPart -- display a part of a brush
Synopsis
DisplayBrushPart(id, srcx, srcy, destx, desty, width, height[, table])
Function
This function displays a tile of the brush specified by id on the screen. The tile is defined by srcx and srcy and its width and height and it is displayed on the display at the position specified by destx and desty.

If layers are enabled, this command will add a new layer of the type #BRUSHPART to the layer stack.

New in Hollywood 4.0: This command has an optional table argument now which allows you to specify one or more of the standard tags for all drawing commands. See Standard drawing tags for more information about the standard tags that nearly all Hollywood drawing commands support.

Inputs
id
identifier of the brush to use as source
srcx
left corner in the brush
srcy
top corner in the brush
destx
desired x position for the brush on the screen
desty
desired y position for the brush on the screen
width
width of the tile
height
height of the tile
table
optional: table specifying further options (V4.0)
Example
DisplayBrushPart(1,0,0,50,50,100,100)
Display the first 100 pixels and rows from brush 2 on the screen at the position 50,50.

Show TOC