Struct graphicsmagick::wand::pixel::PixelWand
source · #[repr(transparent)]pub struct PixelWand { /* private fields */ }
Expand description
Wrapper of graphicsmagick_sys::PixelWand
.
Implementations§
source§impl PixelWand
impl PixelWand
sourcepub fn get_black(&self) -> c_double
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.
sourcepub fn get_black_quantum(&self) -> Quantum
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]
sourcepub fn get_blue(&self) -> c_double
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.
sourcepub fn get_blue_quantum(&self) -> Quantum
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]
sourcepub fn get_color_as_string(&mut self) -> MagickCString
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.
sourcepub fn get_color_count(&self) -> c_ulong
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.
sourcepub fn get_cyan(&self) -> c_double
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.
sourcepub fn get_cyan_quantum(&self) -> Quantum
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]
sourcepub fn get_green(&self) -> c_double
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.
sourcepub fn get_green_quantum(&self) -> Quantum
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]
sourcepub fn get_magenta(&self) -> c_double
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.
sourcepub fn get_magenta_quantum(&self) -> Quantum
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]
sourcepub fn get_opacity(&self) -> c_double
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.
sourcepub fn get_opacity_quantum(&self) -> Quantum
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]
sourcepub fn get_red(&self) -> c_double
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.
sourcepub fn get_red_quantum(&self) -> Quantum
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]
sourcepub fn get_yellow(&self) -> c_double
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.
sourcepub fn get_yellow_quantum(&self) -> Quantum
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]
sourcepub fn set_black(&mut self, black: c_double) -> &mut Self
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.
sourcepub fn set_black_quantum(&mut self, black: Quantum) -> &mut Self
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]
sourcepub fn set_blue(&mut self, blue: c_double) -> &mut Self
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.
sourcepub fn set_blue_quantum(&mut self, blue: Quantum) -> &mut Self
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]
sourcepub fn set_color<'a>(
&mut self,
color: impl IntoNullTerminatedString<'a>
) -> &mut Self
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.).
sourcepub fn set_color_count(&mut self, count: c_ulong) -> &mut Self
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.
sourcepub fn set_cyan(&mut self, cyan: c_double) -> &mut Self
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.
sourcepub fn set_cyan_quantum(&mut self, cyan: Quantum) -> &mut Self
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]
sourcepub fn set_green(&mut self, green: c_double) -> &mut Self
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.
sourcepub fn set_green_quantum(&mut self, green: Quantum) -> &mut Self
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]
sourcepub fn set_magenta(&mut self, magenta: c_double) -> &mut Self
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.
sourcepub fn set_magenta_quantum(&mut self, magenta: Quantum) -> &mut Self
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]
sourcepub fn set_opacity(&mut self, opacity: c_double) -> &mut Self
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.
sourcepub fn set_opacity_quantum(&mut self, opacity: Quantum) -> &mut Self
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]
sourcepub fn set_quantum_color(&mut self, color: &mut PixelPacket) -> &mut Self
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.
sourcepub fn set_red(&mut self, red: c_double) -> &mut Self
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.
sourcepub fn set_red_quantum(&mut self, red: Quantum) -> &mut Self
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]
sourcepub fn set_yellow(&mut self, yellow: c_double) -> &mut Self
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.
sourcepub fn set_yellow_quantum(&mut self, yellow: Quantum) -> &mut Self
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]