VectorMultipageImage
Inheritance: java.lang.Object, com.aspose.imaging.DisposableObject, com.aspose.imaging.DataStreamSupporter, com.aspose.imaging.Image, com.aspose.imaging.VectorImage
All Implemented Interfaces: com.aspose.imaging.IMultipageImage
public abstract class VectorMultipageImage extends VectorImage implements IMultipageImage
矢量多页图像
构造函数
| 构造函数 | 描述 |
|---|---|
| VectorMultipageImage() |
方法
| 方法 | 描述 |
|---|---|
| isCached() | 获取一个值,指示对象的数据当前是否已缓存且无需读取数据。 |
| getBitsPerPixel() | 获取图像每像素位数计数。 |
| getWidth() | 获取图像宽度。 |
| getHeight() | 获取图像高度。 |
| getDefaultPage() | 获取默认页面。 |
| getPageExportingAction() | 获取页面导出操作。 |
| setPageExportingAction(PageExportingAction value) | 设置页面导出操作。 |
| getMetadata() | 获取图像元数据。 |
| cacheData() | 缓存数据并确保不会从底层 DataStreamSupporter.getDataStreamContainer()(DataStreamSupporter.getDataStreamContainer)进行额外的数据加载。 |
| crop(Rectangle rectangle) | 裁剪指定的矩形。 |
| resize(int newWidth, int newHeight, int resizeType) | 调整图像大小。 |
| rotate(float angle) | 围绕中心旋转图像。 |
| resize(int newWidth, int newHeight, ImageResizeSettings settings) | 调整图像大小。 |
| rotateFlip(int rotateFlipType) | 旋转、翻转,或同时旋转和翻转图像。 |
| removeBackground(RemoveBackgroundSettings settings) | 移除背景。 |
| removeBackground() | 移除背景。 |
| setPalette(IColorPalette palette, boolean updateColors) | 设置图像调色板。 |
| getEmbeddedImages() | 获取嵌入的图像。 |
VectorMultipageImage()
public VectorMultipageImage()
isCached()
public boolean isCached()
获取一个值,指示对象的数据当前是否已缓存且无需读取数据。
值:如果对象的数据已缓存则为 true;否则为 false。
Returns: boolean - 一个值,指示对象的数据当前是否已缓存且无需读取数据。
getBitsPerPixel()
public int getBitsPerPixel()
获取图像每像素位数计数。
值:图像每像素位数。
Returns: int - 图像每像素位数。
getWidth()
public int getWidth()
获取图像宽度。
值:图像宽度。
Returns: int - 图像宽度。
getHeight()
public int getHeight()
获取图像高度。
值:图像高度。
Returns: int - 图像高度。
getDefaultPage()
public abstract Image getDefaultPage()
获取默认页面。
值:默认页面。
Returns: Image - the default page.
getPageExportingAction()
public PageExportingAction getPageExportingAction()
获取页面导出操作。请注意,设置此方法后将在执行后自动释放页面资源。该操作将在每个页面保存之前执行。
值:页面导出操作。
Returns: PageExportingAction - the page exporting action.
setPageExportingAction(PageExportingAction value)
public void setPageExportingAction(PageExportingAction value)
设置页面导出操作。请注意,设置此方法后将在执行后自动释放页面资源。该操作将在每个页面保存之前执行。
值:页面导出操作。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | PageExportingAction | 页面导出操作。 |
getMetadata()
public ImageMetadata getMetadata()
获取图像元数据。
Returns: ImageMetadata - the image metadata.
cacheData()
public void cacheData()
缓存数据并确保不会从底层 DataStreamSupporter.getDataStreamContainer()(DataStreamSupporter.getDataStreamContainer)进行额外的数据加载。
crop(Rectangle rectangle)
public void crop(Rectangle rectangle)
裁剪指定的矩形。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| rectangle | Rectangle | 矩形。 |
resize(int newWidth, int newHeight, int resizeType)
public void resize(int newWidth, int newHeight, int resizeType)
调整图像大小。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| newWidth | int | 新的宽度。 |
| newHeight | int | 新的高度。 |
| resizeType | int | 调整大小类型。 |
rotate(float angle)
public void rotate(float angle)
围绕中心旋转图像。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| angle | float | 旋转角度(以度为单位)。正值将顺时针旋转。 |
resize(int newWidth, int newHeight, ImageResizeSettings settings)
public void resize(int newWidth, int newHeight, ImageResizeSettings settings)
调整图像大小。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| newWidth | int | 新的宽度。 |
| newHeight | int | 新的高度。 |
| settings | ImageResizeSettings | 调整大小的设置。 |
rotateFlip(int rotateFlipType)
public void rotateFlip(int rotateFlipType)
旋转、翻转,或同时旋转和翻转图像。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| rotateFlipType | int | 旋转和翻转的类型。 |
removeBackground(RemoveBackgroundSettings settings)
public void removeBackground(RemoveBackgroundSettings settings)
移除背景。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| settings | RemoveBackgroundSettings | 设置。 |
removeBackground()
public void removeBackground()
移除背景。
setPalette(IColorPalette palette, boolean updateColors)
public void setPalette(IColorPalette palette, boolean updateColors)
设置图像调色板。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| palette | IColorPalette | 要设置的调色板。 |
| updateColors | boolean | 如果设置为 true,颜色将根据新调色板进行更新;否则颜色索引保持不变。请注意,如果某些索引没有对应的调色板条目,未更改的索引可能在加载时导致图像崩溃。 |
getEmbeddedImages()
public EmbeddedImage[] getEmbeddedImages()
获取嵌入的图像。
Returns: com.aspose.imaging.EmbeddedImage[] - 图像数组