ImageDatabase

ImageDatabase object. Manager of the image database.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

ImageDatabase's companion object

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Number of images.

Functions

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun getImageById(imageId: Int): Image?

Obtain the Image by providing the ID. The ownership of the resulted Image is passed to the caller.

Link copied to clipboard
external fun getImageByIndex(index: Int): Image?

Obtain the Image by providing the Image index. The ownership of the resulted Image is passed to the caller.

Link copied to clipboard
fun import(data: DataBuffer, format: EImageFileFormat): Image?

Import a new image from file

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun remove(imageId: Int): Int

Remove an image from the database by providing the id.

Link copied to clipboard
external fun removeById(imageId: Int): Int

Removes an Image from the database by providing the ID.