Click or drag to resize

PictureFillFormatSetData Method (String, Stream)

Sets the picture data.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1045 (21.3.35.1045)
Syntax
public PictureContent SetData(
	string contentType,
	Stream stream
)

Parameters

contentType
Type: SystemString
Content type (MIME type) of the picture data.
stream
Type: System.IOStream
The picture data stream.

Return Value

Type: PictureContent
An instance of a PictureContent class that represents the picture data that has been set.
Exceptions
ExceptionCondition
ArgumentExceptioncontentType is or Empty.
ArgumentNullExceptionstream is .
See Also