Documents for Excel, Java Edition Documentation
com.grapecity.documents.excel.drawing Package / IShapes Interface / addPictureInPixel Method / addPictureInPixel(InputStream,ImageType,double,double,double,double) Method
The stream from which the object is to be created.
Specifies the type of picture to create.
The position (in points) of the upper-left corner of the picturerelative to the upper-left corner of the document.
The position (in points) of the upper-left corner of the picturerelative to the top of the document.
The width of the picture, in points.
The height of the picture, in points.
In This Topic
    addPictureInPixel(InputStream,ImageType,double,double,double,double) Method
    In This Topic
    Creates a picture from an existing stream. Returns the IShape objectthat represents the new picture.
    Syntax
    IShape addPictureInPixel( 
       java.io.InputStream stream,
       ImageType type,
       double left,
       double top,
       double width,
       double height
    )

    Parameters

    stream
    The stream from which the object is to be created.
    type
    Specifies the type of picture to create.
    left
    The position (in points) of the upper-left corner of the picturerelative to the upper-left corner of the document.
    top
    The position (in points) of the upper-left corner of the picturerelative to the top of the document.
    width
    The width of the picture, in points.
    height
    The height of the picture, in points.

    Return Value

    The IShape object.
    See Also