|
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `DynamicImage` enum in crate `image`."><meta name="keywords" content="rust, rustlang, rust-lang, DynamicImage"><title>image::DynamicImage - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../image/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Enum DynamicImage</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.ImageLuma8">ImageLuma8</a><a href="#variant.ImageLumaA8">ImageLumaA8</a><a href="#variant.ImageRgb8">ImageRgb8</a><a href="#variant.ImageRgba8">ImageRgba8</a><a href="#variant.ImageBgr8">ImageBgr8</a><a href="#variant.ImageBgra8">ImageBgra8</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.adjust_contrast">adjust_contrast</a><a href="#method.as_bgr8">as_bgr8</a><a href="#method.as_bgra8">as_bgra8</a><a href="#method.as_flat_samples">as_flat_samples</a><a href="#method.as_luma8">as_luma8</a><a href="#method.as_luma_alpha8">as_luma_alpha8</a><a href="#method.as_mut_bgr8">as_mut_bgr8</a><a href="#method.as_mut_bgra8">as_mut_bgra8</a><a href="#method.as_mut_luma8">as_mut_luma8</a><a href="#method.as_mut_luma_alpha8">as_mut_luma_alpha8</a><a href="#method.as_mut_rgb8">as_mut_rgb8</a><a href="#method.as_mut_rgba8">as_mut_rgba8</a><a href="#method.as_rgb8">as_rgb8</a><a href="#method.as_rgba8">as_rgba8</a><a href="#method.blur">blur</a><a href="#method.brighten">brighten</a><a href="#method.color">color</a><a href="#method.crop">crop</a><a href="#method.filter3x3">filter3x3</a><a href="#method.fliph">fliph</a><a href="#method.flipv">flipv</a><a href="#method.grayscale">grayscale</a><a href="#method.huerotate">huerotate</a><a href="#method.invert">invert</a><a href="#method.new_bgr8">new_bgr8</a><a href="#method.new_bgra8">new_bgra8</a><a href="#method.new_luma8">new_luma8</a><a href="#method.new_luma_a8">new_luma_a8</a><a href="#method.new_rgb8">new_rgb8</a><a href="#method.new_rgba8">new_rgba8</a><a href="#method.raw_pixels">raw_pixels</a><a href="#method.resize">resize</a><a href="#method.resize_exact">resize_exact</a><a href="#method.resize_to_fill">resize_to_fill</a><a href="#method.rotate180">rotate180</a><a href="#method.rotate270">rotate270</a><a href="#method.rotate90">rotate90</a><a href="#method.save">save</a><a href="#method.thumbnail">thumbnail</a><a href="#method.thumbnail_exact">thumbnail_exact</a><a href="#method.to_bgr">to_bgr</a><a href="#method.to_bgra">to_bgra</a><a href="#method.to_luma">to_luma</a><a href="#method.to_luma_alpha">to_luma_alpha</a><a href="#method.to_rgb">to_rgb</a><a href="#method.to_rgba">to_rgba</a><a href="#method.unsharpen">unsharpen</a><a href="#method.write_to">write_to</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-GenericImage">GenericImage</a><a href="#impl-GenericImageView">GenericImageView</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-SetParameter">SetParameter</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>image</a></p><script>window.sidebarCurrent = {name: 'DynamicImage', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/image/dynimage.rs.html#38-56' title='goto source code'>[src]</a></span><span class='in-band'>Enum <a href='index.html'>image</a>::<wbr><a class="enum" href=''>DynamicImage</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust enum'>pub enum DynamicImage {
|
|
|
ImageLuma8(<a class="type" href="../image/type.GrayImage.html" title="type image::GrayImage">GrayImage</a>),
|
|
|
ImageLumaA8(<a class="type" href="../image/type.GrayAlphaImage.html" title="type image::GrayAlphaImage">GrayAlphaImage</a>),
|
|
|
ImageRgb8(<a class="type" href="../image/type.RgbImage.html" title="type image::RgbImage">RgbImage</a>),
|
|
|
ImageRgba8(<a class="type" href="../image/type.RgbaImage.html" title="type image::RgbaImage">RgbaImage</a>),
|
|
|
ImageBgr8(<a class="struct" href="../image/struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a><<a class="struct" href="../image/struct.Bgr.html" title="struct image::Bgr">Bgr</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>>),
|
|
|
ImageBgra8(<a class="struct" href="../image/struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a><<a class="struct" href="../image/struct.Bgra.html" title="struct image::Bgra">Bgra</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>>),
|
|
|
}</pre></div><div class='docblock'><p>A Dynamic Image</p>
|
|
|
</div><h2 id='variants' class='variants small-section-header'>
|
|
|
Variants<a href='#variants' class='anchor'></a></h2>
|
|
|
<div id="variant.ImageLuma8" class="variant small-section-header"><a href="#variant.ImageLuma8" class="anchor field"></a><code id='ImageLuma8.v'>ImageLuma8(<a class="type" href="../image/type.GrayImage.html" title="type image::GrayImage">GrayImage</a>)</code></div><div class='docblock'><p>Each pixel in this image is 8-bit Luma</p>
|
|
|
</div><div id="variant.ImageLumaA8" class="variant small-section-header"><a href="#variant.ImageLumaA8" class="anchor field"></a><code id='ImageLumaA8.v'>ImageLumaA8(<a class="type" href="../image/type.GrayAlphaImage.html" title="type image::GrayAlphaImage">GrayAlphaImage</a>)</code></div><div class='docblock'><p>Each pixel in this image is 8-bit Luma with alpha</p>
|
|
|
</div><div id="variant.ImageRgb8" class="variant small-section-header"><a href="#variant.ImageRgb8" class="anchor field"></a><code id='ImageRgb8.v'>ImageRgb8(<a class="type" href="../image/type.RgbImage.html" title="type image::RgbImage">RgbImage</a>)</code></div><div class='docblock'><p>Each pixel in this image is 8-bit Rgb</p>
|
|
|
</div><div id="variant.ImageRgba8" class="variant small-section-header"><a href="#variant.ImageRgba8" class="anchor field"></a><code id='ImageRgba8.v'>ImageRgba8(<a class="type" href="../image/type.RgbaImage.html" title="type image::RgbaImage">RgbaImage</a>)</code></div><div class='docblock'><p>Each pixel in this image is 8-bit Rgb with alpha</p>
|
|
|
</div><div id="variant.ImageBgr8" class="variant small-section-header"><a href="#variant.ImageBgr8" class="anchor field"></a><code id='ImageBgr8.v'>ImageBgr8(<a class="struct" href="../image/struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a><<a class="struct" href="../image/struct.Bgr.html" title="struct image::Bgr">Bgr</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>>)</code></div><div class='docblock'><p>Each pixel in this image is 8-bit Bgr</p>
|
|
|
</div><div id="variant.ImageBgra8" class="variant small-section-header"><a href="#variant.ImageBgra8" class="anchor field"></a><code id='ImageBgra8.v'>ImageBgra8(<a class="struct" href="../image/struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a><<a class="struct" href="../image/struct.Bgra.html" title="struct image::Bgra">Bgra</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>>)</code></div><div class='docblock'><p>Each pixel in this image is 8-bit Bgr with alpha</p>
|
|
|
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/image/dynimage.rs.html#104-566' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new_luma8' class="method"><code id='new_luma8.v'>pub fn <a href='#method.new_luma8' class='fnname'>new_luma8</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#106-108' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a dynamic image backed by a buffer of grey pixels.</p>
|
|
|
</div><h4 id='method.new_luma_a8' class="method"><code id='new_luma_a8.v'>pub fn <a href='#method.new_luma_a8' class='fnname'>new_luma_a8</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#112-114' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a dynamic image backed by a buffer of grey
|
|
|
pixels with transparency.</p>
|
|
|
</div><h4 id='method.new_rgb8' class="method"><code id='new_rgb8.v'>pub fn <a href='#method.new_rgb8' class='fnname'>new_rgb8</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#117-119' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a dynamic image backed by a buffer of RGB pixels.</p>
|
|
|
</div><h4 id='method.new_rgba8' class="method"><code id='new_rgba8.v'>pub fn <a href='#method.new_rgba8' class='fnname'>new_rgba8</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#122-124' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a dynamic image backed by a buffer of RGBA pixels.</p>
|
|
|
</div><h4 id='method.new_bgra8' class="method"><code id='new_bgra8.v'>pub fn <a href='#method.new_bgra8' class='fnname'>new_bgra8</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#127-129' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a dynamic image backed by a buffer of BGRA pixels.</p>
|
|
|
</div><h4 id='method.new_bgr8' class="method"><code id='new_bgr8.v'>pub fn <a href='#method.new_bgr8' class='fnname'>new_bgr8</a>(w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, h: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#132-134' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a dynamic image backed by a buffer of BGR pixels.</p>
|
|
|
</div><h4 id='method.to_rgb' class="method"><code id='to_rgb.v'>pub fn <a href='#method.to_rgb' class='fnname'>to_rgb</a>(&self) -> <a class="type" href="../image/type.RgbImage.html" title="type image::RgbImage">RgbImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#138-142' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a copy of this image as an RGB image.</p>
|
|
|
</div><h4 id='method.to_rgba' class="method"><code id='to_rgba.v'>pub fn <a href='#method.to_rgba' class='fnname'>to_rgba</a>(&self) -> <a class="type" href="../image/type.RgbaImage.html" title="type image::RgbaImage">RgbaImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#145-149' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a copy of this image as an RGBA image.</p>
|
|
|
</div><h4 id='method.to_bgr' class="method"><code id='to_bgr.v'>pub fn <a href='#method.to_bgr' class='fnname'>to_bgr</a>(&self) -> <a class="struct" href="../image/struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a><<a class="struct" href="../image/struct.Bgr.html" title="struct image::Bgr">Bgr</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>></code><a class='srclink' href='../src/image/dynimage.rs.html#153-157' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a copy of this image as an BGR image.</p>
|
|
|
</div><h4 id='method.to_bgra' class="method"><code id='to_bgra.v'>pub fn <a href='#method.to_bgra' class='fnname'>to_bgra</a>(&self) -> <a class="struct" href="../image/struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a><<a class="struct" href="../image/struct.Bgra.html" title="struct image::Bgra">Bgra</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>></code><a class='srclink' href='../src/image/dynimage.rs.html#160-164' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a copy of this image as an BGRA image.</p>
|
|
|
</div><h4 id='method.to_luma' class="method"><code id='to_luma.v'>pub fn <a href='#method.to_luma' class='fnname'>to_luma</a>(&self) -> <a class="type" href="../image/type.GrayImage.html" title="type image::GrayImage">GrayImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#167-171' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a copy of this image as a Luma image.</p>
|
|
|
</div><h4 id='method.to_luma_alpha' class="method"><code id='to_luma_alpha.v'>pub fn <a href='#method.to_luma_alpha' class='fnname'>to_luma_alpha</a>(&self) -> <a class="type" href="../image/type.GrayAlphaImage.html" title="type image::GrayAlphaImage">GrayAlphaImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#174-178' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns a copy of this image as a LumaA image.</p>
|
|
|
</div><h4 id='method.crop' class="method"><code id='crop.v'>pub fn <a href='#method.crop' class='fnname'>crop</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#181-183' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a cut out of this image delimited by the bounding rectangle.</p>
|
|
|
</div><h4 id='method.as_rgb8' class="method"><code id='as_rgb8.v'>pub fn <a href='#method.as_rgb8' class='fnname'>as_rgb8</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="type" href="../image/type.RgbImage.html" title="type image::RgbImage">RgbImage</a>></code><a class='srclink' href='../src/image/dynimage.rs.html#186-191' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a reference to an 8bit RGB image</p>
|
|
|
</div><h4 id='method.as_mut_rgb8' class="method"><code id='as_mut_rgb8.v'>pub fn <a href='#method.as_mut_rgb8' class='fnname'>as_mut_rgb8</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut <a class="type" href="../image/type.RgbImage.html" title="type image::RgbImage">RgbImage</a>></code><a class='srclink' href='../src/image/dynimage.rs.html#194-199' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a mutable reference to an 8bit RGB image</p>
|
|
|
</div><h4 id='method.as_bgr8' class="method"><code id='as_bgr8.v'>pub fn <a href='#method.as_bgr8' class='fnname'>as_bgr8</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../image/struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a><<a class="struct" href="../image/struct.Bgr.html" title="struct image::Bgr">Bgr</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>>></code><a class='srclink' href='../src/image/dynimage.rs.html#203-208' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a reference to an 8bit BGR image</p>
|
|
|
</div><h4 id='method.as_mut_bgr8' class="method"><code id='as_mut_bgr8.v'>pub fn <a href='#method.as_mut_bgr8' class='fnname'>as_mut_bgr8</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut <a class="struct" href="../image/struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a><<a class="struct" href="../image/struct.Bgr.html" title="struct image::Bgr">Bgr</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>>></code><a class='srclink' href='../src/image/dynimage.rs.html#211-216' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a mutable reference to an 8bit BGR image</p>
|
|
|
</div><h4 id='method.as_rgba8' class="method"><code id='as_rgba8.v'>pub fn <a href='#method.as_rgba8' class='fnname'>as_rgba8</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="type" href="../image/type.RgbaImage.html" title="type image::RgbaImage">RgbaImage</a>></code><a class='srclink' href='../src/image/dynimage.rs.html#219-224' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a reference to an 8bit RGBA image</p>
|
|
|
</div><h4 id='method.as_mut_rgba8' class="method"><code id='as_mut_rgba8.v'>pub fn <a href='#method.as_mut_rgba8' class='fnname'>as_mut_rgba8</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut <a class="type" href="../image/type.RgbaImage.html" title="type image::RgbaImage">RgbaImage</a>></code><a class='srclink' href='../src/image/dynimage.rs.html#227-232' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a mutable reference to an 8bit RGBA image</p>
|
|
|
</div><h4 id='method.as_bgra8' class="method"><code id='as_bgra8.v'>pub fn <a href='#method.as_bgra8' class='fnname'>as_bgra8</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../image/struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a><<a class="struct" href="../image/struct.Bgra.html" title="struct image::Bgra">Bgra</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>>></code><a class='srclink' href='../src/image/dynimage.rs.html#235-240' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a reference to an 8bit BGRA image</p>
|
|
|
</div><h4 id='method.as_mut_bgra8' class="method"><code id='as_mut_bgra8.v'>pub fn <a href='#method.as_mut_bgra8' class='fnname'>as_mut_bgra8</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut <a class="struct" href="../image/struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a><<a class="struct" href="../image/struct.Bgra.html" title="struct image::Bgra">Bgra</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>>></code><a class='srclink' href='../src/image/dynimage.rs.html#243-248' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a mutable reference to an 8bit RGBA image</p>
|
|
|
</div><h4 id='method.as_luma8' class="method"><code id='as_luma8.v'>pub fn <a href='#method.as_luma8' class='fnname'>as_luma8</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="type" href="../image/type.GrayImage.html" title="type image::GrayImage">GrayImage</a>></code><a class='srclink' href='../src/image/dynimage.rs.html#251-256' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a reference to an 8bit Grayscale image</p>
|
|
|
</div><h4 id='method.as_mut_luma8' class="method"><code id='as_mut_luma8.v'>pub fn <a href='#method.as_mut_luma8' class='fnname'>as_mut_luma8</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut <a class="type" href="../image/type.GrayImage.html" title="type image::GrayImage">GrayImage</a>></code><a class='srclink' href='../src/image/dynimage.rs.html#259-264' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a mutable reference to an 8bit Grayscale image</p>
|
|
|
</div><h4 id='method.as_luma_alpha8' class="method"><code id='as_luma_alpha8.v'>pub fn <a href='#method.as_luma_alpha8' class='fnname'>as_luma_alpha8</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="type" href="../image/type.GrayAlphaImage.html" title="type image::GrayAlphaImage">GrayAlphaImage</a>></code><a class='srclink' href='../src/image/dynimage.rs.html#267-272' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a reference to an 8bit Grayscale image with an alpha channel</p>
|
|
|
</div><h4 id='method.as_mut_luma_alpha8' class="method"><code id='as_mut_luma_alpha8.v'>pub fn <a href='#method.as_mut_luma_alpha8' class='fnname'>as_mut_luma_alpha8</a>(&mut self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut <a class="type" href="../image/type.GrayAlphaImage.html" title="type image::GrayAlphaImage">GrayAlphaImage</a>></code><a class='srclink' href='../src/image/dynimage.rs.html#275-280' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a mutable reference to an 8bit Grayscale image with an alpha channel</p>
|
|
|
</div><h4 id='method.raw_pixels' class="method"><code id='raw_pixels.v'>pub fn <a href='#method.raw_pixels' class='fnname'>raw_pixels</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>></code><a class='srclink' href='../src/image/dynimage.rs.html#283-285' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return this image's pixels as a byte vector.</p>
|
|
|
</div><h4 id='method.as_flat_samples' class="method"><code id='as_flat_samples.v'>pub fn <a href='#method.as_flat_samples' class='fnname'>as_flat_samples</a>(&self) -> <a class="struct" href="../image/flat/struct.FlatSamples.html" title="struct image::flat::FlatSamples">FlatSamples</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>></code><a class='srclink' href='../src/image/dynimage.rs.html#288-290' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a view on the raw sample buffer.</p>
|
|
|
</div><h4 id='method.color' class="method"><code id='color.v'>pub fn <a href='#method.color' class='fnname'>color</a>(&self) -> <a class="enum" href="../image/enum.ColorType.html" title="enum image::ColorType">ColorType</a></code><a class='srclink' href='../src/image/dynimage.rs.html#293-302' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return this image's color type.</p>
|
|
|
</div><h4 id='method.grayscale' class="method"><code id='grayscale.v'>pub fn <a href='#method.grayscale' class='fnname'>grayscale</a>(&self) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#305-314' title='goto source code'>[src]</a></h4><div class='docblock'><p>Return a grayscale version of this image.</p>
|
|
|
</div><h4 id='method.invert' class="method"><code id='invert.v'>pub fn <a href='#method.invert' class='fnname'>invert</a>(&mut self)</code><a class='srclink' href='../src/image/dynimage.rs.html#318-320' title='goto source code'>[src]</a></h4><div class='docblock'><p>Invert the colors of this image.
|
|
|
This method operates inplace.</p>
|
|
|
</div><h4 id='method.resize' class="method"><code id='resize.v'>pub fn <a href='#method.resize' class='fnname'>resize</a>(<br> &self, <br> nwidth: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> nheight: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> filter: <a class="enum" href="../image/enum.FilterType.html" title="enum image::FilterType">FilterType</a><br>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#326-331' title='goto source code'>[src]</a></h4><div class='docblock'><p>Resize this image using the specified filter algorithm.
|
|
|
Returns a new image. The image's aspect ratio is preserved.
|
|
|
The image is scaled to the maximum possible size that fits
|
|
|
within the bounds specified by <code>nwidth</code> and <code>nheight</code>.</p>
|
|
|
</div><h4 id='method.resize_exact' class="method"><code id='resize_exact.v'>pub fn <a href='#method.resize_exact' class='fnname'>resize_exact</a>(<br> &self, <br> nwidth: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> nheight: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> filter: <a class="enum" href="../image/enum.FilterType.html" title="enum image::FilterType">FilterType</a><br>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#336-343' title='goto source code'>[src]</a></h4><div class='docblock'><p>Resize this image using the specified filter algorithm.
|
|
|
Returns a new image. Does not preserve aspect ratio.
|
|
|
<code>nwidth</code> and <code>nheight</code> are the new image's dimensions</p>
|
|
|
</div><h4 id='method.thumbnail' class="method"><code id='thumbnail.v'>pub fn <a href='#method.thumbnail' class='fnname'>thumbnail</a>(&self, nwidth: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, nheight: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#353-357' title='goto source code'>[src]</a></h4><div class='docblock'><p>Scale this image down to fit within a specific size.
|
|
|
Returns a new image. The image's aspect ratio is preserved.
|
|
|
The image is scaled to the maximum possible size that fits
|
|
|
within the bounds specified by <code>nwidth</code> and <code>nheight</code>.</p>
|
|
|
<p>This method uses a fast integer algorithm where each source
|
|
|
pixel contributes to exactly one target pixel.
|
|
|
May give aliasing artifacts if new size is close to old size.</p>
|
|
|
</div><h4 id='method.thumbnail_exact' class="method"><code id='thumbnail_exact.v'>pub fn <a href='#method.thumbnail_exact' class='fnname'>thumbnail_exact</a>(&self, nwidth: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, nheight: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#365-367' title='goto source code'>[src]</a></h4><div class='docblock'><p>Scale this image down to a specific size.
|
|
|
Returns a new image. Does not preserve aspect ratio.
|
|
|
<code>nwidth</code> and <code>nheight</code> are the new image's dimensions.
|
|
|
This method uses a fast integer algorithm where each source
|
|
|
pixel contributes to exactly one target pixel.
|
|
|
May give aliasing artifacts if new size is close to old size.</p>
|
|
|
</div><h4 id='method.resize_to_fill' class="method"><code id='resize_to_fill.v'>pub fn <a href='#method.resize_to_fill' class='fnname'>resize_to_fill</a>(<br> &self, <br> nwidth: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> nheight: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> filter: <a class="enum" href="../image/enum.FilterType.html" title="enum image::FilterType">FilterType</a><br>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#375-394' title='goto source code'>[src]</a></h4><div class='docblock'><p>Resize this image using the specified filter algorithm.
|
|
|
Returns a new image. The image's aspect ratio is preserved.
|
|
|
The image is scaled to the maximum possible size that fits
|
|
|
within the larger (relative to aspect ratio) of the bounds
|
|
|
specified by <code>nwidth</code> and <code>nheight</code>, then cropped to
|
|
|
fit within the other bound.</p>
|
|
|
</div><h4 id='method.blur' class="method"><code id='blur.v'>pub fn <a href='#method.blur' class='fnname'>blur</a>(&self, sigma: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#398-400' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs a Gaussian blur on this image.
|
|
|
<code>sigma</code> is a measure of how much to blur by.</p>
|
|
|
</div><h4 id='method.unsharpen' class="method"><code id='unsharpen.v'>pub fn <a href='#method.unsharpen' class='fnname'>unsharpen</a>(&self, sigma: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, threshold: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#407-409' title='goto source code'>[src]</a></h4><div class='docblock'><p>Performs an unsharpen mask on this image.
|
|
|
<code>sigma</code> is the amount to blur the image by.
|
|
|
<code>threshold</code> is a control of how much to sharpen.</p>
|
|
|
<p>See <a href="https://en.wikipedia.org/wiki/Unsharp_masking#Digital_unsharp_masking">https://en.wikipedia.org/wiki/Unsharp_masking#Digital_unsharp_masking</a></p>
|
|
|
</div><h4 id='method.filter3x3' class="method"><code id='filter3x3.v'>pub fn <a href='#method.filter3x3' class='fnname'>filter3x3</a>(&self, kernel: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#412-418' title='goto source code'>[src]</a></h4><div class='docblock'><p>Filters this image with the specified 3x3 kernel.</p>
|
|
|
</div><h4 id='method.adjust_contrast' class="method"><code id='adjust_contrast.v'>pub fn <a href='#method.adjust_contrast' class='fnname'>adjust_contrast</a>(&self, c: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#423-425' title='goto source code'>[src]</a></h4><div class='docblock'><p>Adjust the contrast of this image.
|
|
|
<code>contrast</code> is the amount to adjust the contrast by.
|
|
|
Negative values decrease the contrast and positive values increase the contrast.</p>
|
|
|
</div><h4 id='method.brighten' class="method"><code id='brighten.v'>pub fn <a href='#method.brighten' class='fnname'>brighten</a>(&self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#430-432' title='goto source code'>[src]</a></h4><div class='docblock'><p>Brighten the pixels of this image.
|
|
|
<code>value</code> is the amount to brighten each pixel by.
|
|
|
Negative values decrease the brightness and positive values increase it.</p>
|
|
|
</div><h4 id='method.huerotate' class="method"><code id='huerotate.v'>pub fn <a href='#method.huerotate' class='fnname'>huerotate</a>(&self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#438-440' title='goto source code'>[src]</a></h4><div class='docblock'><p>Hue rotate the supplied image.
|
|
|
<code>value</code> is the degrees to rotate each pixel by.
|
|
|
0 and 360 do nothing, the rest rotates by the given degree value.
|
|
|
just like the css webkit filter hue-rotate(180)</p>
|
|
|
</div><h4 id='method.flipv' class="method"><code id='flipv.v'>pub fn <a href='#method.flipv' class='fnname'>flipv</a>(&self) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#443-445' title='goto source code'>[src]</a></h4><div class='docblock'><p>Flip this image vertically</p>
|
|
|
</div><h4 id='method.fliph' class="method"><code id='fliph.v'>pub fn <a href='#method.fliph' class='fnname'>fliph</a>(&self) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#448-450' title='goto source code'>[src]</a></h4><div class='docblock'><p>Flip this image horizontally</p>
|
|
|
</div><h4 id='method.rotate90' class="method"><code id='rotate90.v'>pub fn <a href='#method.rotate90' class='fnname'>rotate90</a>(&self) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#453-455' title='goto source code'>[src]</a></h4><div class='docblock'><p>Rotate this image 90 degrees clockwise.</p>
|
|
|
</div><h4 id='method.rotate180' class="method"><code id='rotate180.v'>pub fn <a href='#method.rotate180' class='fnname'>rotate180</a>(&self) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#458-460' title='goto source code'>[src]</a></h4><div class='docblock'><p>Rotate this image 180 degrees clockwise.</p>
|
|
|
</div><h4 id='method.rotate270' class="method"><code id='rotate270.v'>pub fn <a href='#method.rotate270' class='fnname'>rotate270</a>(&self) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#463-465' title='goto source code'>[src]</a></h4><div class='docblock'><p>Rotate this image 270 degrees clockwise.</p>
|
|
|
</div><h4 id='method.write_to' class="method"><code id='write_to.v'>pub fn <a href='#method.write_to' class='fnname'>write_to</a><W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="enum" href="../image/enum.ImageOutputFormat.html" title="enum image::ImageOutputFormat">ImageOutputFormat</a>>>(<br> &self, <br> w: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>W, <br> format: F<br>) -> <a class="type" href="../image/type.ImageResult.html" title="type image::ImageResult">ImageResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class='srclink' href='../src/image/dynimage.rs.html#468-553' title='goto source code'>[src]</a></h4><div class='docblock'><p>Encode this image and write it to <code>w</code></p>
|
|
|
</div><h4 id='method.save' class="method"><code id='save.v'>pub fn <a href='#method.save' class='fnname'>save</a><Q>(&self, path: Q) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> Q: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.Path.html" title="struct std::path::Path">Path</a>>, </span></code><a class='srclink' href='../src/image/dynimage.rs.html#558-565' title='goto source code'>[src]</a></h4><div class='docblock'><p>Saves the buffer to a file at the path specified.</p>
|
|
|
<p>The image format is derived from the file extension.</p>
|
|
|
</div></div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-GenericImageView' class='impl'><code class='in-band'>impl <a class="trait" href="../image/trait.GenericImageView.html" title="trait image::GenericImageView">GenericImageView</a> for <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a href='#impl-GenericImageView' class='anchor'></a><a class='srclink' href='../src/image/dynimage.rs.html#569-588' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Pixel' class="type"><code id='Pixel.t'>type <a href='../image/trait.GenericImageView.html#associatedtype.Pixel' class="type">Pixel</a> = <a class="struct" href="../image/struct.Rgba.html" title="struct image::Rgba">Rgba</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>></code></h4><div class='docblock'><p>The type of pixel.</p>
|
|
|
</div><h4 id='associatedtype.InnerImageView' class="type"><code id='InnerImageView.t'>type <a href='../image/trait.GenericImageView.html#associatedtype.InnerImageView' class="type">InnerImageView</a> = Self</code></h4><div class='docblock'><p>Underlying image type. This is mainly used by SubImages in order to always have a reference to the original image. This allows for less indirections and it eases the use of nested SubImages. <a href="../image/trait.GenericImageView.html#associatedtype.InnerImageView">Read more</a></p>
|
|
|
</div><h4 id='method.dimensions' class="method hidden"><code id='dimensions.v'>fn <a href='../image/trait.GenericImageView.html#tymethod.dimensions' class='fnname'>dimensions</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../src/image/dynimage.rs.html#573-575' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The width and height of this image.</p>
|
|
|
</div><h4 id='method.bounds' class="method hidden"><code id='bounds.v'>fn <a href='../image/trait.GenericImageView.html#tymethod.bounds' class='fnname'>bounds</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a class='srclink' href='../src/image/dynimage.rs.html#577-579' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The bounding rectangle of this image.</p>
|
|
|
</div><h4 id='method.get_pixel' class="method hidden"><code id='get_pixel.v'>fn <a href='../image/trait.GenericImageView.html#tymethod.get_pixel' class='fnname'>get_pixel</a>(&self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="struct" href="../image/struct.Rgba.html" title="struct image::Rgba">Rgba</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>></code><a class='srclink' href='../src/image/dynimage.rs.html#581-583' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the pixel located at (x, y) <a href="../image/trait.GenericImageView.html#tymethod.get_pixel">Read more</a></p>
|
|
|
</div><h4 id='method.inner' class="method hidden"><code id='inner.v'>fn <a href='../image/trait.GenericImageView.html#tymethod.inner' class='fnname'>inner</a>(&self) -> &Self::<a class="type" href="../image/trait.GenericImageView.html#associatedtype.InnerImageView" title="type image::GenericImageView::InnerImageView">InnerImageView</a></code><a class='srclink' href='../src/image/dynimage.rs.html#585-587' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a reference to the underlying image.</p>
|
|
|
</div><h4 id='method.width' class="method hidden"><code id='width.v'>fn <a href='../image/trait.GenericImageView.html#method.width' class='fnname'>width</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a class='srclink' href='../src/image/image.rs.html#556-559' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The width of this image.</p>
|
|
|
</div><h4 id='method.height' class="method hidden"><code id='height.v'>fn <a href='../image/trait.GenericImageView.html#method.height' class='fnname'>height</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a class='srclink' href='../src/image/image.rs.html#562-565' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The height of this image.</p>
|
|
|
</div><h4 id='method.in_bounds' class="method hidden"><code id='in_bounds.v'>fn <a href='../image/trait.GenericImageView.html#method.in_bounds' class='fnname'>in_bounds</a>(&self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/image/image.rs.html#571-574' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns true if this x, y coordinate is contained inside the image.</p>
|
|
|
</div><h4 id='method.unsafe_get_pixel' class="method hidden"><code id='unsafe_get_pixel.v'>unsafe fn <a href='../image/trait.GenericImageView.html#method.unsafe_get_pixel' class='fnname'>unsafe_get_pixel</a>(&self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> Self::<a class="type" href="../image/trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a></code><a class='srclink' href='../src/image/image.rs.html#588-590' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the pixel located at (x, y) <a href="../image/trait.GenericImageView.html#method.unsafe_get_pixel">Read more</a></p>
|
|
|
</div><h4 id='method.pixels' class="method hidden"><div class="important-traits"><div class='tooltip'>ⓘ<span class='tooltiptext'>Important traits for <a class="struct" href="../image/struct.Pixels.html" title="struct image::Pixels">Pixels</a><'a, I></span></div><div class="content hidden"><h3 class="important">Important traits for <a class="struct" href="../image/struct.Pixels.html" title="struct image::Pixels">Pixels</a><'a, I></h3><code class="content"><span class="where fmt-newline">impl<'a, I: <a class="trait" href="../image/trait.GenericImageView.html" title="trait image::GenericImageView">GenericImageView</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="../image/struct.Pixels.html" title="struct image::Pixels">Pixels</a><'a, I></span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, I::<a class="type" href="../image/trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</span></code></div></div><code id='pixels.v'>fn <a href='../image/trait.GenericImageView.html#method.pixels' class='fnname'>pixels</a>(&self) -> <a class="struct" href="../image/struct.Pixels.html" title="struct image::Pixels">Pixels</a><Self></code><a class='srclink' href='../src/image/image.rs.html#595-605' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns an Iterator over the pixels of this image. The iterator yields the coordinates of each pixel along with their value <a href="../image/trait.GenericImageView.html#method.pixels">Read more</a></p>
|
|
|
</div><h4 id='method.view' class="method hidden"><code id='view.v'>fn <a href='../image/trait.GenericImageView.html#method.view' class='fnname'>view</a>(<br> &self, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>) -> <a class="struct" href="../image/struct.SubImage.html" title="struct image::SubImage">SubImage</a><&Self::<a class="type" href="../image/trait.GenericImageView.html#associatedtype.InnerImageView" title="type image::GenericImageView::InnerImageView">InnerImageView</a>></code><a class='srclink' href='../src/image/image.rs.html#611-613' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns an subimage that is an immutable view into this image.</p>
|
|
|
</div></div><h3 id='impl-GenericImage' class='impl'><code class='in-band'>impl <a class="trait" href="../image/trait.GenericImage.html" title="trait image::GenericImage">GenericImage</a> for <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a href='#impl-GenericImage' class='anchor'></a><a class='srclink' href='../src/image/dynimage.rs.html#591-625' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.InnerImage' class="type"><code id='InnerImage.t'>type <a href='../image/trait.GenericImage.html#associatedtype.InnerImage' class="type">InnerImage</a> = <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code></h4><div class='docblock'><p>Underlying image type. This is mainly used by SubImages in order to always have a reference to the original image. This allows for less indirections and it eases the use of nested SubImages. <a href="../image/trait.GenericImage.html#associatedtype.InnerImage">Read more</a></p>
|
|
|
</div><h4 id='method.put_pixel' class="method hidden"><code id='put_pixel.v'>fn <a href='../image/trait.GenericImage.html#tymethod.put_pixel' class='fnname'>put_pixel</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pixel: <a class="struct" href="../image/struct.Rgba.html" title="struct image::Rgba">Rgba</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>)</code><a class='srclink' href='../src/image/dynimage.rs.html#594-603' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Put a pixel at location (x, y) <a href="../image/trait.GenericImage.html#tymethod.put_pixel">Read more</a></p>
|
|
|
</div><h4 id='method.blend_pixel' class="method"><code id='blend_pixel.v'>fn <a href='../image/trait.GenericImage.html#tymethod.blend_pixel' class='fnname'>blend_pixel</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pixel: <a class="struct" href="../image/struct.Rgba.html" title="struct image::Rgba">Rgba</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>)</code><a class='srclink' href='../src/image/dynimage.rs.html#605-615' title='goto source code'>[src]</a></h4><div class='docblock'><p>DEPRECATED: Use iterator <code>pixels_mut</code> to blend the pixels directly.</p>
|
|
|
</div><h4 id='method.get_pixel_mut' class="method"><code id='get_pixel_mut.v'>fn <a href='../image/trait.GenericImage.html#tymethod.get_pixel_mut' class='fnname'>get_pixel_mut</a>(&mut self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> &mut <a class="struct" href="../image/struct.Rgba.html" title="struct image::Rgba">Rgba</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>></code><a class='srclink' href='../src/image/dynimage.rs.html#618-620' title='goto source code'>[src]</a></h4><div class='docblock'><p>DEPRECATED: Do not use is function: It is unimplemented!</p>
|
|
|
</div><h4 id='method.inner_mut' class="method hidden"><code id='inner_mut.v'>fn <a href='../image/trait.GenericImage.html#tymethod.inner_mut' class='fnname'>inner_mut</a>(&mut self) -> &mut Self::<a class="type" href="../image/trait.GenericImage.html#associatedtype.InnerImage" title="type image::GenericImage::InnerImage">InnerImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#622-624' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a mutable reference to the underlying image.</p>
|
|
|
</div><h4 id='method.unsafe_put_pixel' class="method hidden"><code id='unsafe_put_pixel.v'>unsafe fn <a href='../image/trait.GenericImage.html#method.unsafe_put_pixel' class='fnname'>unsafe_put_pixel</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pixel: Self::<a class="type" href="../image/trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>)</code><a class='srclink' href='../src/image/image.rs.html#640-642' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Puts a pixel at location (x, y) <a href="../image/trait.GenericImage.html#method.unsafe_put_pixel">Read more</a></p>
|
|
|
</div><h4 id='method.pixels_mut' class="method hidden"><div class="important-traits"><div class='tooltip'>ⓘ<span class='tooltiptext'>Important traits for <a class="struct" href="../image/struct.MutPixels.html" title="struct image::MutPixels">MutPixels</a><'a, I></span></div><div class="content hidden"><h3 class="important">Important traits for <a class="struct" href="../image/struct.MutPixels.html" title="struct image::MutPixels">MutPixels</a><'a, I></h3><code class="content"><span class="where fmt-newline">impl<'a, I: <a class="trait" href="../image/trait.GenericImage.html" title="trait image::GenericImage">GenericImage</a> + 'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="../image/struct.MutPixels.html" title="struct image::MutPixels">MutPixels</a><'a, I> <span class="where fmt-newline">where<br> I::<a class="type" href="../image/trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>: 'a,<br> <I::<a class="type" href="../image/trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a> as <a class="trait" href="../image/trait.Pixel.html" title="trait image::Pixel">Pixel</a>>::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>: 'a, </span></span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, &'a mut I::<a class="type" href="../image/trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</span></code></div></div><code id='pixels_mut.v'>fn <a href='../image/trait.GenericImage.html#method.pixels_mut' class='fnname'>pixels_mut</a>(&mut self) -> <a class="struct" href="../image/struct.MutPixels.html" title="struct image::MutPixels">MutPixels</a><Self></code><a class='srclink' href='../src/image/image.rs.html#655-665' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab deprecated'>Deprecated: <p>This cannot be implemented safely in Rust. Please use the image buffer directly.</p>
|
|
|
</div></div><div class='docblock hidden'><p>Returns an Iterator over mutable pixels of this image. The iterator yields the coordinates of each pixel along with a mutable reference to them. <a href="../image/trait.GenericImage.html#method.pixels_mut">Read more</a></p>
|
|
|
</div><h4 id='method.copy_from' class="method hidden"><code id='copy_from.v'>fn <a href='../image/trait.GenericImage.html#method.copy_from' class='fnname'>copy_from</a><O>(&mut self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>O, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> O: <a class="trait" href="../image/trait.GenericImageView.html" title="trait image::GenericImageView">GenericImageView</a><Pixel = Self::<a class="type" href="../image/trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>>, </span></code><a class='srclink' href='../src/image/image.rs.html#677-694' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Copies all of the pixels from another image into this image. <a href="../image/trait.GenericImage.html#method.copy_from">Read more</a></p>
|
|
|
</div><h4 id='method.sub_image' class="method hidden"><code id='sub_image.v'>fn <a href='../image/trait.GenericImage.html#method.sub_image' class='fnname'>sub_image</a>(<br> &mut self, <br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>) -> <a class="struct" href="../image/struct.SubImage.html" title="struct image::SubImage">SubImage</a><&mut Self::<a class="type" href="../image/trait.GenericImage.html#associatedtype.InnerImage" title="type image::GenericImage::InnerImage">InnerImage</a>></code><a class='srclink' href='../src/image/image.rs.html#700-708' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a subimage that is a view into this image.</p>
|
|
|
</div></div><h3 id='impl-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/image/dynimage.rs.html#37' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a class='srclink' href='../src/image/dynimage.rs.html#37' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
|
|
</div><h4 id='method.clone_from' class="method hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
|
|
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-Send' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="../image/enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#81-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
|
|
</div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
|
|
</div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
|
|
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#544-549' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#546-548' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#553-555' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#554' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#572-578' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
|
|
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#575-577' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#560-567' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
|
|
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#564-566' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
|
|
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
|
|
</div></div><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
|
|
</div></div><h3 id='impl-SetParameter' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../gif/traits/trait.SetParameter.html" title="trait gif::traits::SetParameter">SetParameter</a> for T</code><a href='#impl-SetParameter' class='anchor'></a><a class='srclink' href='../src/gif/traits.rs.html#25' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set' class="method hidden"><code id='set.v'>fn <a href='../gif/traits/trait.SetParameter.html#method.set' class='fnname'>set</a><T>(&mut self, value: T) -> <T as <a class="trait" href="../gif/traits/trait.Parameter.html" title="trait gif::traits::Parameter">Parameter</a><Self>>::<a class="type" href="../gif/traits/trait.Parameter.html#associatedtype.Result" title="type gif::traits::Parameter::Result">Result</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="../gif/traits/trait.Parameter.html" title="trait gif::traits::Parameter">Parameter</a><Self>, </span></code><a class='srclink' href='../src/gif/traits.rs.html#20-22' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Sets <code>value</code> as a parameter of <code>self</code>.</p>
|
|
|
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "image";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html> |