#[repr(transparent)]
pub struct PixelWand { /* private fields */ }
Expand description

Wrapper of graphicsmagick_sys::PixelWand.

Implementations§

source§

impl PixelWand

source

pub fn new() -> Self

source

pub unsafe fn from_wand(wand: *mut PixelWand) -> Option<PixelWand>

Safety
  • wand - must points to either NULL, or a valid allocation.
source

pub fn wand(&self) -> *const PixelWand

source

pub fn wand_mut(&mut self) -> *mut PixelWand

source§

impl PixelWand

source

pub fn get_black(&self) -> c_double

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetblack

PixelGetBlack() returns the normalized black color of the pixel wand.

source

pub fn get_black_quantum(&self) -> Quantum

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetblackquantum

PixelGetBlackQuantum() returns the black color of the pixel wand. The

color is in the range of [0..MaxRGB]

source

pub fn get_blue(&self) -> c_double

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetblue

PixelGetBlue(const) returns the normalized blue color of the pixel wand.

source

pub fn get_blue_quantum(&self) -> Quantum

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetbluequantum

PixelGetBlueQuantum(const ) returns the blue color of the pixel wand. The

color is in the range of [0..MaxRGB]

source

pub fn get_color_as_string(&mut self) -> MagickCString

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetcolorasstring

PixelGetColorAsString() gets the color of the pixel wand.

source

pub fn get_color_count(&self) -> c_ulong

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetcolorcount

PixelGetColorCount() returns the color count associated with this color.

source

pub fn get_cyan(&self) -> c_double

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetcyan

PixelGetCyan() returns the normalized cyan color of the pixel wand.

source

pub fn get_cyan_quantum(&self) -> Quantum

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetcyanquantum

PixelGetCyanQuantum() returns the cyan color of the pixel wand. The color

is in the range of [0..MaxRGB]

source

pub fn get_green(&self) -> c_double

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetgreen

PixelGetGreen(const ) returns the normalized green color of the pixel wand.

source

pub fn get_green_quantum(&self) -> Quantum

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetgreenquantum

PixelGetGreenQuantum(const ) returns the green color of the pixel wand. The

color is in the range of [0..MaxRGB]

source

pub fn get_magenta(&self) -> c_double

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetmagenta

PixelGetMagenta() returns the normalized magenta color of the pixel wand.

source

pub fn get_magenta_quantum(&self) -> Quantum

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetmagentaquantum

PixelGetMagentaQuantum() returns the magenta color of the pixel wand. The

color is in the range of [0..MaxRGB]

source

pub fn get_opacity(&self) -> c_double

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetopacity

PixelGetOpacity(const ) returns the normalized opacity color of the pixel

wand.

source

pub fn get_opacity_quantum(&self) -> Quantum

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetopacityquantum

PixelGetOpacityQuantum(const ) returns the opacity color of the pixel wand.

The color is in the range of [0..MaxRGB]

source

pub fn get_red(&self) -> c_double

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetred

PixelGetRed(const ) returns the normalized red color of the pixel wand.

source

pub fn get_red_quantum(&self) -> Quantum

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetredquantum

PixelGetRedQuantum(const ) returns the red color of the pixel wand. The

color is in the range of [0..MaxRGB]

source

pub fn get_yellow(&self) -> c_double

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetyellow

PixelGetYellow() returns the normalized yellow color of the pixel wand.

source

pub fn get_yellow_quantum(&self) -> Quantum

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelgetyellowquantum

PixelGetYellowQuantum() returns the yellow color of the pixel wand. The

color is in the range of [0..MaxRGB]

source

pub fn set_black(&mut self, black: c_double) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetblack

PixelSetBlack() sets the normalized black color of the pixel wand.

source

pub fn set_black_quantum(&mut self, black: Quantum) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetblackquantum

PixelSetBlackQuantum() sets the black color of the pixel wand. The color

must be in the range of [0..MaxRGB]

source

pub fn set_blue(&mut self, blue: c_double) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetblue

PixelSetBlue() sets the normalized blue color of the pixel wand.

source

pub fn set_blue_quantum(&mut self, blue: Quantum) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetbluequantum

PixelSetBlueQuantum() sets the blue color of the pixel wand. The color must

be in the range of [0..MaxRGB]

source

pub fn set_color<'a>( &mut self, color: impl IntoNullTerminatedString<'a> ) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetcolor

PixelSetColor() sets the color of the pixel wand with a string (e.g.

"blue", "#0000ff", "rgb(0,0,255)", etc.).

source

pub fn set_color_count(&mut self, count: c_ulong) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetcolorcount

PixelSetColorCount() sets the color count of the pixel wand.

source

pub fn set_cyan(&mut self, cyan: c_double) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetcyan

PixelSetCyan() sets the normalized cyan color of the pixel wand.

source

pub fn set_cyan_quantum(&mut self, cyan: Quantum) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetcyanquantum

PixelSetCyanQuantum() sets the cyan color of the pixel wand. The color must

be in the range of [0..MaxRGB]

source

pub fn set_green(&mut self, green: c_double) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetgreen

PixelSetGreen() sets the normalized green color of the pixel wand.

source

pub fn set_green_quantum(&mut self, green: Quantum) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetgreenquantum

PixelSetGreenQuantum() sets the green color of the pixel wand. The color must

be in the range of [0..MaxRGB]

source

pub fn set_magenta(&mut self, magenta: c_double) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetmagenta

PixelSetMagenta() sets the normalized magenta color of the pixel wand.

source

pub fn set_magenta_quantum(&mut self, magenta: Quantum) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetmagentaquantum

PixelSetMagentaQuantum() sets the magenta color of the pixel wand. The

color must be in the range of [0..MaxRGB]

source

pub fn set_opacity(&mut self, opacity: c_double) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetopacity

PixelSetOpacity() sets the normalized opacity color of the pixel wand.

source

pub fn set_opacity_quantum(&mut self, opacity: Quantum) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetopacityquantum

PixelSetOpacityQuantum() sets the opacity color of the pixel wand. The

color must be in the range of [0..MaxRGB]

source

pub fn set_quantum_color(&mut self, color: &mut PixelPacket) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetquantumcolor

PixelSetQuantumColor() sets the color of the pixel wand.

source

pub fn set_red(&mut self, red: c_double) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetred

PixelSetRed() sets the normalized red color of the pixel wand.

source

pub fn set_red_quantum(&mut self, red: Quantum) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetredquantum

PixelSetRedQuantum() sets the red color of the pixel wand. The color must

be in the range of [0..MaxRGB]

source

pub fn set_yellow(&mut self, yellow: c_double) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetyellow

PixelSetYellow() sets the normalized yellow color of the pixel wand.

source

pub fn set_yellow_quantum(&mut self, yellow: Quantum) -> &mut Self

http://www.graphicsmagick.org/wand/pixel_wand.html#pixelsetyellowquantum

PixelSetYellowQuantum() sets the yellow color of the pixel wand. The color

must be in the range of [0..MaxRGB]

Trait Implementations§

source§

impl Clone for PixelWand

source§

fn clone(&self) -> Self

Returns a copy 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 PixelWand

source§

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

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

impl Default for PixelWand

source§

fn default() -> Self

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

impl Drop for PixelWand

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.