Introducedin | ||
---|---|---|
|
Description |
---|
Excerpt |
---|
Saves Writes a Chart as a specified image formatan image with the specified dimensions in pixels to the specified stream. |
Signature | ||||
---|---|---|---|---|
| ||||
public static void SaveImage(System.IO.Stream stream, ImageFormat imageFormat, int? width, int? height)
|
Signature | ||||
---|---|---|---|---|
| ||||
Public Static Sub SaveImage(ByVal stream As System.IO.stream, ByVal imageFormat As ImageFormat, ByVal width As int?, ByVal height As int?) |
Parameters |
---|
Param | ||
---|---|---|
| ||
The output stream to write to. This stream must be open and writable. ExcelWriter will not close this stream; the calling program is responsible for closing the stream and releasing the resource. |
Param | ||
---|---|---|
| ||
The file format ExcelWriter will save the chart as. Supported file types include GIF, JPEG, BMP, PNG, EMF, TIFF, and WMF |
Param | ||
---|---|---|
| ||
The desired width of the image in pixels |
Param | ||
---|---|---|
| ||
The desired height of the image in pixels |
Exceptions |
---|
Exception | ||||
---|---|---|---|---|
| ||||
If there is a problem creating, opening, or writing to the file specified, or reading from the Chart object. |
Example | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|