Skip to main content

Crate magick_rust

Crate magick_rust 

Source
Expand description

“Safe” wrapper around the low-level bindings to ImageMagick.

Prior to using the ImageMagick system, the application should invoke magick_wand_genesis(), which maps directly to MagickWandGenesis. Likewise, when an application is done using ImageMagick, invoke the magick_wand_terminus() function, which maps to MagickWandTerminus.

Re-exports§

pub use crate::bindings::AlignType;
pub use crate::bindings::AlphaChannelOption;
pub use crate::bindings::AutoThresholdMethod;
pub use crate::bindings::ChannelType;
pub use crate::bindings::ClipPathUnits;
pub use crate::bindings::ColorspaceType;
pub use crate::bindings::CompositeOperator;
pub use crate::bindings::CompressionType;
pub use crate::bindings::DecorationType;
pub use crate::bindings::DirectionType;
pub use crate::bindings::DisposeType;
pub use crate::bindings::DitherMethod;
pub use crate::bindings::EndianType;
pub use crate::bindings::FillRule;
pub use crate::bindings::FilterType;
pub use crate::bindings::GravityType;
pub use crate::bindings::ImageType;
pub use crate::bindings::InterlaceType;
pub use crate::bindings::KernelInfoType;
pub use crate::bindings::LayerMethod;
pub use crate::bindings::LineCap;
pub use crate::bindings::LineJoin;
pub use crate::bindings::MagickEvaluateOperator;
pub use crate::bindings::MagickFunction;
pub use crate::bindings::MetricType;
pub use crate::bindings::MorphologyMethod;
pub use crate::bindings::OrientationType;
pub use crate::bindings::PaintMethod;
pub use crate::bindings::PixelInterpolateMethod;
pub use crate::bindings::PixelMask;
pub use crate::bindings::RenderingIntent;
pub use crate::bindings::ResolutionType;
pub use crate::bindings::ResourceType;
pub use crate::bindings::StatisticType;
pub use crate::bindings::StretchType;
pub use crate::bindings::StyleType;
pub use crate::bindings::VirtualPixelMethod;

Modules§

bindings

Structs§

DrawingWand
A safe wrapper around an ImageMagick DrawingWand.
GeometryInfo
A set of up to five numeric parameters (rho, sigma, xi, psi, chi) used by ImageMagick geometry and kernel operations.
HSL
A color expressed in the hue, saturation, and lightness color space.
Image
A borrowed handle to a single image owned by a MagickWand.
ImageMut
A handle to a single frame for mutable access.
ImageRef
A handle to a single frame for read-only access.
Images
A read-only view over the images (frames) held by a MagickWand.
ImagesMut
A mutable view over the images (frames) held by a MagickWand.
KernelBuilder
Builder, that creates instances of KernelInfo
KernelInfo
A convolution or morphology kernel, wrapping ImageMagick’s KernelInfo.
MagickError
The crate’s error type, wrapping an error message string.
MagickWand
A safe wrapper around an ImageMagick MagickWand.
PixelWand
A safe wrapper around an ImageMagick PixelWand.

Functions§

magick_query_fonts
Return the list of font names matching the given pattern.
magick_wand_genesis
This function must be called before any other ImageMagick operations are attempted. This function is safe to be called repeatedly.
magick_wand_terminus
This function should be called when ImageMagick is no longer needed. This function is safe to be called repeatedly.