---
title: "write_scan_line method"
url: "https://reference.aspose.com/cad/python-net/aspose.cad/rastercachedimage/write_scan_line/"
product: "Aspose.CAD for Python via .NET API References"
---


## write_scan_line {#int-list}

Writes the whole scan line to the specified scan line index.



```python
def write_scan_line(self, scan_line_index, pixels):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| scan_line_index | int | Zero based index of the scan line. |
| pixels | list | The pixel colors array as ARGB to write. |


## write_scan_line {#int-list}

Writes the whole scan line to the specified scan line index.



```python
def write_scan_line(self, scan_line_index, pixels):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| scan_line_index | int | Zero based index of the scan line. |
| pixels | list | The pixel colors array to write. |



### See Also
* module [`aspose.cad`](../../)
* class [`RasterCachedImage`](/cad/python-net/aspose.cad/rastercachedimage)
