Click or drag to resize

LightningChartSaveToFile Method (String, BitmapAntialiasOptions, Int32, Int32, Boolean)

LightningChart .NET Help
Save the chart into a image file by using given anti-aliasing options.

Namespace:  Arction.WinForms.Charting
Assembly:  Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntax
public bool SaveToFile(
	string fileName,
	BitmapAntialiasOptions antialiasOptions,
	int width,
	int height,
	bool AllowScreenCoordinateChanges = true
)

Parameters

fileName
Type: SystemString
Target file name. You must include file extension (png, bmp, jpg, tif, gif, wmf, emf, svg).
antialiasOptions
Type: Arction.WinForms.ChartingBitmapAntialiasOptions
Anti-aliasing options
width
Type: SystemInt32
Width of required output in pixels
height
Type: SystemInt32
Height of required output in pixels
AllowScreenCoordinateChanges (Optional)
Type: SystemBoolean
Allows screen coordinates of certain elements to be scaled by factor of defined size and original size to keep then in place in relation to other chart elements in vector exports. If unsure, use value true. Should be set to false if annotation tables or such constructs are used. Affects only vector output (emf and svg).

Return Value

Type: Boolean
True if the image was successfully written to file. Returns false on invalid file extension, on file write failure and on other problems on image creation or saving.
See Also