public class GradiatedBackgroundProducer extends Object implements BackgroundProducer
| 构造器和说明 |
|---|
GradiatedBackgroundProducer() |
GradiatedBackgroundProducer(Color from,
Color to) |
| 限定符和类型 | 方法和说明 |
|---|---|
BufferedImage |
addBackground(BufferedImage image)
Add the background to the given image.
|
BufferedImage |
getBackground(int width,
int height) |
void |
setFromColor(Color fromColor) |
void |
setToColor(Color toColor) |
public BufferedImage getBackground(int width, int height)
getBackground 在接口中 BackgroundProducerpublic BufferedImage addBackground(BufferedImage image)
BackgroundProduceraddBackground 在接口中 BackgroundProducerimage - The image onto which the background will be rendered.public void setFromColor(Color fromColor)
public void setToColor(Color toColor)
Copyright © 2015. All rights reserved.