Class BlittableImage


  • public final class BlittableImage
    extends java.lang.Object
    • Field Detail

      • image

        @NotNull
        private final @NotNull java.awt.image.BufferedImage image
      • 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)