Uses of Interface
cit244.api.image.Image

Packages that use Image
Package
Description
Main API for CIT AViz sketches, including drawing, input, timing, and controls.
Images, sprite regions, sprite sheets, and frame-based animation.
  • Uses of Image in cit244.api

    Methods in cit244.api that return Image
    Modifier and Type
    Method
    Description
    Graphics.loadImage(String path)
    Loads an image from a file or packaged resource.
    Methods in cit244.api with parameters of type Image
    Modifier and Type
    Method
    Description
    default void
    Graphics.image(Image image, double x, double y)
    Draws an image at its native dimensions.
    void
    Graphics.image(Image image, double x, double y, double w, double h)
    Draws an image, resizing it to the given destination dimensions.
  • Uses of Image in cit244.api.image

    Methods in cit244.api.image that return Image
    Modifier and Type
    Method
    Description
    Sprite.image()
    Returns the value of the image record component.
    SpriteSheet.image()
    Returns the value of the image record component.
    Constructors in cit244.api.image with parameters of type Image
    Modifier
    Constructor
    Description
     
    Sprite(Image image, int x, int y, int width, int height)
    Checks that the selected region fits inside the source image.
     
    SpriteSheet(Image image, int tileSize)
    Creates a grid of square cells without margins or spacing.
     
    SpriteSheet(Image image, int tileW, int tileH)
    Creates a grid without margins or spacing.
     
    SpriteSheet(Image image, int tileW, int tileH, int margin, int spacing)
    Checks the dimensions, margin, and spacing.