Class ImageAbstract

Helper methods for specifying simple or tiled images.

Hierarchy

  • Image

Constructors

Methods

Constructors

Methods

  • Describes an image as a file, by URL.

    Parameters

    • url: string

      URL of the source image file.

    Returns ImageView

    Display information used when drawing an image.

  • Parameters

    • url: string
    • minX: number
    • minY: number
    • maxX: number
    • maxY: number

    Returns ImageView

  • Describes an image as a tile within a larger image atlas file.

    Parameters

    • url: string

      URL of the source image atlas file.

    • rows: number

      How many rows of images are in the atlas.

    • cols: number

      How many columns of images are in the atlas.

    • row: number

      Row index of the tile, 0 is the ???-most.

    • col: number

      Column index of the tile, 0 is the left-most.

    Returns ImageView

    Display information used when drawing an image.

Generated using TypeDoc