public static interface SVGDrawer.SVGImage
| Modifier and Type | Method and Description |
|---|---|
void |
drawSVG(OutputDevice outputDevice,
RenderingContext ctx,
double x,
double y) |
int |
getIntrinsicHeight() |
default float |
getIntrinsicRatio()
The width to height ratio of an SVG that has no size of its own, taken from its
viewBox. |
int |
getIntrinsicWidth() |
default boolean |
hasIntrinsicSize()
Whether the SVG has a size of its own, ie.
|
int getIntrinsicWidth()
int getIntrinsicHeight()
default boolean hasIntrinsicSize()
background-size or from
the area it is painted into, which is what a browser does.
The default implementation says yes, so that getIntrinsicWidth() and
getIntrinsicHeight() keep being used as before.
default float getIntrinsicRatio()
viewBox. Used to size the image when CSS leaves the size open.void drawSVG(OutputDevice outputDevice, RenderingContext ctx, double x, double y)
Copyright © 2004–2026. All rights reserved.