public static enum Img.F extends Enum<Img.F>
The namespace for functions
| Modifier and Type | Field and Description |
|---|---|
static Lang.Producer<Color> |
RANDOM_COLOR |
static Lang.Producer<BufferedImage> |
TRACKING_PIXEL
A function that generates a transparent tracking pixel
|
| Modifier and Type | Method and Description |
|---|---|
static Lang.Producer<BufferedImage> |
background(int w,
int h)
A function that generates a transparent background in rectangular area
|
static Lang.Producer<BufferedImage> |
background(int w,
int h,
Color color)
A function that generates a background in rectangular area with color specified
|
static Lang.Producer<BufferedImage> |
background(int w,
int h,
Lang.Func0<Color> colorValueProvider)
A function that generates a background in rectangular area with color specified
|
static Lang.Producer<BufferedImage> |
randomPixels(int w,
int h)
A function that generates a image with random picked pixels with random color.
|
static Lang.Producer<BufferedImage> |
randomPixels(int w,
int h,
Color background)
A function that generates a image with random picked pixels with random color.
|
static Lang.Producer<BufferedImage> |
randomPixels(int w,
int h,
int percent)
A function that generates a image with random picked pixels with random color.
|
static Lang.Producer<BufferedImage> |
randomPixels(int w,
int h,
int percent,
Color background)
A function that generates a image with random picked pixels with random color.
|
static Lang.Val<BufferedImage> |
source(BufferedImage image) |
static Lang.Provider<BufferedImage> |
source(File file) |
static Lang.Provider<BufferedImage> |
source(InputStream is) |
static Img.F |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Img.F[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Lang.Producer<Color> RANDOM_COLOR
public static Lang.Producer<BufferedImage> TRACKING_PIXEL
A function that generates a transparent tracking pixel
public static Img.F[] values()
for (Img.F c : Img.F.values()) System.out.println(c);
public static Img.F valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Lang.Producer<BufferedImage> background(int w, int h)
A function that generates a transparent background in rectangular area
w - the widthh - the heightpublic static Lang.Producer<BufferedImage> randomPixels(int w, int h)
A function that generates a image with random picked pixels with random color. The background is transparent. There are about 6 percent of pixels in the image selected to be rendered with random color.
w - the widthh - the heightpublic static Lang.Producer<BufferedImage> randomPixels(int w, int h, Color background)
A function that generates a image with random picked pixels with random color. The image background color is specified as background. There are about 6 percent of pixels in the image selected to be rendered with random color.
w - the widthh - the heightpublic static Lang.Producer<BufferedImage> randomPixels(int w, int h, int percent)
A function that generates a image with random picked pixels with random color. The background is transparent.
w - the widthh - the heightpercent - the percent of pixels selected from all pixels in the imagepublic static Lang.Producer<BufferedImage> randomPixels(int w, int h, int percent, Color background)
A function that generates a image with random picked pixels with random color. The image use background color as the background
w - the widthh - the heightpercent - the percent of pixels selected from all pixels in the imagebackground - the background colorpublic static Lang.Producer<BufferedImage> background(int w, int h, Color color)
A function that generates a background in rectangular area with color specified
w - the widthh - the heightcolor - the background colorpublic static Lang.Producer<BufferedImage> background(int w, int h, Lang.Func0<Color> colorValueProvider)
A function that generates a background in rectangular area with color specified
w - the widthh - the heightcolorValueProvider - the background color providerpublic static Lang.Provider<BufferedImage> source(InputStream is)
public static Lang.Provider<BufferedImage> source(File file)
public static Lang.Val<BufferedImage> source(BufferedImage image)
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.