---
name: "BIN_fnc_cropTXScan"
type: function
status: ok
groups: ["TXScan"]
arma3_since: "1.94"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIN_fnc_cropTXScan
revid: 309491
updated: 2022-05-05T12:06:22Z
---

# BIN_fnc_cropTXScan

*Function · TXScan · Arma 3 v1.94*

## Description

Crops given scan

> [!NOTE]
> This content is exclusive to the Arma 3 Contact Expansion.

## Syntax

*syntax inferred from the function header*

```sqf
[param0, param1, param2, param3, param4] call BIN_fnc_cropTXScan
```

**Parameters:**

- `param0` — 0: STRING - scan name
- `param1` — 1: NUMBER - crop rectangle center X
- `param2` — 2: NUMBER - crop rectangle center Y
- `param3` — 3: NUMBER - crop rectangle center W
- `param4` — 4: NUMBER - crop rectangle center H

**Returns:** ARRAY - crop rectangle corners

## Examples

### Example 1

```sqf
["MyScan", 100, 100, 1000, 500] call BIN_fnc_cropTXScan
```

## Function header

The comment at the top of the function's file in the game; this page's params, syntax, returns, examples, description come from it.

```sqf
/*
    Killzone_Kid

Description:
    Crops given scan

Parameter(s):
    0: STRING - scan name
    1: NUMBER - crop rectangle center X
    2: NUMBER - crop rectangle center Y
    3: NUMBER - crop rectangle center W
    4: NUMBER - crop rectangle center H

Returns:
    ARRAY - crop rectangle corners

Example:
    ["MyScan", 100, 100, 1000, 500] call BIN_fnc_cropTXScan
*/
```

<sub>Source: [BI Community Wiki — BIN fnc cropTXScan](https://community.bistudio.com/wiki/BIN_fnc_cropTXScan) (revision 309491).</sub>
