Click or drag to resize

GroupShapeAddPicture Method (String, Stream, Double, Double, Double, Double)

Adds a new Picture with the specified picture data content type and stream to the current GroupShape.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1038 (21.3.35.1038)
Syntax
public Picture AddPicture(
	string contentType,
	Stream stream,
	double left,
	double top,
	double width,
	double height
)

Parameters

contentType
Type: SystemString
Content type (MIME type) of the picture data.
stream
Type: System.IOStream
Stream containing the picture data.
left
Type: SystemDouble
The location of the left edge of the bounding box enclosing a newly added Picture relative to the left edge of the slide on which the Picture is being added (prior to any rotation or flipping).
top
Type: SystemDouble
the location of the top edge of the bounding box enclosing a newly added Picture relative to the top edge of the slide on which the Picture is being added (prior to any rotation or flipping).
width
Type: SystemDouble
The width of the bounding box enclosing a newly added Picture (prior to any rotation or flipping).
height
Type: SystemDouble
The height of the bounding box enclosing a newly added Picture (prior to any rotation or flipping).

Return Value

Type: Picture
A new Picture added to the current GroupShape.
Remarks
DefaultUnit is the measuring unit in which parameters left, top, width and height are specified.
See Also