# SaveToVectorImage(VectorImage)

> Saves the content of this Painter2D to a VectorImage object.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public bool SaveToVectorImage(VectorImage vectorImage)
```

### Parameters

**** (\[VectorImage]\(/engine/6000.5/script-reference/unityengine/uielements/vectorimage)): The VectorImage object that will be initialized with this painter. This object should not be null.

### Returns

| Type                                                          | Description                                                        |
| ------------------------------------------------------------- | ------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the VectorImage initialization succeeded. False otherwise. |

### Remarks

The size and content of the vector image will be determined from the bounding-box of the visible content of the painter object. Any offset of the visible content will not be saved in the vector image.
