|
ChartExtensionsConvertToImageStream Method
|
Saves the chart to a memory stream using the given image
format and returns the stream, ready for reading.
Namespace: GSF.Windows.FormsAssembly: GSF.Windows (in GSF.Windows.dll) Version: 2.4.230-beta
Syntaxpublic static Stream ConvertToImageStream(
this Chart chart,
ChartImageFormat format = ChartImageFormat.Png
)
<ExtensionAttribute>
Public Shared Function ConvertToImageStream (
chart As Chart,
Optional format As ChartImageFormat = ChartImageFormat.Png
) As Stream
public:
[ExtensionAttribute]
static Stream^ ConvertToImageStream(
Chart^ chart,
ChartImageFormat format = ChartImageFormat::Png
)
[<ExtensionAttribute>]
static member ConvertToImageStream :
chart : Chart *
?format : ChartImageFormat
(* Defaults:
let _format = defaultArg format ChartImageFormat.Png
*)
-> Stream
GSF.Windows.Forms.ChartExtensions.ConvertToImageStream = function(chart, format);
View SourceParameters
- chart Chart
- The chart to be saved to the stream.
- format ChartImageFormat (Optional)
- The format to used to save the image.
Return Value
StreamThe stream containing the chart as an image.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Chart. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also