|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.coobird.thumbnailator.builders.BufferedImageBuilder
public final class BufferedImageBuilder
A builder for creating BufferedImage with specified parameters.
| Constructor Summary | |
|---|---|
BufferedImageBuilder(Dimension size)
Instantiates a BufferedImageBuilder with the specified size, and
the default image type. |
|
BufferedImageBuilder(Dimension size,
int imageType)
Instantiates a BufferedImageBuilder with the specified size and
image type. |
|
BufferedImageBuilder(int width,
int height)
Instantiates a BufferedImageBuilder with the specified size, and
the default image type. |
|
BufferedImageBuilder(int width,
int height,
int imageType)
Instantiates a BufferedImageBuilder with the specified size and
image type. |
|
| Method Summary | |
|---|---|
BufferedImage |
build()
Generates a new BufferedImage. |
BufferedImageBuilder |
height(int height)
Sets the height for the BufferedImage. |
BufferedImageBuilder |
imageType(int imageType)
Sets the type of the image of the BufferedImage. |
BufferedImageBuilder |
size(int width,
int height)
Sets the size for the BufferedImage. |
BufferedImageBuilder |
width(int width)
Sets the width for the BufferedImage. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferedImageBuilder(Dimension size)
BufferedImageBuilder with the specified size, and
the default image type.
size - The size of the BufferedImage to build.
public BufferedImageBuilder(Dimension size,
int imageType)
BufferedImageBuilder with the specified size and
image type.
size - The size of the BufferedImage to build.imageType - The image type of the BufferedImage to build.
public BufferedImageBuilder(int width,
int height)
BufferedImageBuilder with the specified size, and
the default image type.
width - The width of the BufferedImage to build.height - The height of the BufferedImage to build.
public BufferedImageBuilder(int width,
int height,
int imageType)
BufferedImageBuilder with the specified size and
image type.
width - The width of the BufferedImage to build.height - The height of the BufferedImage to build.imageType - The image type of the BufferedImage to build.| Method Detail |
|---|
public BufferedImage build()
BufferedImage.
BufferedImage from the
parameters set in the BufferedImageBuilder.public BufferedImageBuilder imageType(int imageType)
BufferedImage.
imageType - The image type to use.
BufferedImageBuilder instance.
public BufferedImageBuilder size(int width,
int height)
BufferedImage.
width - The width of the image to create.height - The height of the image to create.
BufferedImageBuilder instance.public BufferedImageBuilder width(int width)
BufferedImage.
width - The width of the image to create.
BufferedImageBuilder instance.public BufferedImageBuilder height(int height)
BufferedImage.
height - The height of the image to create.
BufferedImageBuilder instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||