Magick

object Magick : Closeable

Functions

Link copied to clipboard
open override fun close()

This isn't meant to be called manually. You can call terminate instead. This does the same thing as terminate, but it's here to be used with a use{} block for convenience. For example Magick.initialize().use { }

Link copied to clipboard
@JvmName(name = "destroyWandId")
external fun destroyWandId(id: ULong)

Destroys any kind of wand with a specific id.

Link copied to clipboard
@JvmName(name = "destroyWandIds")
external fun destroyWandIds(ids: ULongArray)

Destroys any kind of wand whose id is contained in the array

Link copied to clipboard
external fun destroyWands()

Destroys all wands (same thing that happens when you call terminate)

Link copied to clipboard
fun initialize(): Magick

Initialize the environment - This MUST be called before calling anything else. This IS NOT called automatically for you.

Link copied to clipboard
external fun isInitialized(): Boolean

Checks whether the magick system was initialized

Link copied to clipboard
external fun magickQueryFonts(pattern: String): Array<String>?

Returns any font that matches the specified pattern (e.g. "*" for all).

Link copied to clipboard
fun setLogLevel(level: LogLevel)

Set the internal log level used. By default, a debug build = LogLevel.Debug log level, and a release build = LogLevel.Info log level. But you can change it or even turn it off.

Link copied to clipboard
external fun terminate()

Call this manually when you're finished to destruct the environment. This WILL NOT be called automatically.