Package com.github.weisj.jsvg.util
Class ImageUtil
- java.lang.Object
-
- com.github.weisj.jsvg.util.ImageUtil
-
public final class ImageUtil extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImageUtil.Premultiplied
-
Constructor Summary
Constructors Modifier Constructor Description private
ImageUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull java.awt.image.ColorModel
coerceData(@NotNull java.awt.image.WritableRaster wr, @NotNull java.awt.image.ColorModel cm, boolean newAlphaPreMultiplied)
static @NotNull java.awt.image.BufferedImage
copy(@NotNull RenderContext context, @NotNull java.awt.image.ImageProducer producer, ImageUtil.Premultiplied premultiplied)
static @NotNull java.awt.image.BufferedImage
createCompatibleTransparentImage(int width, int height)
static @NotNull java.awt.image.BufferedImage
createCompatibleTransparentImage(int width, int height, ImageUtil.Premultiplied preMultiplied)
static @NotNull java.awt.image.BufferedImage
createCompatibleTransparentImage(@NotNull Output output, double width, double height)
static @NotNull java.awt.image.BufferedImage
createCompatibleTransparentImage(@Nullable java.awt.geom.AffineTransform at, double width, double height)
static @NotNull java.awt.image.BufferedImage
createLuminosityBuffer(@Nullable java.awt.geom.AffineTransform at, double width, double height)
static int
getINT_RGBA_DataAdjust(@NotNull java.awt.image.Raster raster)
static int[]
getINT_RGBA_DataBank(@NotNull java.awt.image.Raster raster)
static int
getINT_RGBA_DataOffset(@NotNull java.awt.image.Raster raster)
static int
getINT_RGBA_ScanlineStride(@NotNull java.awt.image.Raster raster)
static boolean
is_INT_PACK_Data(@NotNull java.awt.image.SampleModel sm, boolean requireAlpha)
static @NotNull java.awt.image.BufferedImage
toBufferedImage(@NotNull java.awt.Image img)
static @NotNull java.awt.image.BufferedImage
toBufferedImage(@NotNull java.awt.Image img, ImageUtil.Premultiplied premultiplied)
-
-
-
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)
-
-