[]
Sets the picture data using the specified Stream.
void SetGraphicStream(Stream stream, ImageType imageType)
Sub SetGraphicStream(stream As Stream, imageType As ImageType)
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream that contains the image data. |
| ImageType | imageType | The type of the image data. |
IGraphic graphic = worksheet.PageSetup.CenterHeaderPicture;
using (MemoryStream stream = CreateSampleImageStream())
{
graphic.SetGraphicStream(stream, ImageType.PNG);
}