public class BarcodeImageHandler extends Object implements org.apache.fop.render.ImageHandler
Copyright (c) 2020 xsx All Rights Reserved. gitee is licensed under the Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
Modifier and Type | Field and Description |
---|---|
static org.apache.xmlgraphics.image.loader.ImageFlavor |
IMAGE_FLAVOR
图像类型
|
static org.apache.xmlgraphics.image.loader.ImageFlavor[] |
IMAGE_FLAVORS
图像类型数组
|
static String |
IMAGE_TYPE
图像类型
|
static String |
MIME_TYPE
mime类型
|
Constructor and Description |
---|
BarcodeImageHandler() |
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
获取优先级
|
Class<BufferedImage> |
getSupportedImageClass()
获取支持的图像类
|
org.apache.xmlgraphics.image.loader.ImageFlavor[] |
getSupportedImageFlavors()
获取支持的图像类型
|
void |
handleImage(org.apache.fop.render.RenderingContext context,
org.apache.xmlgraphics.image.loader.Image image,
Rectangle pos)
处理图像
|
boolean |
isCompatible(org.apache.fop.render.RenderingContext targetContext,
org.apache.xmlgraphics.image.loader.Image image)
是否兼容
|
public static final String IMAGE_TYPE
public static final String MIME_TYPE
public static final org.apache.xmlgraphics.image.loader.ImageFlavor IMAGE_FLAVOR
public static final org.apache.xmlgraphics.image.loader.ImageFlavor[] IMAGE_FLAVORS
public boolean isCompatible(org.apache.fop.render.RenderingContext targetContext, org.apache.xmlgraphics.image.loader.Image image)
isCompatible
in interface org.apache.fop.render.ImageHandler
targetContext
- 上下文image
- 图像public void handleImage(org.apache.fop.render.RenderingContext context, org.apache.xmlgraphics.image.loader.Image image, Rectangle pos)
handleImage
in interface org.apache.fop.render.ImageHandler
context
- 上下文image
- 图像pos
- 尺寸public int getPriority()
getPriority
in interface org.apache.fop.render.ImageHandlerBase
public org.apache.xmlgraphics.image.loader.ImageFlavor[] getSupportedImageFlavors()
getSupportedImageFlavors
in interface org.apache.fop.render.ImageHandlerBase
public Class<BufferedImage> getSupportedImageClass()
getSupportedImageClass
in interface org.apache.fop.render.ImageHandlerBase
Copyright © 2024. All rights reserved.