Package com.github.weisj.jsvg.util
Class BlittableImage
- java.lang.Object
-
- com.github.weisj.jsvg.util.BlittableImage
-
public final class BlittableImage extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BlittableImage.BufferSurfaceSupplier
-
Field Summary
Fields Modifier and Type Field Description private @NotNull java.awt.geom.Rectangle2D
boundsInUserSpace
private @NotNull UnitType
contentUnits
private @NotNull RenderContext
context
private @NotNull java.awt.image.BufferedImage
image
-
Constructor Summary
Constructors Modifier Constructor Description private
BlittableImage(@NotNull java.awt.image.BufferedImage image, @NotNull RenderContext context, @NotNull java.awt.geom.Rectangle2D boundsInUserSpace, @NotNull UnitType contentUnits)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
blitTo(@NotNull java.awt.Graphics2D g, @NotNull RenderContext parentContext)
@NotNull java.awt.geom.Rectangle2D
boundsInUserSpace()
static @NotNull BlittableImage
create(@NotNull BlittableImage.BufferSurfaceSupplier bufferSurfaceSupplier, @NotNull RenderContext context, @Nullable java.awt.geom.Rectangle2D clipBounds, @NotNull java.awt.geom.Rectangle2D bounds, @NotNull java.awt.geom.Rectangle2D objectBounds, @NotNull UnitType contentUnits)
@NotNull java.awt.Graphics2D
createGraphics()
@NotNull java.awt.image.BufferedImage
image()
void
prepareForBlitting(@NotNull java.awt.Graphics2D g, @NotNull RenderContext parentContext)
void
renderNode(@NotNull java.awt.Graphics2D parentGraphics, @NotNull SVGNode node, @NotNull Instantiator instantiator)
-
-
-
Field Detail
-
image
@NotNull private final @NotNull java.awt.image.BufferedImage image
-
context
@NotNull private final @NotNull RenderContext context
-
boundsInUserSpace
@NotNull private final @NotNull java.awt.geom.Rectangle2D boundsInUserSpace
-
contentUnits
@NotNull private final @NotNull UnitType contentUnits
-
-
Constructor Detail
-
BlittableImage
private BlittableImage(@NotNull @NotNull java.awt.image.BufferedImage image, @NotNull @NotNull RenderContext context, @NotNull @NotNull java.awt.geom.Rectangle2D boundsInUserSpace, @NotNull @NotNull UnitType contentUnits)
-
-
Method Detail
-
create
@NotNull public static @NotNull BlittableImage create(@NotNull @NotNull BlittableImage.BufferSurfaceSupplier bufferSurfaceSupplier, @NotNull @NotNull RenderContext context, @Nullable @Nullable java.awt.geom.Rectangle2D clipBounds, @NotNull @NotNull java.awt.geom.Rectangle2D bounds, @NotNull @NotNull java.awt.geom.Rectangle2D objectBounds, @NotNull @NotNull UnitType contentUnits)
-
boundsInUserSpace
@NotNull public @NotNull java.awt.geom.Rectangle2D boundsInUserSpace()
-
image
@NotNull public @NotNull java.awt.image.BufferedImage image()
-
createGraphics
@NotNull public @NotNull java.awt.Graphics2D createGraphics()
-
renderNode
public void renderNode(@NotNull @NotNull java.awt.Graphics2D parentGraphics, @NotNull @NotNull SVGNode node, @NotNull @NotNull Instantiator instantiator)
-
prepareForBlitting
public void prepareForBlitting(@NotNull @NotNull java.awt.Graphics2D g, @NotNull @NotNull RenderContext parentContext)
-
blitTo
public void blitTo(@NotNull @NotNull java.awt.Graphics2D g, @NotNull @NotNull RenderContext parentContext)
-
-