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 BufferedImageprivate final double[]private final intprivate final intprivate final PerlinTurbulenceprivate final Rectangle2Dprivate 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 ChannelapplyFilter(@NotNull ImageFilter filter) private static intchannelsToRGB(double[] channels) private @NotNull BufferedImageintpixelAt(double x, double y) @NotNull PixelProviderpixels(@NotNull RenderContext context) @NotNull ImageProducerproducer()@NotNull BufferedImagetoBufferedImageNonAliased(@NotNull RenderContext context) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
toBufferedImageNonAliasedin interfaceChannel
-
applyFilter
- Specified by:
applyFilterin interfaceChannel
-
pixels
-
pixelAt
public int pixelAt(double x, double y) - Specified by:
pixelAtin interfacePixelProvider
-
channelsToRGB
private static int channelsToRGB(double[] channels)
-