Package com.github.weisj.jsvg.util
Class ImageUtil
java.lang.Object
com.github.weisj.jsvg.util.ImageUtil
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ColorModelcoerceData(@NotNull WritableRaster wr, @NotNull ColorModel cm, boolean newAlphaPreMultiplied) static @NotNull BufferedImagecopy(@NotNull RenderContext context, @NotNull ImageProducer producer, ImageUtil.Premultiplied premultiplied) static @NotNull BufferedImagecreateCompatibleTransparentImage(int width, int height) static @NotNull BufferedImagecreateCompatibleTransparentImage(int width, int height, ImageUtil.Premultiplied preMultiplied) static @NotNull BufferedImagecreateCompatibleTransparentImage(@NotNull Output output, double width, double height) static @NotNull BufferedImagecreateCompatibleTransparentImage(@Nullable AffineTransform at, double width, double height) static @NotNull BufferedImagecreateLuminosityBuffer(@Nullable AffineTransform at, double width, double height) static intgetINT_RGBA_DataAdjust(@NotNull Raster raster) static int[]getINT_RGBA_DataBank(@NotNull Raster raster) static intgetINT_RGBA_DataOffset(@NotNull Raster raster) static intgetINT_RGBA_ScanlineStride(@NotNull Raster raster) static booleanis_INT_PACK_Data(@NotNull SampleModel sm, boolean requireAlpha) static @NotNull BufferedImagetoBufferedImage(@NotNull Image img) static @NotNull BufferedImagetoBufferedImage(@NotNull Image img, ImageUtil.Premultiplied premultiplied)
-
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)
-