This documentation is for the old version. Go to the latest Graphics Mill docs

Layer.Serialize Method

Serializes a layer and its objects.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls.VectorObjects (in Aurigma.GraphicsMill.WinControls.VectorObjects.dll)

Syntax

Visual Basic
Public Sub Serialize ( _
	stream As Stream _
)
C#
public void Serialize(
	Stream stream
)

Parameters

stream

Type: System.IO.Stream

The stream that will keep the serialized data.

Remarks

To restore the layer from the serialization data, use the Deserialize(Stream) method.

Note

Remember that binary format used for serialization is highly dependent on the build version, as the API may change from version to version, and properties may be added or removed.

Note

This method closes the specified Stream after serialization.

See Also

Reference