[][src]Struct plotters::prelude::BitMapBackend

pub struct BitMapBackend<'a> { /* fields omitted */ }

The backend that drawing a bitmap

Methods

impl<'a> BitMapBackend<'a>[src]

pub fn new(path: &'a str, dimension: (u32, u32)) -> Self[src]

Create a new bitmap backend

Trait Implementations

impl<'a> DrawingBackend for BitMapBackend<'a>[src]

type ErrorType = ImageError

The error reported by the backend

fn draw_line<C: Color>(
    &mut self,
    from: BackendCoord,
    to: BackendCoord,
    color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
[src]

Draw a line

fn draw_rect<C: Color>(
    &mut self,
    upper_left: BackendCoord,
    bottom_right: BackendCoord,
    color: &C,
    fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
[src]

Draw a rectangle

fn draw_path<C: Color, I: IntoIterator<Item = BackendCoord>>(
    &mut self,
    path: I,
    color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
[src]

Draw a path

fn draw_circle<C: Color>(
    &mut self,
    center: BackendCoord,
    radius: u32,
    color: &C,
    fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
[src]

Draw a circle

fn draw_text<'a, C: Color>(
    &mut self,
    text: &str,
    font: &FontDesc<'a>,
    pos: BackendCoord,
    color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
[src]

Draw a text

Auto Trait Implementations

impl<'a> Send for BitMapBackend<'a>

impl<'a> Sync for BitMapBackend<'a>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.