Class ImageUtil


  • public final class ImageUtil
    extends java.lang.Object
    • Constructor Detail

      • ImageUtil

        private ImageUtil()
    • Method Detail

      • createCompatibleTransparentImage

        @NotNull
        public static @NotNull java.awt.image.BufferedImage createCompatibleTransparentImage​(@NotNull
                                                                                             @NotNull Output output,
                                                                                             double width,
                                                                                             double height)
      • createCompatibleTransparentImage

        @NotNull
        public static @NotNull java.awt.image.BufferedImage createCompatibleTransparentImage​(int width,
                                                                                             int height)
      • createCompatibleTransparentImage

        @NotNull
        public static @NotNull java.awt.image.BufferedImage createCompatibleTransparentImage​(int width,
                                                                                             int height,
                                                                                             ImageUtil.Premultiplied preMultiplied)
      • createCompatibleTransparentImage

        @NotNull
        public static @NotNull java.awt.image.BufferedImage createCompatibleTransparentImage​(@Nullable
                                                                                             @Nullable java.awt.geom.AffineTransform at,
                                                                                             double width,
                                                                                             double height)
      • createLuminosityBuffer

        @NotNull
        public static @NotNull java.awt.image.BufferedImage createLuminosityBuffer​(@Nullable
                                                                                   @Nullable java.awt.geom.AffineTransform at,
                                                                                   double width,
                                                                                   double height)
      • is_INT_PACK_Data

        public static boolean is_INT_PACK_Data​(@NotNull
                                               @NotNull java.awt.image.SampleModel sm,
                                               boolean requireAlpha)
      • getINT_RGBA_DataBank

        public static int[] getINT_RGBA_DataBank​(@NotNull
                                                 @NotNull java.awt.image.Raster raster)
      • getINT_RGBA_DataOffset

        public static int getINT_RGBA_DataOffset​(@NotNull
                                                 @NotNull java.awt.image.Raster raster)
      • getINT_RGBA_DataAdjust

        public static int getINT_RGBA_DataAdjust​(@NotNull
                                                 @NotNull java.awt.image.Raster raster)
      • getINT_RGBA_ScanlineStride

        public static int getINT_RGBA_ScanlineStride​(@NotNull
                                                     @NotNull java.awt.image.Raster raster)
      • copy

        @NotNull
        public static @NotNull java.awt.image.BufferedImage copy​(@NotNull
                                                                 @NotNull RenderContext context,
                                                                 @NotNull
                                                                 @NotNull java.awt.image.ImageProducer producer,
                                                                 ImageUtil.Premultiplied premultiplied)
      • toBufferedImage

        @NotNull
        public static @NotNull java.awt.image.BufferedImage toBufferedImage​(@NotNull
                                                                            @NotNull java.awt.Image img)
      • toBufferedImage

        @NotNull
        public static @NotNull java.awt.image.BufferedImage toBufferedImage​(@NotNull
                                                                            @NotNull java.awt.Image img,
                                                                            ImageUtil.Premultiplied premultiplied)
      • coerceData

        @NotNull
        public static @NotNull java.awt.image.ColorModel coerceData​(@NotNull
                                                                    @NotNull java.awt.image.WritableRaster wr,
                                                                    @NotNull
                                                                    @NotNull java.awt.image.ColorModel cm,
                                                                    boolean newAlphaPreMultiplied)