Package com.github.weisj.jsvg.renderer
Class GraphicsUtil
java.lang.Object
com.github.weisj.jsvg.renderer.GraphicsUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cleanupPaint
(@NotNull Output output, @NotNull Paint paint) static @NotNull Graphics2D
createGraphics
(@NotNull BufferedImage image) static @NotNull Composite
deriveComposite
(@NotNull Graphics2D g, float opacity) private static @NotNull Paint
exchangePaint
(@NotNull Output output, @NotNull Paint current, @NotNull Paint paint, boolean doCleanUp) static void
preparePaint
(@NotNull Paint paint) static void
safelyDrawImage
(@NotNull Output output, @NotNull Graphics2D g, @NotNull Image image, @Nullable ImageObserver observer) static void
safelySetPaint
(@NotNull Output output, @NotNull Graphics2D g, @NotNull Paint paint) static void
safelySetPaint
(@NotNull Output output, @NotNull Graphics2D g, @NotNull Paint paint, boolean disposeOld)
-
Field Details
-
LOGGER
-
-
Constructor Details
-
GraphicsUtil
private GraphicsUtil()
-
-
Method Details
-
safelySetPaint
public static void safelySetPaint(@NotNull @NotNull Output output, @NotNull @NotNull Graphics2D g, @NotNull @NotNull Paint paint) -
safelySetPaint
public static void safelySetPaint(@NotNull @NotNull Output output, @NotNull @NotNull Graphics2D g, @NotNull @NotNull Paint paint, boolean disposeOld) -
cleanupPaint
-
preparePaint
-
exchangePaint
-
createGraphics
-
deriveComposite
@NotNull public static @NotNull Composite deriveComposite(@NotNull @NotNull Graphics2D g, float opacity) -
safelyDrawImage
public static void safelyDrawImage(@NotNull @NotNull Output output, @NotNull @NotNull Graphics2D g, @NotNull @NotNull Image image, @Nullable @Nullable ImageObserver observer)
-