[−][src]Struct plotters::element::BitMapElement
The element that contains a bitmap on it
Methods
impl<'a, Coord, P: PixelFormat> BitMapElement<'a, Coord, P>
[src]
pub fn new(pos: Coord, size: (u32, u32)) -> Self
[src]
Create a new empty bitmap element. This can be use as the draw and blit pattern.
pos
: The left upper coordinate for the elementsize
: The size of the bitmap
pub fn copy_to<Coord2>(&self, pos: Coord2) -> BitMapElement<Coord2, P>
[src]
Copy the existing bitmap element to another location
pos
: The new location to copy
pub fn move_to(&mut self, pos: Coord)
[src]
Move the existing bitmap element to a new position
pos
: The new position
pub fn as_bitmap_backend(&mut self) -> BitMapBackend<P>
[src]
Make the bitmap element as a bitmap backend, so that we can use plotters drawing functionality on the bitmap element
Trait Implementations
impl<'a, 'b, Coord> PointCollection<'a, Coord> for &'a BitMapElement<'b, Coord>
[src]
type Borrow = &'a Coord
The item in point iterator
type IntoIter = Once<&'a Coord>
The point iterator
fn point_iter(self) -> Self::IntoIter
[src]
impl<'a, Coord, DB: DrawingBackend> Drawable<DB> for BitMapElement<'a, Coord>
[src]
fn draw<I: Iterator<Item = BackendCoord>>(
&self,
points: I,
backend: &mut DB,
_: (u32, u32)
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
[src]
&self,
points: I,
backend: &mut DB,
_: (u32, u32)
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
impl<'a, Coord> From<(Coord, DynamicImage)> for BitMapElement<'a, Coord, RGBPixel>
[src]
impl<'a, Coord> From<(Coord, DynamicImage)> for BitMapElement<'a, Coord, BGRXPixel>
[src]
Auto Trait Implementations
impl<'a, Coord, P> Send for BitMapElement<'a, Coord, P> where
Coord: Send,
P: Send,
Coord: Send,
P: Send,
impl<'a, Coord, P> Unpin for BitMapElement<'a, Coord, P> where
Coord: Unpin,
P: Unpin,
Coord: Unpin,
P: Unpin,
impl<'a, Coord, P> Sync for BitMapElement<'a, Coord, P> where
Coord: Sync,
P: Sync,
Coord: Sync,
P: Sync,
impl<'a, Coord, P> UnwindSafe for BitMapElement<'a, Coord, P> where
Coord: UnwindSafe,
P: UnwindSafe,
Coord: UnwindSafe,
P: UnwindSafe,
impl<'a, Coord, P> RefUnwindSafe for BitMapElement<'a, Coord, P> where
Coord: RefUnwindSafe,
P: RefUnwindSafe,
Coord: RefUnwindSafe,
P: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,