Document Solutions for Excel, Java Edition | Document Solutions
com.grapecity.documents.excel.drawing Package / IShapes Interface / addPicture Method / addPicture(String,InputStream,ImageType,IRange) Method
The picture name
The stream from which the object is to be created.
Specifies the type of picture to create.
The target range of the current sheet.
In This Topic
    addPicture(String,InputStream,ImageType,IRange) Method
    In This Topic
    Creates a picture from an existing stream at the specified range on the current sheet.

    The sheet of targetRange and the sheet of the shape being added must be the same sheet.

    Returns the object that represents the new picture.

    Syntax
    IShape addPicture( 
       java.lang.String name,
       java.io.InputStream stream,
       ImageType type,
       IRange range
    )

    Parameters

    name
    The picture name
    stream
    The stream from which the object is to be created.
    type
    Specifies the type of picture to create.
    range
    The target range of the current sheet.

    Return Value

    The IShape object.
    See Also