public abstract class AbstractImageConverter extends AbstractConverter
allProperties, cssProperties, delegate, properties, xmlParentARC_HEIGHT, ARC_WIDTH, BACKGROUND_COLOR, BACKGROUND_IMAGE, BACKGROUND_RADIUS, BORDER_COLOR, BORDER_RADIUS, FILL_PAINT, FONT, FONT_FAMILY, FONT_SIZE, FONT_STYLE, FONT_WEIGHT, IMAGE, OPACITY, REGION_BACKGROUND, REGION_BACKGROUND_POSITION, REGION_BACKGROUND_RADIUS, REGION_BACKGROUND_SIZE, REGION_BORDER, SCALE_SHAPE, SCALE_X, SCALE_Y, SHAPE, STROKE_DASHARRAY, STROKE_DASHOFFSET, STROKE_LINECAP, STROKE_LINEJOIN, STROKE_MITERLIMIT, STROKE_PAINT, STROKE_TYPE, STROKE_WIDTH, TEXT_BOUNDS_TYPE, TEXT_FILL, TRANSLATE_X, TRANSLATE_Y, VISIBILITY| Constructor and Description |
|---|
AbstractImageConverter(ConverterDelegate delegate,
javafx.scene.Node node,
XMLNode xmlParent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
imgToBase64String(RenderedImage img)
Encode a rendered image as a base64 PNG string.
|
BufferedImage |
toBufferedImage(Image image,
int type)
Convert an AWT image to a
BufferedImage of the requested type. |
protected void |
writeImage(javafx.scene.Node theNode,
XMLNode xmlNode,
javafx.scene.image.Image image,
double dstWidth,
double dstHeight)
Writes an image.
|
addFill, addStroke, applyTransforms, getAdditionalNode, getAllProperties, getCSSProperties, getOpacity, getParent, getProperties, getTransformFromAncestor, hasVisibility, isVisible, setClip, setFillOpacity, setStrokeOpacityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyStyle, convertpublic AbstractImageConverter(ConverterDelegate delegate, javafx.scene.Node node, XMLNode xmlParent)
delegate - the ConverterDelegatenode - the NodexmlParent - the parent xml nodeprotected void writeImage(javafx.scene.Node theNode,
XMLNode xmlNode,
javafx.scene.image.Image image,
double dstWidth,
double dstHeight)
theNode - the nodexmlNode - the xml nodeimage - the imagedstWidth - the widthdstHeight - the heightpublic BufferedImage toBufferedImage(Image image, int type)
BufferedImage of the requested type.image - the source imagetype - the buffered image typepublic static String imgToBase64String(RenderedImage img)
img - the rendered imageCopyright © 2026. All rights reserved.