Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class Pictures

java.lang.Object
  extended by com.aspose.cells.Pictures

public class Pictures
extends java.lang.Object

Encapsulates a collection of Picture objects.


Method Summary
 int add(int startRow, int startColumn, java.io.InputStream inputStream)
          Deprecated. Replaced by Shapes.addPicture(int, int, InputStream)
 int add(int startRow, int startColumn, java.io.InputStream inputStream, int widthScale, int heightScale)
          Deprecated. Replaced by Shapes.addPicture(int, int, InputStream, int, int)
 int add(int startRow, int startColumn, int endRow, int endColumn, java.io.InputStream inputStream)
          Deprecated. Replaced by Shapes.addPicture(int, int, int, int, InputStream)
 int add(int startRow, int startColumn, int endRow, int endColumn, java.lang.String fileName)
          Deprecated. Replaced by Shapes.addPicture(int, int, int, int, String)
 int add(int startRow, int startColumn, java.lang.String fileName)
          Deprecated. Replaced by Shapes.addPicture(int, int, String)
 int add(int startRow, int startColumn, java.lang.String fileName, int widthScale, int heightScale)
          Deprecated. Replaced by Shapes.addPicture(int, int, String, int, int)
 Picture get(int index)
          Gets Picture object by index.
 int size()
          Gets number of pictures in the worksheet.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public int add(int startRow,
               int startColumn,
               int endRow,
               int endColumn,
               java.lang.String fileName)
Deprecated. Replaced by Shapes.addPicture(int, int, int, int, String)

Adds a picture to the collection. Currently supported image format are listed below:
BMP
JPEG
PNG
GIF
WMF
EMF

Parameters:
startRow - row index of the top left cell.
startColumn - column index of the top left cell.
endRow - row index of the bottom right cell.
endColumn - column index of the bottom right cell.
fileName - Image filename.
Returns:
Picture object index.
Throws:
java.lang.IllegalArgumentException - if the file is not exsiting.
java.lang.IllegalArgumentException - if image foramt is not supported.
CellsException - if worksheet has bean removed.

add

public int add(int startRow,
               int startColumn,
               int endRow,
               int endColumn,
               java.io.InputStream inputStream)
Deprecated. Replaced by Shapes.addPicture(int, int, int, int, InputStream)

Adds a picture to the collection.

Parameters:
startRow - row index of the top left cell.
startColumn - column index of the top left cell.
endRow - row index of the bottom right cell.
endColumn - column index of the bottom right cell.
inputStream - Stream object which contains the image data.
Returns:
Picture object index.
Throws:
java.lang.IllegalArgumentException - if image foramt is not supported.
CellsException - if worksheet has bean removed.

add

public int add(int startRow,
               int startColumn,
               java.io.InputStream inputStream,
               int widthScale,
               int heightScale)
Deprecated. Replaced by Shapes.addPicture(int, int, InputStream, int, int)

Adds a picture to the collection.

Parameters:
startRow - row index of the top left cell.
startColumn - column index of the top left cell.
inputStream - Stream object which contains the image data.
widthScale - Scale of image width, a percentage.
heightScale - Scale of image height, a percentage.
Returns:
Picture object index.
Throws:
java.lang.IllegalArgumentException - if image foramt is not supported.
CellsException - if worksheet has bean removed.

add

public int add(int startRow,
               int startColumn,
               java.lang.String fileName,
               int widthScale,
               int heightScale)
Deprecated. Replaced by Shapes.addPicture(int, int, String, int, int)

Adds a picture to the collection.

Parameters:
startRow - row index of the top left cell.
startColumn - column index of the top left cell.
fileName - Image filename.
widthScale - Scale of image width, a percentage.
heightScale - Scale of image height, a percentage.
Returns:
Picture object index.
Throws:
java.lang.IllegalArgumentException - if image foramt is not supported.
CellsException - if worksheet has bean removed.

add

public int add(int startRow,
               int startColumn,
               java.io.InputStream inputStream)
Deprecated. Replaced by Shapes.addPicture(int, int, InputStream)

Adds a picture to the collection.

Parameters:
startRow - row index of the top left cell.
startColumn - column index of the top left cell.
inputStream - Stream object which contains the image data.
Returns:
Picture object index.
Throws:
java.lang.IllegalArgumentException - if image foramt is not supported.
CellsException - if worksheet has bean removed.

add

public int add(int startRow,
               int startColumn,
               java.lang.String fileName)
Deprecated. Replaced by Shapes.addPicture(int, int, String)

Adds a picture to the collection.

Parameters:
startRow - row index of the top left cell.
startColumn - column index of the top left cell.
fileName - Image filename.
Returns:
Picture object index.
Throws:
java.lang.IllegalArgumentException - if image foramt is not supported.
CellsException - if worksheet has bean removed.

size

public int size()
Gets number of pictures in the worksheet.

Returns:
number of pictures.
Throws:
CellsException - if worksheet has bean removed.

get

public Picture get(int index)
Gets Picture object by index.

Parameters:
index - Picture object index.
Returns:
Picture object
Throws:
java.lang.IllegalArgumentException - if index is out of range.
CellsException - if worksheet has bean removed.