Package com.github.weisj.jsvg.renderer
Class GraphicsUtil
java.lang.Object
com.github.weisj.jsvg.renderer.GraphicsUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcleanupPaint(@NotNull Output output, @NotNull Paint paint) static @NotNull Graphics2DcreateGraphics(@NotNull BufferedImage image) static @NotNull CompositederiveComposite(@NotNull Graphics2D g, float opacity) static voidpreparePaint(@NotNull Paint paint) static voidsafelyDrawImage(@NotNull Output output, @NotNull Graphics2D g, @NotNull Image image, @Nullable ImageObserver observer) static voidsafelySetPaint(@NotNull Output output, @NotNull Graphics2D g, @NotNull Paint paint) static voidsafelySetPaint(@NotNull Output output, @NotNull Graphics2D g, @NotNull Paint paint, boolean disposeOld)
-
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
-
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)
-