## Sparkline::ToImage(const U16String\&, const ImageOrPrintOptions\&) method


Converts a sparkline to an image.

```cpp
void Aspose::Cells::Charts::Sparkline::ToImage(const U16String &fileName, const ImageOrPrintOptions &options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fileName | const U16String\& | The image file name. |
| options | const ImageOrPrintOptions\& | The image options |

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [ImageOrPrintOptions](../../../aspose.cells.rendering/imageorprintoptions/)
* Class [Sparkline](../)
* Namespace [Aspose::Cells::Charts](../../)
* Library [Aspose.Cells for C++](../../../)
## Sparkline::ToImage(const char16_t*, const ImageOrPrintOptions\&) method


Converts a sparkline to an image.

```cpp
void Aspose::Cells::Charts::Sparkline::ToImage(const char16_t *fileName, const ImageOrPrintOptions &options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fileName | const char16_t* | The image file name. |
| options | const ImageOrPrintOptions\& | The image options |

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [ImageOrPrintOptions](../../../aspose.cells.rendering/imageorprintoptions/)
* Class [Sparkline](../)
* Namespace [Aspose::Cells::Charts](../../)
* Library [Aspose.Cells for C++](../../../)
## Sparkline::ToImage(const ImageOrPrintOptions\&) method


Converts a sparkline to an image.

```cpp
Vector<uint8_t> Aspose::Cells::Charts::Sparkline::ToImage(const ImageOrPrintOptions &options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | const ImageOrPrintOptions\& | The image stream. |

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [ImageOrPrintOptions](../../../aspose.cells.rendering/imageorprintoptions/)
* Class [Sparkline](../)
* Namespace [Aspose::Cells::Charts](../../)
* Library [Aspose.Cells for C++](../../../)
