pivot.wtk.media
Class Picture
java.lang.Object
pivot.wtk.media.Image
pivot.wtk.media.Picture
- All Implemented Interfaces:
- Visual
public class Picture
- extends Image
Image representing a bitmapped picture.
TODO Add a resize() method that will scale the image?
TODO Provide access to the raster data and fire regionInvalidated() when
modified?
- Author:
- gbrown
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.
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()