Saves a bitmap representation of the specified element to an image file.

The format of the image file is determined by the file extension specified in the filename. Supported formats are: PNG, JPG, GIF, BMP, and TIF.

Namespace: Ico.Gwx
Assembly: GwxConfigCore (in GwxConfigCore.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public bool SaveToImageFile(
	GwxElement element,
	string filename
)
Visual Basic
Public Function SaveToImageFile ( _
	element As GwxElement, _
	filename As String _
) As Boolean
JScript
public function SaveToImageFile(
	element : GwxElement, 
	filename : String
) : boolean

Parameters

element
Type: Ico.Gwx..::..GwxElement
A visual element to save to an image file.
filename
Type: System..::..String
The full name of the file (including path and extension) for the file to save.

Return Value

True if the image file is successfully saved, false otherwise.

See Also