Interface Bitmap

All Superinterfaces:
Image

public interface Bitmap extends Image
Represents a bitmap image which can be painted via render(Renderer).
Since:
API version 7
  • Method Details

    • getWidth

      int getWidth()
      Description copied from interface: Image
      Returns the width
      Specified by:
      getWidth in interface Image
    • getHeight

      int getHeight()
      Description copied from interface: Image
      Returns the height
      Specified by:
      getHeight in interface Image
    • getFormat

      BitmapFormat getFormat()
    • getMemoryBlock

      MemoryBlock getMemoryBlock()
    • render

      void render(Renderer renderer)
      Call this method to start painting the bitmap. This method will take care of disposing allocated patterns during the rendering.
      Since:
      API version 7
    • showDisplayWindow

      void showDisplayWindow()
      Call this method to show a window which displays the bitmap. You should see this as a debug utility rather than a Control Surface API feature.
      Since:
      API version 7
    • setDisplayWindowTitle

      void setDisplayWindowTitle(String title)
      Updates the display window title.
      Since:
      API version 7
    • saveToDiskAsPPM

      void saveToDiskAsPPM(String path)
      Saves the image as a PPM file.
      Parameters:
      path - the location of the target file.
      Since:
      API version 7