NovelateMedia.relativePath

Gets a path relative to the given resolution. Ex. car.png is retrieved as ex. car_1280.png" if a relative file is found.

class NovelateMedia
final
string
relativePath
(
size_t width
)

Parameters

width size_t

The width to be relative to. Usually best kept within the available resolutions such as 800, 1024 and 1280.

Return Value

Type: string

The path of the media file relative to its resolution if a relative file is found, otherwise it returns the original media file path.

Meta