SaveToVectorImage(VectorImage)
Saves the content of this Painter2D to a VectorImage object.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public bool SaveToVectorImage(VectorImage vectorImage)
Parameters
The VectorImage object that will be initialized with this painter. This object should not be null.
Returns
Type | Description |
|---|---|
| bool | 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.