- 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 classImageUtil.Premultiplied
-
Constructor Summary
Constructors Modifier Constructor Description privateImageUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull java.awt.image.ColorModelcoerceData(@NotNull java.awt.image.WritableRaster wr, @NotNull java.awt.image.ColorModel cm, boolean newAlphaPreMultiplied)static @NotNull java.awt.image.BufferedImagecopy(@NotNull RenderContext context, @NotNull java.awt.image.ImageProducer producer, ImageUtil.Premultiplied premultiplied)static @NotNull java.awt.image.BufferedImagecreateCompatibleTransparentImage(int width, int height)static @NotNull java.awt.image.BufferedImagecreateCompatibleTransparentImage(int width, int height, ImageUtil.Premultiplied preMultiplied)static @NotNull java.awt.image.BufferedImagecreateCompatibleTransparentImage(@NotNull Output output, double width, double height)static @NotNull java.awt.image.BufferedImagecreateCompatibleTransparentImage(@Nullable java.awt.geom.AffineTransform at, double width, double height)static @NotNull java.awt.image.BufferedImagecreateLuminosityBuffer(@Nullable java.awt.geom.AffineTransform at, double width, double height)static intgetINT_RGBA_DataAdjust(@NotNull java.awt.image.Raster raster)static int[]getINT_RGBA_DataBank(@NotNull java.awt.image.Raster raster)static intgetINT_RGBA_DataOffset(@NotNull java.awt.image.Raster raster)static intgetINT_RGBA_ScanlineStride(@NotNull java.awt.image.Raster raster)static booleanis_INT_PACK_Data(@NotNull java.awt.image.SampleModel sm, boolean requireAlpha)static @NotNull java.awt.image.BufferedImagetoBufferedImage(@NotNull java.awt.Image img)static @NotNull java.awt.image.BufferedImagetoBufferedImage(@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)
-
-