[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IGraphic.SetGraphicStream

SetGraphicStream Method

SetGraphicStream(Stream, ImageType)

Sets the picture data using the specified Stream.

Declaration
void SetGraphicStream(Stream stream, ImageType imageType)
Sub SetGraphicStream(stream As Stream, imageType As ImageType)
Parameters
Type Name Description
Stream stream

The stream that contains the image data.

ImageType imageType

The type of the image data.

Examples
IGraphic graphic = worksheet.PageSetup.CenterHeaderPicture;
using (MemoryStream stream = CreateSampleImageStream())
{
    graphic.SetGraphicStream(stream, ImageType.PNG);
}