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)
Syntaxpublic Picture AddPicture(
string contentType,
Stream stream,
double left,
double top,
double width,
double height
)
Public Function AddPicture (
contentType As String,
stream As Stream,
left As Double,
top As Double,
width As Double,
height As Double
) As Picture
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:
PictureA new
Picture added to the current
GroupShape.
RemarksDefaultUnit is the measuring unit in which parameters
left,
top,
width and
height are specified.
See Also