Struct DrawingWand

Source
pub struct DrawingWand { /* private fields */ }

Implementations§

Source§

impl DrawingWand

Source§

impl DrawingWand

Source

pub fn draw_annotation( &mut self, x: f64, y: f64, text: &str, ) -> Result<(), MagickError>

Source

pub fn draw_circle(&mut self, ox: f64, oy: f64, px: f64, py: f64)

Source

pub fn draw_rectangle( &mut self, upper_left_x: f64, upper_left_y: f64, lower_right_x: f64, lower_right_y: f64, )

Source

pub fn get_font(&self) -> Result<String, MagickError>

Source

pub fn set_font(&mut self, s: &str) -> Result<(), MagickError>

Source

pub fn get_font_family(&self) -> Result<String, MagickError>

Source

pub fn set_font_family(&mut self, s: &str) -> Result<(), MagickError>

Source

pub fn get_vector_graphics(&self) -> Result<String, MagickError>

Source

pub fn set_vector_graphics(&mut self, s: &str) -> Result<(), MagickError>

Source

pub fn get_clip_path(&self) -> Result<String, MagickError>

Source

pub fn set_clip_path(&mut self, s: &str) -> Result<(), MagickError>

Source

pub fn fmt_string_settings(&self, f: &mut Formatter<'_>, prefix: &str) -> Result

Source

pub fn get_text_encoding(&self) -> Result<String, MagickError>

Source

pub fn set_text_encoding(&mut self, s: &str) -> Result<(), MagickError>

Source

pub fn fmt_string_unchecked_settings( &self, f: &mut Formatter<'_>, prefix: &str, ) -> Result

Source

pub fn get_border_color(&self) -> PixelWand

Source

pub fn set_border_color(&mut self, pw: &PixelWand)

Source

pub fn get_fill_color(&self) -> PixelWand

Source

pub fn set_fill_color(&mut self, pw: &PixelWand)

Source

pub fn get_stroke_color(&self) -> PixelWand

Source

pub fn set_stroke_color(&mut self, pw: &PixelWand)

Source

pub fn get_text_under_color(&self) -> PixelWand

Source

pub fn set_text_under_color(&mut self, pw: &PixelWand)

Source

pub fn fmt_pixel_settings(&self, f: &mut Formatter<'_>, prefix: &str) -> Result

Source

pub fn get_gravity(&self) -> GravityType

Source

pub fn set_gravity(&mut self, v: GravityType)

Source

pub fn get_opacity(&self) -> f64

Source

pub fn set_opacity(&mut self, v: f64)

Source

pub fn get_clip_rule(&self) -> FillRule

Source

pub fn set_clip_rule(&mut self, v: FillRule)

Source

pub fn get_clip_units(&self) -> ClipPathUnits

Source

pub fn set_clip_units(&mut self, v: ClipPathUnits)

Source

pub fn get_fill_rule(&self) -> FillRule

Source

pub fn set_fill_rule(&mut self, v: FillRule)

Source

pub fn get_fill_opacity(&self) -> f64

Source

pub fn set_fill_opacity(&mut self, v: f64)

Source

pub fn get_font_size(&self) -> f64

Source

pub fn set_font_size(&mut self, v: f64)

Source

pub fn get_font_style(&self) -> StyleType

Source

pub fn set_font_style(&mut self, v: StyleType)

Source

pub fn get_font_weight(&self) -> usize

Source

pub fn set_font_weight(&mut self, v: usize)

Source

pub fn get_font_stretch(&self) -> StretchType

Source

pub fn set_font_stretch(&mut self, v: StretchType)

Source

pub fn get_stroke_dash_offset(&self) -> f64

Source

pub fn set_stroke_dash_offset(&mut self, v: f64)

Source

pub fn get_stroke_line_cap(&self) -> LineCap

Source

pub fn set_stroke_line_cap(&mut self, v: LineCap)

Source

pub fn get_stroke_line_join(&self) -> LineJoin

Source

pub fn set_stroke_line_join(&mut self, v: LineJoin)

Source

pub fn get_stroke_miter_limit(&self) -> usize

Source

pub fn set_stroke_miter_limit(&mut self, v: usize)

Source

pub fn get_stroke_opacity(&self) -> f64

Source

pub fn set_stroke_opacity(&mut self, v: f64)

Source

pub fn get_stroke_width(&self) -> f64

Source

pub fn set_stroke_width(&mut self, v: f64)

Source

pub fn get_stroke_antialias(&self) -> MagickBooleanType

Source

pub fn set_stroke_antialias(&mut self, v: MagickBooleanType)

Source

pub fn get_text_alignment(&self) -> AlignType

Source

pub fn set_text_alignment(&mut self, v: AlignType)

Source

pub fn get_text_antialias(&self) -> MagickBooleanType

Source

pub fn set_text_antialias(&mut self, v: MagickBooleanType)

Source

pub fn get_text_decoration(&self) -> DecorationType

Source

pub fn set_text_decoration(&mut self, v: DecorationType)

Source

pub fn get_text_direction(&self) -> DirectionType

Source

pub fn set_text_direction(&mut self, v: DirectionType)

Source

pub fn get_text_kerning(&self) -> f64

Source

pub fn set_text_kerning(&mut self, v: f64)

Source

pub fn get_text_interline_spacing(&self) -> f64

Source

pub fn set_text_interline_spacing(&mut self, v: f64)

Source

pub fn get_text_interword_spacing(&self) -> f64

Source

pub fn set_text_interword_spacing(&mut self, v: f64)

Source

pub fn fmt_unchecked_settings( &self, f: &mut Formatter<'_>, prefix: &str, ) -> Result

Trait Implementations§

Source§

impl Clone for DrawingWand

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DrawingWand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DrawingWand

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Drop for DrawingWand

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for DrawingWand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.