Click or drag to resize

FillFormatSetPicture Method (String, Stream)

Sets the fill to the picture fill.

This method is not applicable on Fill property.

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

Parameters

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

Return Value

Type: PictureFillFormat
An instance of a PictureFillFormat type that was set and can be used to set tiling or stretch options of the picture fill.
Exceptions
ExceptionCondition
ArgumentExceptioncontentType is or Empty.
ArgumentNullExceptionstream is .
See Also