org.apache.pivot.wtk.media
Class Picture
java.lang.Object
org.apache.pivot.wtk.media.Image
org.apache.pivot.wtk.media.Picture
- All Implemented Interfaces:
- Visual
public class Picture
- extends Image
Image representing a bitmapped picture.
Nested Class Summary |
static class |
Picture.Interpolation
Enum defing the algorithms to apply when resizing a picture. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Picture
public Picture(BufferedImage bufferedImage)
getWidth
public int getWidth()
- Description copied from interface:
Visual
- Returns the visual's width.
getHeight
public int getHeight()
- Description copied from interface:
Visual
- Returns the visual's height.
resample
public void resample(int size)
resample
public void resample(int size,
Picture.Interpolation interpolation)
resample
public void resample(int width,
int height)
resample
public void resample(int width,
int height,
Picture.Interpolation interpolation)
paint
public void paint(Graphics2D graphics)
- Description copied from interface:
Visual
- Paints the visual.
- Parameters:
graphics
- The graphics context in which to paint the visual.
getBufferedImage
public BufferedImage getBufferedImage()