P
- type of the ParameterProviderpublic class Blank<P extends ParameterProvider<?>> extends Object implements ImageOperation<P>
Constructor and Description |
---|
Blank() |
Blank(Color backgroundColor,
int width,
int height) |
Blank(int type,
Color backgroundColor,
int width,
int height) |
Blank(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
apply(BufferedImage source,
P params) |
Color |
getBackgroundColor() |
int |
getHeight() |
int |
getType() |
int |
getWidth() |
void |
setBackgroundColor(Color backgroundColor)
Background color for the new canvas.
|
void |
setHeight(int height) |
void |
setType(int type)
One of BufferedImage.TYPE_*; defaults to TYPE_INT_ARGB_PRE.
|
void |
setWidth(int width) |
public Blank()
public Blank(int width, int height)
public Blank(Color backgroundColor, int width, int height)
public Blank(int type, Color backgroundColor, int width, int height)
public BufferedImage apply(BufferedImage source, P params) throws ImagingException
apply
in interface ImageOperation<P extends ParameterProvider<?>>
ImagingException
public int getType()
public void setType(int type)
BufferedImage.TYPE_INT_ARGB_PRE
public Color getBackgroundColor()
public void setBackgroundColor(Color backgroundColor)
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.