---
title: "ToImage_ImageType Method"
url: "https://reference.aspose.com/cells/go-cpp/cellsdrawing/toimage_imagetype/"
product: "Aspose.Cells for Go via C++ API Reference"
description: "ToImage_ImageType method. Encapsulates the function that represents toimage in Go."
---


## ToImage_ImageType function

Creates the shape image and saves it to a stream in the specified format.

```go

func (instance *CellsDrawing) ToImage_ImageType(imagetype ImageType)  ([]byte,  error) 

```

## Remarks


## See Also

* Class [CellsDrawing](../)
* Library [Aspose.Cells for Go](../../)
