Package ca.cgjennings.imageio
Class ImageLayer
- java.lang.Object
-
- ca.cgjennings.imageio.ImageLayer
-
public final class ImageLayer extends java.lang.Object
A layer in a multilayer image.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImageLayer.BlendingMode
Layer blending modes used in PSD images.
-
Constructor Summary
Constructors Constructor Description ImageLayer(java.awt.image.BufferedImage image)
ImageLayer(java.awt.image.BufferedImage image, int x, int y)
ImageLayer(java.awt.image.BufferedImage image, int x, int y, float alpha)
ImageLayer(java.awt.image.BufferedImage image, int x, int y, float alpha, ImageLayer.BlendingMode blendMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImage
createStyledImage()
float
getAlpha()
ImageLayer.BlendingMode
getBlendMode()
int
getHeight()
java.awt.image.BufferedImage
getImage()
java.awt.Point
getLocation()
java.awt.Rectangle
getRectangle()
java.awt.Dimension
getSize()
int
getWidth()
int
getX()
int
getY()
boolean
isVisible()
void
paint(java.awt.Graphics2D g)
void
setAlpha(float alpha)
void
setBlendMode(ImageLayer.BlendingMode blendMode)
void
setImage(java.awt.image.BufferedImage image)
void
setLocation(java.awt.Point p)
void
setVisible(boolean visible)
void
setX(int x)
void
setY(int y)
-
-
-
Constructor Detail
-
ImageLayer
public ImageLayer(java.awt.image.BufferedImage image)
-
ImageLayer
public ImageLayer(java.awt.image.BufferedImage image, int x, int y)
-
ImageLayer
public ImageLayer(java.awt.image.BufferedImage image, int x, int y, float alpha)
-
ImageLayer
public ImageLayer(java.awt.image.BufferedImage image, int x, int y, float alpha, ImageLayer.BlendingMode blendMode)
-
-
Method Detail
-
getX
public int getX()
-
getY
public int getY()
-
getImage
public java.awt.image.BufferedImage getImage()
-
getAlpha
public float getAlpha()
-
setX
public void setX(int x)
-
setY
public void setY(int y)
-
setImage
public void setImage(java.awt.image.BufferedImage image)
-
setAlpha
public void setAlpha(float alpha)
-
getBlendMode
public ImageLayer.BlendingMode getBlendMode()
-
setBlendMode
public void setBlendMode(ImageLayer.BlendingMode blendMode)
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getLocation
public java.awt.Point getLocation()
-
setLocation
public void setLocation(java.awt.Point p)
-
getRectangle
public java.awt.Rectangle getRectangle()
-
getSize
public java.awt.Dimension getSize()
-
paint
public void paint(java.awt.Graphics2D g)
-
createStyledImage
public java.awt.image.BufferedImage createStyledImage()
-
isVisible
public boolean isVisible()
-
setVisible
public void setVisible(boolean visible)
-
-