pixi-jsFunctions
Function: getResolutionOfUrl()
> getResolutionOfUrl(url, defaultValue?): number
Defined in: node_modules/pixi.js/lib/utils/network/getResolutionOfUrl.d.ts:10
Internal
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
defaultValue?
number
the defaultValue if no filename prefix is set.
Returns
number
resolution / device pixel ratio of an asset