Class FeTurbulence.TurbulenceChannel
java.lang.Object
com.github.weisj.jsvg.nodes.filter.FeTurbulence.TurbulenceChannel
- All Implemented Interfaces:
Channel
,PixelProvider
- Enclosing class:
FeTurbulence
public static final class FeTurbulence.TurbulenceChannel
extends Object
implements Channel, PixelProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BufferedImage
private final double[]
private final int
private final int
private final PerlinTurbulence
private final Rectangle2D
private final FeTurbulence.Type
-
Constructor Summary
ConstructorsConstructorDescriptionTurbulenceChannel
(@NotNull Rectangle2D tileBounds, int imageWidth, int imageHeight, float seed, int octaves, double xFrequency, double yFrequency, FeTurbulence.Type type) -
Method Summary
Modifier and TypeMethodDescription@NotNull Channel
applyFilter
(@NotNull ImageFilter filter) private static int
channelsToRGB
(double[] channels) private @NotNull BufferedImage
int
pixelAt
(double x, double y) @NotNull PixelProvider
pixels
(@NotNull RenderContext context) @NotNull ImageProducer
producer()
@NotNull BufferedImage
toBufferedImageNonAliased
(@NotNull RenderContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.weisj.jsvg.nodes.filter.Channel
alphaChannel, toImage
-
Field Details
-
perlinTurbulence
-
channels
private final double[] channels -
imageWidth
private final int imageWidth -
imageHeight
private final int imageHeight -
type
-
tileBounds
-
bufferedImage
-
-
Constructor Details
-
TurbulenceChannel
public TurbulenceChannel(@NotNull @NotNull Rectangle2D tileBounds, int imageWidth, int imageHeight, float seed, int octaves, double xFrequency, double yFrequency, FeTurbulence.Type type)
-
-
Method Details
-
ensureImageBackingStore
-
producer
-
toBufferedImageNonAliased
@NotNull public @NotNull BufferedImage toBufferedImageNonAliased(@NotNull @NotNull RenderContext context) - Specified by:
toBufferedImageNonAliased
in interfaceChannel
-
applyFilter
- Specified by:
applyFilter
in interfaceChannel
-
pixels
-
pixelAt
public int pixelAt(double x, double y) - Specified by:
pixelAt
in interfacePixelProvider
-
channelsToRGB
private static int channelsToRGB(double[] channels)
-