Class Picture

  • All Implemented Interfaces:
    Visual

    public class Picture
    extends Image
    Image representing a bitmapped picture.
    • Constructor Detail

      • Picture

        public Picture​(java.awt.image.BufferedImage bufferedImage)
    • Method Detail

      • getBufferedImage

        public java.awt.image.BufferedImage getBufferedImage()
      • getWidth

        public int getWidth()
        Description copied from interface: Visual
        Returns the visual's width.
        Returns:
        Current width of this visual.
      • getHeight

        public int getHeight()
        Description copied from interface: Visual
        Returns the visual's height.
        Returns:
        Current height of this visual.
      • resample

        public void resample​(int size)
      • resample

        public void resample​(int width,
                             int height)
      • getBaseline

        public int getBaseline()
        Description copied from interface: Visual
        Returns the visual's baseline.
        Specified by:
        getBaseline in interface Visual
        Overrides:
        getBaseline in class Image
        Returns:
        The baseline relative to the origin of the visual, or -1 if this visual does not have a baseline.
      • setBaseline

        public void setBaseline​(int baseline)
      • paint

        public void paint​(java.awt.Graphics2D graphics)
        Description copied from interface: Visual
        Paints the visual.
        Parameters:
        graphics - The graphics context in which to paint the visual.