Package com.github.weisj.jsvg.util
Class ImageUtil
java.lang.Object
com.github.weisj.jsvg.util.ImageUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ColorModel
coerceData
(@NotNull WritableRaster wr, @NotNull ColorModel cm, boolean newAlphaPreMultiplied) static @NotNull BufferedImage
copy
(@NotNull RenderContext context, @NotNull ImageProducer producer, ImageUtil.Premultiplied premultiplied) static @NotNull BufferedImage
createCompatibleTransparentImage
(int width, int height) static @NotNull BufferedImage
createCompatibleTransparentImage
(int width, int height, ImageUtil.Premultiplied preMultiplied) static @NotNull BufferedImage
createCompatibleTransparentImage
(@NotNull Output output, double width, double height) static @NotNull BufferedImage
createCompatibleTransparentImage
(@Nullable AffineTransform at, double width, double height) static @NotNull BufferedImage
createLuminosityBuffer
(@Nullable AffineTransform at, double width, double height) static int
getINT_RGBA_DataAdjust
(@NotNull Raster raster) static int[]
getINT_RGBA_DataBank
(@NotNull Raster raster) static int
getINT_RGBA_DataOffset
(@NotNull Raster raster) static int
getINT_RGBA_ScanlineStride
(@NotNull Raster raster) static boolean
is_INT_PACK_Data
(@NotNull SampleModel sm, boolean requireAlpha) static @NotNull BufferedImage
toBufferedImage
(@NotNull Image img) static @NotNull BufferedImage
toBufferedImage
(@NotNull Image img, ImageUtil.Premultiplied premultiplied)
-
Constructor Details
-
ImageUtil
private ImageUtil()
-
-
Method Details
-
createCompatibleTransparentImage
@NotNull public static @NotNull BufferedImage createCompatibleTransparentImage(@NotNull @NotNull Output output, double width, double height) -
createCompatibleTransparentImage
@NotNull public static @NotNull BufferedImage createCompatibleTransparentImage(int width, int height) -
createCompatibleTransparentImage
@NotNull public static @NotNull BufferedImage createCompatibleTransparentImage(int width, int height, ImageUtil.Premultiplied preMultiplied) -
createCompatibleTransparentImage
@NotNull public static @NotNull BufferedImage createCompatibleTransparentImage(@Nullable @Nullable AffineTransform at, double width, double height) -
createLuminosityBuffer
@NotNull public static @NotNull BufferedImage createLuminosityBuffer(@Nullable @Nullable AffineTransform at, double width, double height) -
is_INT_PACK_Data
-
getINT_RGBA_DataBank
-
getINT_RGBA_DataOffset
-
getINT_RGBA_DataAdjust
-
getINT_RGBA_ScanlineStride
-
copy
@NotNull public static @NotNull BufferedImage copy(@NotNull @NotNull RenderContext context, @NotNull @NotNull ImageProducer producer, ImageUtil.Premultiplied premultiplied) -
toBufferedImage
-
toBufferedImage
@NotNull public static @NotNull BufferedImage toBufferedImage(@NotNull @NotNull Image img, ImageUtil.Premultiplied premultiplied) -
coerceData
@NotNull public static @NotNull ColorModel coerceData(@NotNull @NotNull WritableRaster wr, @NotNull @NotNull ColorModel cm, boolean newAlphaPreMultiplied)
-