ExportChartToImageFile Method (String, ImageFormat, Int32, Int32)

HierarchyToolsExportChartToImageFile Method (String, ImageFormat, Int32, Int32) Chart4.NET - Organization Charting Component (C#/VB.NET/ASP.NET) - Documentation
Onlinewww.Chart4.NET (Documentation) | OnlineSamples Download | Release Notes

Export the chart and save to a file, in the specified image format and size. If FilePath given is empty, the image object (Bitmap) is returned, ignoring the ExportFormat, else returns a null.
Namespace: UnifoChart.Hierarchy
Assembly: UnifoChart.Hierarchy (in UnifoChart.Hierarchy.dll) Version: 5.1.0.0 (5.1.0)
Syntax

public Bitmap ExportChartToImageFile(
	string FilePath,
	ImageFormat ExportFormat,
	int Width,
	int Height
)
public Bitmap ExportChartToImageFile(
	string FilePath,
	ImageFormat ExportFormat,
	int Width,
	int Height
)
Public Function ExportChartToImageFile ( _
	FilePath As String, _
	ExportFormat As ImageFormat, _
	Width As Integer, _
	Height As Integer _
) As Bitmap 
Public Function ExportChartToImageFile ( _
	FilePath As String, _
	ExportFormat As ImageFormat, _
	Width As Integer, _
	Height As Integer _
) As Bitmap
public:
Bitmap^ ExportChartToImageFile(
	String^ FilePath, 
	ImageFormat^ ExportFormat, 
	int Width, 
	int Height
)
public:
Bitmap^ ExportChartToImageFile(
	String^ FilePath, 
	ImageFormat^ ExportFormat, 
	int Width, 
	int Height
)
member ExportChartToImageFile : 
 FilePath : string * 
 ExportFormat : ImageFormat * 
 Width : int * 
 Height : int -> Bitmap 
member ExportChartToImageFile : 
 FilePath : string * 
 ExportFormat : ImageFormat * 
 Width : int * 
 Height : int -> Bitmap
public Bitmap ExportChartToImageFile(
	String FilePath,
	ImageFormat ExportFormat,
	int Width,
	int Height
)
public Bitmap ExportChartToImageFile(
	String FilePath,
	ImageFormat ExportFormat,
	int Width,
	int Height
)

Parameters

FilePath
Type: OnlineSystemString
Filename including the path of the file
ExportFormat
Type: OnlineSystem.Drawing.ImagingImageFormat
Image file format
Width
Type: OnlineSystemInt32
Width of the resultant image
Height
Type: OnlineSystemInt32
Height of the resultant image

Return Value

Returns null if FilePath is given, image object (Bitmap) otherwise.
See Also

AltStyle によって変換されたページ (->オリジナル) /