Package | Description |
---|---|
com.projetloki.genesis |
A library for generating CSS from Java
(Tutorial).
|
com.projetloki.genesis.image |
Library for rapidly generating CSS background images.
|
Modifier and Type | Method and Description |
---|---|
static BackgroundLayer |
BackgroundLayer.of(Image image)
Returns a new background layer for the given background image.
|
Properties.Builder |
Properties.Builder.setListStyleImage(Image image) |
Modifier and Type | Method and Description |
---|---|
static Image |
Images.canvas(int width,
int height,
Color color)
Returns a blank image filled with the specified color.
|
static Image |
Images.canvas(int width,
int height,
Color color,
double alpha)
Returns a blank image filled with the specified color, and with the
specified opacity.
|
Image |
Image.concatX(Image rightIm)
Returns the image obtained by pasting the given image to the right of this
image.
|
Image |
Image.concatY(Image bottomIm)
Returns the image obtained by pasting the given image at the bottom of this
image.
|
Image |
Image.crop(int rectX,
int rectY,
int rectWidth,
int rectHeight)
Returns a rectangular region from this image.
|
Image |
Image.erase(double rate)
Returns the image obtained by erasing this image uniformly.
|
Image |
Image.erase(Gradient grad)
Returns the image obtained by erasing this image gradually.
|
Image |
Image.fill(Color color,
double alpha)
Returns the image obtained by filling this image uniformly.
|
Image |
Image.fill(Color color,
Gradient grad)
Returns the image obtained by filling this image gradually.
|
Image |
Image.flipX()
Returns the image obtained by flipping this image along the horizontal
axis.
|
Image |
Image.flipY()
Returns the image obtained by flipping this image along the vertical axis.
|
static Image |
Images.forJavaImage(Image javaIm)
Converts a Java image to an image.
|
Image |
Image.frame(Color backgroundColor)
Returns the image obtained by pasting this image on top of a monochromatic
opaque image.
|
Image |
Image.frame(Color backgroundColor,
int topPadding,
int rightPadding,
int bottomPadding,
int leftPadding)
Returns the image obtained by pasting this image on top of a larger
monochromatic opaque image.
|
static Image |
Images.load(File source)
Loads an image from an image file.
|
static Image |
Images.load(URL source)
Loads an image from the image file at the given URL.
|
Image |
Image.mask(Shape shape)
Returns the image obtained by making all the points lying outside the given
shape transparent.
|
Image |
Image.mask(Shape shape,
Border... borders)
Returns the image obtained by making all the points lying outside the given
shape transparent and drawing borders around the shape.
|
Image |
Image.mask(Shaper shaper)
Returns the image obtained by making all the points lying outside the given
shape transparent.
|
Image |
Image.mask(Shaper shaper,
Border... borders)
Returns the image obtained by making all the points lying outside the given
shape transparent and drawing borders around the shape.
|
Image |
Image.pasteThat(Image that)
Returns the image obtained by pasting that image on top of this image.
|
Image |
Image.pasteThat(Image that,
int destX,
int destY)
Returns the image obtained by pasting that image on top of this image, at
the given position.
|
Image |
Image.pasteThis(Image that)
Returns the image obtained by pasting this image on top of that image.
|
Image |
Image.pasteThis(Image that,
int destX,
int destY)
Returns the image obtained by pasting this image on top of that image, at
the given position.
|
Image |
Image.rotateCcw()
Returns the image obtained by rotating this image counterclockwise.
|
Image |
Image.rotateCw()
Returns the image obtained by rotating this image clockwise.
|
Image |
Image.scale(int newWidth,
int newHeight)
Returns the image obtained by resizing this image.
|
Image |
TangoIcon.toImage(int size)
Returns the image for this Tango icon with the given size.
|
Modifier and Type | Method and Description |
---|---|
static ImageFormat |
Images.bestFormat(Image im)
Tries to infer the best format in which to save the image.
|
Image |
Image.concatX(Image rightIm)
Returns the image obtained by pasting the given image to the right of this
image.
|
Image |
Image.concatY(Image bottomIm)
Returns the image obtained by pasting the given image at the bottom of this
image.
|
static void |
Images.draw(Image im,
BufferedImage out,
int x,
int y)
Draws the image on the given Java buffered image, at the specified
position.
|
Image |
Image.pasteThat(Image that)
Returns the image obtained by pasting that image on top of this image.
|
Image |
Image.pasteThat(Image that,
int destX,
int destY)
Returns the image obtained by pasting that image on top of this image, at
the given position.
|
Image |
Image.pasteThis(Image that)
Returns the image obtained by pasting this image on top of that image.
|
Image |
Image.pasteThis(Image that,
int destX,
int destY)
Returns the image obtained by pasting this image on top of that image, at
the given position.
|
static void |
Images.save(Image im,
File out)
Writes the image to the specified file.
|
static void |
Images.save(Image im,
File out,
ImageFormat format)
Writes the image to the specified file in the specified format.
|
static void |
Images.show(Image im)
Shows the image in a new pop-up window.
|
static void |
Images.show(Image im,
Color backgroundColor)
Shows the image in a new pop-up window.
|
Copyright © 2013. All Rights Reserved.