# lcd.drawLineWithClipping(x1, y1, x2, y2, xmin, xmax, ymin, ymax, pattern \[, flags])

Draw a line only inside a rectangle

@status current Introduced in 2.4.0

## Parameters

* `x1,y1,x2,y1` (positive numbers) coordinates of the start and end of the unclipped line
* `xmin,xmax,ymin,ymax` (positive numbers) the limits of the rectangle inside which the line is drawn
* `pattern` (FORCE, ERASE, DOTTED) please see [Lcd functions overview](https://github.com/EdgeTX/lua-reference-guide/tree/2c4596e02006c8ac7d351fcd785fdfc7a93ce548/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/lcd_functions-overview.html)
* `flags` (optional) please see [flags](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/constants/flags-and-pattern-constants) and [color](https://luadoc.edgetx.org/edgetx-2.6/part_iii_-_opentx_lua_api_reference/constants/color-constants) constants

## Return value

none
