XImageCollection

XImageCollection

Overview

XImageCollection 是一个类在Java的FOSS中. 继承人: Iterable<XImage>.

图像的集合 XObjects 从页面的 /XObject资源词典.

本类提供了13种方法,用于在Java程序中使用XImageCollection对象. 有的方法包括: XImageCollection, add, delete, get, getCount, getNames, iterator, replace, size. 所有公众成员在安装了Java的FOSS包后,可以访问任何 Java应用程序. 特性: count, names.

Properties

NameTypeAccessDescription
countintRead返回图像数量.
namesString[]Read返回此集合中所有图像资源名称的数组.

Methods

SignatureDescription
XImageCollection(resourcesDict: PdfDictionary, xobjectDict: PdfDictionary, parser: PDFParser)从 / XObject 词典中创建一个XImageCollection.
XImageCollection(xobjectDict: PdfDictionary, parser: PDFParser)从 / XObject 词典中创建一个XImageCollection.
get(index: int)XImage返回给定基于1的索引图像.
get(name: String)XImage按资源名称返回图像 (例如",Im1").
getCount()int返回图像数量.
size()int返回图像数 (为 {@link #getCount()} 的别名).
getNames()String[]返回此集合中所有图像资源名称的数组.
iterator()Iterator<XImage>
add(imageStream: InputStream)将输入流中的图像添加到此集合中.
delete(index: int)从父/XObject字典中删除给定基于1的索引中的图像.
delete(name: String)删除给出的资源名称的图像.
replace(index: int, newImageStream: InputStream)将给定基于1的索引中的图像取代为新的图片.
replace(name: String, newImageStream: InputStream)将给出的资源名称的图像取代为新的图片.

See Also

 中文