接口 IBackgroundPictures
- 所有超级接口:
Iterable<IBackgroundPicture>
A collection of all the
IBackgroundPicture
objects on the specified sheet.-
方法概要
修饰符和类型方法说明addPicture
(InputStream stream, ImageType type, double left, double top, double width, double height) Creates a background picture from an existing stream.addPicture
(String filename, double left, double top, double width, double height) Creates a background picture from an existing file.addPictureInPixel
(InputStream stream, ImageType type, double left, double top, double width, double height) Creates a background picture from an existing stream.addPictureInPixel
(String filename, double left, double top, double width, double height) Creates a background picture from an existing file.get
(int index) Returns a single object from a collection.Returns a single object from a collection.int
getCount()
Returns the number of objects in the collection.从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
-
方法详细资料
-
get
Returns a single object from a collection.- 参数:
index
- Required int. The index number for the object.
-
get
Returns a single object from a collection.- 参数:
name
- Required string. The name for the object.
-
getCount
int getCount()Returns the number of objects in the collection. -
addPicture
IBackgroundPicture addPicture(String filename, double left, double top, double width, double height) throws IOException Creates a background picture from an existing file. Returns theIBackgroundPicture
objectthat represents the new background picture.- 参数:
filename
- The file from which the object is to be createdleft
- 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.- 返回:
- The
IBackgroundPicture
The object. - 抛出:
IOException
-
addPicture
IBackgroundPicture addPicture(InputStream stream, ImageType type, double left, double top, double width, double height) throws IOException Creates a background picture from an existing stream. Returns theIBackgroundPicture
objectthat represents the new background picture.- 参数:
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 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.- 返回:
- The
IBackgroundPicture
The object. - 抛出:
IOException
-
addPictureInPixel
IBackgroundPicture addPictureInPixel(String filename, double left, double top, double width, double height) throws IOException Creates a background picture from an existing file. Returns theIBackgroundPicture
objectthat represents the new background picture.- 参数:
filename
- The file from which the object is to be createdleft
- The position (in pixels) of the upper-left corner of the destination rectanglerelative to the upper-left corner of the document.top
- The position (in pixels) of the upper-left corner of the destination rectanglerelative to the top of the document.width
- The width of the destination rectangle, in pixels.height
- The height of the destination rectangle, in pixels.- 返回:
- The
IBackgroundPicture
object. - 抛出:
IOException
-
addPictureInPixel
IBackgroundPicture addPictureInPixel(InputStream stream, ImageType type, double left, double top, double width, double height) throws IOException Creates a background picture from an existing stream. Returns theIBackgroundPicture
objectthat represents the new background picture.- 参数:
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 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.- 返回:
- The
IShape
object. - 抛出:
IOException
-