PixelWand

class PixelWand : Closeable

PixelWand API. Used for specifying certain colors.

Constructors

Link copied to clipboard
fun PixelWand()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
external fun clearException()

Clear any internal exceptions

Link copied to clipboard
fun clone(): PixelWand

Clone the wand into a new one.

Link copied to clipboard
open override fun close()

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

Link copied to clipboard
external fun destroy()

It's recommended to manually destroy all wands when finished.

Link copied to clipboard
external fun getException(): NativeMagickException

Get the internal exception type and message

Link copied to clipboard
fun getExceptionType(): ExceptionType

Get the type of internal exception

Link copied to clipboard
external fun isSimilar(other: PixelWand, fuzz: Double): Boolean

Check if the distance between two colors is less than the specified distance.

Link copied to clipboard
external fun isWand(): Boolean

Check to see if this is still the correct wand.

Properties

Link copied to clipboard
var alpha: Double

The normalized alpha value of the PixelWand.

Link copied to clipboard
var alphaQuantum: Quantum

The alpha value of the PixelWand.

Link copied to clipboard
var black: Double

The normalized black color of the PixelWand.

Link copied to clipboard
var blackQuantum: Quantum

The black color of the PixelWand.

Link copied to clipboard
var blue: Double

The normalized blue color of the PixelWand.

Link copied to clipboard
var blueQuantum: Quantum

The blue color of the PixelWand.

Link copied to clipboard
var color: String

The color of the PixelWand as a string.

Link copied to clipboard
var colorCount: Long

The color count associated with this color.

Link copied to clipboard
var cyan: Double

The normalized cyan color of the PixelWand.

Link copied to clipboard
var cyanQuantum: Quantum

The cyan color of the PixelWand.

Link copied to clipboard
var fuzz: Double

The fuzz value of the PixelWand.

Link copied to clipboard
var green: Double

The normalized green color of the PixelWand.

Link copied to clipboard
var greenQuantum: Quantum

The green color of the PixelWand.

Link copied to clipboard
var hsl: HSL

The normalized HSL color of the PixelWand.

Link copied to clipboard
val id: ULong

The unique id of the wand.

Link copied to clipboard
var index: Quantum

The colormap index of the PixelWand.

Link copied to clipboard
val isInitialized: Boolean

Check to see if this is initialized with the underlying C obj.

Link copied to clipboard
var magenta: Double

The normalized magenta color of the PixelWand.

Link copied to clipboard
var magentaQuantum: Quantum

The magenta color of the PixelWand.

Link copied to clipboard
val normalizedColor: String

The normalized color of the PixelWand as a string.

Link copied to clipboard
var red: Double

The normalized red color of the PixelWand.

Link copied to clipboard
var redQuantum: Quantum

The red color of the PixelWand.

Link copied to clipboard
var yellow: Double

The normalized yellow color of the PixelWand.

Link copied to clipboard
var yellowQuantum: Quantum

The yellow color of the PixelWand.