Document Solutions for Excel, .NET Edition | Document Solutions
GrapeCity.Documents.Excel.Drawing Namespace / IBackgroundPictures Interface / AddPicture Method / AddPicture(Stream,ImageType,Double,Double,Double,Double) Method
The stream from which the object is to be created.
Specifies the type of background picture to create.
The position (in points) of the upper-left corner of the destination rectangle relative to the upper-left corner of the document.
The position (in points) of the upper-left corner of the destination rectangle relative 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(Stream,ImageType,Double,Double,Double,Double) Method
    In This Topic
    Creates a background picture from an existing stream. Returns the IBackgroundPicture object that represents the new background picture.
    Syntax
    IBackgroundPicture AddPicture( 
       System.IO.Stream stream,
       ImageType type,
       System.double left,
       System.double top,
       System.double width,
       System.double height
    )

    Parameters

    stream
    The stream from which the object is to be created.
    type
    Specifies the type of background picture to create.
    left
    The position (in points) of the upper-left corner of the destination rectangle relative to the upper-left corner of the document.
    top
    The position (in points) of the upper-left corner of the destination rectangle relative 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