Document Solutions for Excel, Java Edition | Document Solutions
com.grapecity.documents.excel.drawing Package / IBackgroundPictures Interface / addPicture Method / addPicture(String,double,double,double,double) Method
The file from which the object is to be created
The position (in points) of the upper-left corner of the destination rectanglerelative to the upper-left corner of the document.
The position (in points) of the upper-left corner of the destination rectanglerelative to the top of the document.
The width of the destination rectangle, in points.
The height of the destination rectangle, in points.
In This Topic
    addPicture(String,double,double,double,double) Method
    In This Topic
    Creates a background picture from an existing file. Returns the IBackgroundPicture objectthat represents the new background picture.
    Syntax
    IBackgroundPicture addPicture( 
       java.lang.String filename,
       double left,
       double top,
       double width,
       double height
    )

    Parameters

    filename
    The file from which the object is to be created
    left
    The position (in points) of the upper-left corner of the destination rectanglerelative to the upper-left corner of the document.
    top
    The position (in points) of the upper-left corner of the destination rectanglerelative to the top of the document.
    width
    The width of the destination rectangle, in points.
    height
    The height of the destination rectangle, in points.

    Return Value

    The IBackgroundPictureThe object.
    See Also