Skip to content

CustomRenderSaveFileTypes.SaveFileHandler

Called when a user chooses to save a rendered scene as this custom file type.

Namespace: Rhino.PlugIns

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public delegate bool SaveFileHandler(
string fileName,
bool includeAlpha,
RenderWindow renderWindow
)

Parameters

fileName

Type:System.String
Name of the file to write.

includeAlpha

Type:System.Boolean
Only meaningful if the custom file type optionally supports alpha channel.

renderWindow

Type: Rhino.Render.RenderWindow
The RenderWindow to save.

Return Value

Type:Boolean
Return true if the file was written successfully otherwise return false.