IWorksheet
SaveToImage Method (Stream, Int32, Int32, Int32, Int32, ImageType, EmfType)
|
Converts range into image.
Namespace:
Spire.Xls.Core
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
Image SaveToImage(
Stream outputStream,
int firstRow,
int firstColumn,
int lastRow,
int lastColumn,
ImageType imageType,
EmfType emfType
)
Function SaveToImage (
outputStream As Stream,
firstRow As Integer,
firstColumn As Integer,
lastRow As Integer,
lastColumn As Integer,
imageType As ImageType,
emfType As EmfType
) As Image
Image^ SaveToImage(
Stream^ outputStream,
int firstRow,
int firstColumn,
int lastRow,
int lastColumn,
ImageType imageType,
EmfType emfType
)
abstract SaveToImage :
outputStream : Stream *
firstRow : int *
firstColumn : int *
lastRow : int *
lastColumn : int *
imageType : ImageType *
emfType : EmfType -> Image
Parameters
-
outputStream
-
Type:
System.IO
Stream
Output stream. It is ignored if null.
-
firstRow
-
Type:
System
Int32
One-based index of the first row to convert.
-
firstColumn
-
Type:
System
Int32
One-based index of the first column to convert.
-
lastRow
-
Type:
System
Int32
One-based index of the last row to convert.
-
lastColumn
-
Type:
System
Int32
One-based index of the last column to convert.
-
imageType
-
Type:
Spire.Xls
ImageType
Type of the image to create.
-
emfType
-
Type:
System.Drawing.Imaging
EmfType
Metafile EmfType.
Return Value
Type:
Image
Created image.
See Also