PixelWand class

PixelWand is used to manage and control pixels in an image.

Create a new PixelWand with newPixelWand or with the other available constructors.

When done with a PixelWand, destroy it with destroyPixelWand.

Constructors

PixelWand.newPixelWand()
NewPixelWand() returns a new pixel wand.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearPixelWand() → void
ClearPixelWand() clears resources associated with the PixelWand.
clonePixelWand() → PixelWand
ClonePixelWand() makes an exact copy of the specified wand.
destroyPixelWand() → void
DestroyPixelWand() deallocates resources associated with a PixelWand.
isPixelWand() → bool
IsPixelWand() returns true if the wand is verified as a pixel wand.
isPixelWandSimilar({required PixelWand other, required double fuzz}) → bool
IsPixelWandSimilar() returns MagickTrue if the distance between two colors is less than the specified distance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pixelClearException() → bool
PixelClearException() clear any exceptions associated with the iterator.
pixelGetAlpha() → double
PixelGetAlpha() returns the normalized alpha value of the pixel wand.
pixelGetBlack() → double
PixelGetBlack() returns the normalized black color of the pixel wand.
pixelGetBlue() → double
PixelGetBlue() returns the normalized blue color of the pixel wand.
pixelGetColorAsNormalizedString() → String?
PixelGetColorAsNormalizedString() returns the normalized color of the pixel wand as a string.
pixelGetColorAsString() → String?
PixelGetColorAsString() returns the color of the pixel wand as a string.
pixelGetColorCount() → int
PixelGetColorCount() returns the color count associated with this color.
pixelGetCyan() → double
PixelGetCyan() returns the normalized cyan color of the pixel wand.
pixelGetException() → PixelGetExceptionResult
PixelGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.
pixelGetExceptionType() → ExceptionType
PixelGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.
pixelGetFuzz() → double
PixelGetFuzz() returns the normalized fuzz value of the pixel wand.
pixelGetGreen() → double
PixelGetGreen() returns the normalized green color of the pixel wand.
pixelGetHSL() → PixelGetHSLResult
PixelGetHSL() returns the normalized HSL color of the pixel wand.
pixelGetMagenta() → double
PixelGetMagenta() returns the normalized magenta color of the pixel wand.
pixelGetMagickColor() → PixelInfo
PixelGetMagickColor() gets the magick color of the pixel wand.
pixelGetPixel() → PixelInfo
PixelGetPixel() returns the pixel wand pixel.
pixelGetQuantumPacket() → PixelInfo
PixelGetQuantumPacket() gets the packet of the pixel wand as a PixelInfo.
pixelGetRed() → double
PixelGetRed() returns the normalized red color of the pixel wand.
pixelGetYellow() → double
PixelGetYellow() returns the normalized yellow color of the pixel wand.
pixelSetAlpha(double alpha) → void
PixelSetAlpha() sets the normalized alpha value of the pixel wand.
pixelSetBlack(double black) → void
PixelSetBlack() sets the normalized black color of the pixel wand.
pixelSetBlue(double blue) → void
PixelSetBlue() sets the normalized blue color of the pixel wand.
pixelSetColor(String color) → bool
PixelSetColor() sets the color of the pixel wand with a string (e.g. "blue", "#0000ff", "rgb(0,0,255)", "cmyk(100,100,100,10)", etc.).
pixelSetColorCount(int colorCount) → void
PixelSetColorCount() sets the color count of the pixel wand.
pixelSetColorFromWand(PixelWand color) → void
PixelSetColorFromWand() sets the color of the pixel wand.
pixelSetCyan(double cyan) → void
PixelSetCyan() sets the normalized cyan color of the pixel wand.
pixelSetFuzz(double fuzz) → void
PixelSetFuzz() sets the fuzz value of the pixel wand.
pixelSetGreen(double green) → void
PixelSetGreen() sets the normalized green color of the pixel wand.
pixelSetHSL({required double hue, required double saturation, required double lightness}) → void
PixelSetHSL() sets the normalized HSL color of the pixel wand.
pixelSetMagenta(double magenta) → void
PixelSetMagenta() sets the normalized magenta color of the pixel wand.
pixelSetPixelColor(PixelInfo color) → void
PixelSetPixelColor() sets the color of the pixel wand.
pixelSetRed(double red) → void
PixelSetRed() sets the normalized red color of the pixel wand.
pixelSetYellow(double yellow) → void
PixelSetYellow() sets the normalized yellow color of the pixel wand.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

newPixelWands(int count) → List<PixelWand>
NewPixelWands() returns a list of pixel wands.