AddPictureFrame

IShapeCollection.AddPictureFrame method

Creates a new picture frame containing the specified image and adds it to the end of the shape collection.

public IPictureFrame AddPictureFrame(ShapeType shapeType, float x, float y, float width, 
    float height, IPPImage image)
ParameterTypeDescription
shapeTypeShapeTypeSpecifies the shape type contained in ShapeType, except for all kinds of lines:
xSingleThe x-coordinate of the picture frame, in points.
ySingleThe y-coordinate of the picture frame, in points.
widthSingleThe width of the picture frame, in points.
heightSingleThe height of the picture frame, in points.
imageIPPImageThe IPPImage to display in the picture frame.

Return Value

The newly created IPictureFrame.

See Also