luadocs/content/lua.scripts.api.manual/dtutils/find_image_by_id.md

532 B

title id weight draft author
find_image_by_id find_image_by_id 35 false people

NAME

find_image_by_id

SYNOPSIS

look up an image by ID in the database

USAGE

local du = require "lib/dtutils"
local img = du.find_image_by_id(imgid)

imgid - int - the image ID to retrieve

DESCRIPTION

find_image_by_id looks up an image by ID in the database.

RETURN VALUE

img - dt_lua_image_t - image with the given ID if found, nil if not