Add

Add(int, int, int, int, Stream)

Adds a picture to the collection.

public int Add(int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn, 
    Stream stream)
Parameter Type Description
upperLeftRow Int32 Upper left row index.
upperLeftColumn Int32 Upper left column index.
lowerRightRow Int32 Lower right row index
lowerRightColumn Int32 Lower right column index
stream Stream Stream object which contains the image data.

Return Value

Picture object index.

Examples


[C#]
//add a picture
using (FileStream fs = new FileStream("image.jpg", FileMode.Open))
{
    pictures.Add(1, 1, 5, 5, fs);
}

See Also


Add(int, int, int, int, string)

Adds a picture to the collection.

public int Add(int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn, 
    string fileName)
Parameter Type Description
upperLeftRow Int32 Upper left row index.
upperLeftColumn Int32 Upper left column index.
lowerRightRow Int32 Lower right row index
lowerRightColumn Int32 Lower right column index
fileName String Image filename.

Return Value

Picture object index.

Examples


[C#]
//add a picture
pictures.Add(1, 1, 5, 5, "image.jpg");

See Also


Add(int, int, Stream)

Adds a picture to the collection.

public int Add(int upperLeftRow, int upperLeftColumn, Stream stream)
Parameter Type Description
upperLeftRow Int32 Upper left row index.
upperLeftColumn Int32 Upper left column index.
stream Stream Stream object which contains the image data.

Return Value

Picture object index.

Examples


[C#]
//add a picture
using (FileStream fs = new FileStream("image.jpg", FileMode.Open))
{
    pictures.Add(1, 1, fs);
}

See Also


Add(int, int, string)

Adds a picture to the collection.

public int Add(int upperLeftRow, int upperLeftColumn, string fileName)
Parameter Type Description
upperLeftRow Int32 Upper left row index.
upperLeftColumn Int32 Upper left column index.
fileName String Image filename.

Return Value

Picture object index.

Examples


[C#]
//add a picture
pictures.Add(1, 1, "image.jpg");

See Also


Add(int, int, Stream, int, int)

Adds a picture to the collection.

public int Add(int upperLeftRow, int upperLeftColumn, Stream stream, int widthScale, 
    int heightScale)
Parameter Type Description
upperLeftRow Int32 Upper left row index.
upperLeftColumn Int32 Upper left column index.
stream Stream Stream object which contains the image data.
widthScale Int32 Scale of image width, a percentage.
heightScale Int32 Scale of image height, a percentage.

Return Value

Picture object index.

Examples


[C#]
//add a picture
using (FileStream fs = new FileStream("image.jpg", FileMode.Open))
{
    pictures.Add(1, 1, fs, 50, 50);
}

See Also


Add(int, int, string, int, int)

Adds a picture to the collection.

public int Add(int upperLeftRow, int upperLeftColumn, string fileName, int widthScale, 
    int heightScale)
Parameter Type Description
upperLeftRow Int32 Upper left row index.
upperLeftColumn Int32 Upper left column index.
fileName String Image filename.
widthScale Int32 Scale of image width, a percentage.
heightScale Int32 Scale of image height, a percentage.

Return Value

Picture object index.

Examples


[C#]
//add a picture
pictures.Add(1, 1, "image.jpg", 50, 50);

See Also