[]
Represents an image source.
An ImageSource stores image data together with its ImageType so it can be supplied to APIs that accept image content. Use Stream to retrieve the image data as a stream and Type to retrieve the image format.
public class ImageSource
Public Class ImageSource
using MemoryStream imageStream = CreateSampleImageStream();
ImageSource imageSource = new ImageSource(imageStream, ImageType.PNG);
worksheet.OutlineColumn.CollapseIndicator = imageSource;
Stream stream = imageSource.Stream;
| Name | Description |
|---|---|
| ImageSource(Stream, ImageType) | Initializes a new image source from an image stream and image type.
If |
| Name | Description |
|---|---|
| Stream | Gets the image stream. Returns a new stream over the stored image bytes when this instance contains image data. If no image data is available, this property returns null. |
| Type | Gets the type of the image. Returns the ImageType that was assigned when this image source was created. |