Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Save current content of RenderTarget into file with optional auto-numbering.

Namespace: Visual3D.Graphics3D
Assembly: Visual3D.Engine (in Visual3D.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
public bool SaveToFile(
	RenderPipeline pipeline,
	string filename,
	bool autoNumber
)
Public Function SaveToFile ( _
	pipeline As RenderPipeline, _
	filename As String, _
	autoNumber As Boolean _
) As Boolean

Parameters

pipeline
RenderPipeline
Render pipeline to take content of window, if render target doesn't have own surface (i.e. MainRenderTarget)
filename
String
Filename or full path for output file. If does not contain extension, JPG format will be used
autoNumber
Boolean
If set to true, auto-number will be added to the file name.

Return Value

True if success, false otherwise

See Also