Layer.Save

Save(Stream)

Saves the object’s data to the specified stream.

public override void Save(Stream stream)
ParameterTypeDescription
streamStreamThe stream to save the object’s data to.

Exceptions

exceptioncondition
ArgumentExceptionWe should not call Save method without Image options

See Also


Save(string, ImageOptionsBase)

Saves the object’s data to the specified file location in the specified file format according to save options.

public override void Save(string filePath, ImageOptionsBase options)
ParameterTypeDescription
filePathStringThe file path.
optionsImageOptionsBaseThe options.

See Also


Save(string, bool)

Saves the object’s data to the specified file location.

public override void Save(string filePath, bool overWrite)
ParameterTypeDescription
filePathStringThe file path to save the object’s data to.
overWriteBooleanif set to true over write the file contents, otherwise append will occur.

See Also


Save(Stream, ImageOptionsBase, Rectangle)

Saves the image’s data to the specified stream in the specified file format according to save options.

public override void Save(Stream stream, ImageOptionsBase optionsBase, Rectangle boundsRectangle)
ParameterTypeDescription
streamStreamThe stream to save the image’s data to.
optionsBaseImageOptionsBaseThe save options.
boundsRectangleRectangleThe destination image bounds rectangle. Set the empty rectangle for use source bounds.

See Also


Save(string, ImageOptionsBase, Rectangle)

Saves the object’s data to the specified file location in the specified file format according to save options.

public override void Save(string filePath, ImageOptionsBase options, Rectangle boundsRectangle)
ParameterTypeDescription
filePathStringThe file path.
optionsImageOptionsBaseThe options.
boundsRectangleRectangleThe destination image bounds rectangle. Set the empty rectangle for use source bounds.

See Also