[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ImageSource.-ctor

ImageSource Constructor

ImageSource(Stream, ImageType)

Initializes a new image source from an image stream and image type.

If stream is not null, this constructor reads the stream content and stores it in the image source. The specified type is assigned even when stream is null.

Declaration
public ImageSource(Stream stream, ImageType type)
Public Sub New(stream As Stream, type As ImageType)
Parameters
Type Name Description
Stream stream

The image stream. If null, no image content is loaded.

ImageType type

The type of the image.