Function getResolutionOfUrl

  • get the resolution / device pixel ratio of an asset by looking for the prefix used by spritesheets and image urls

    Parameters

    • url: string

      the image path

    • Optional defaultValue: number

      the defaultValue if no filename prefix is set.

    Returns number

    resolution / device pixel ratio of an asset

    Memberof

    PIXI.utils

    Function

    getResolutionOfUrl

Generated using TypeDoc