[−][src]Trait plotters::drawing::backend::DrawingBackend
The drawing context
Associated Types
Loading content...Required methods
fn get_size(&self) -> (u32, u32)
Dimension
fn open(&mut self) -> Result<(), DrawingErrorKind<Self::ErrorType>>
Start drawing
fn close(&mut self) -> Result<(), DrawingErrorKind<Self::ErrorType>>
Stop drawing
fn draw_pixel<C: Color>(
&mut self,
point: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
&mut self,
point: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
Draw a pixel
Provided methods
fn draw_line<C: Color>(
&mut self,
from: BackendCoord,
to: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
&mut self,
from: BackendCoord,
to: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
Draw a line
fn draw_rect<C: Color>(
&mut self,
upper_left: BackendCoord,
bottom_right: BackendCoord,
color: &C,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
&mut self,
upper_left: BackendCoord,
bottom_right: BackendCoord,
color: &C,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
Draw a rectangle
fn draw_path<C: Color, I: IntoIterator<Item = BackendCoord>>(
&mut self,
path: I,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
&mut self,
path: I,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
Draw a path
fn draw_circle<C: Color>(
&mut self,
center: BackendCoord,
radius: u32,
color: &C,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
&mut self,
center: BackendCoord,
radius: u32,
color: &C,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
Draw a circle
fn draw_text<'a, C: Color>(
&mut self,
text: &str,
font: &FontDesc<'a>,
pos: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
&mut self,
text: &str,
font: &FontDesc<'a>,
pos: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
Draw a text
Implementors
impl<'a> DrawingBackend for BitMapBackend<'a>[src]
type ErrorType = ImageError
fn get_size(&self) -> (u32, u32)[src]
fn open(&mut self) -> Result<(), DrawingErrorKind<ImageError>>[src]
fn close(&mut self) -> Result<(), DrawingErrorKind<ImageError>>[src]
fn draw_pixel<C: Color>(
&mut self,
point: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<ImageError>>[src]
&mut self,
point: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<ImageError>>
fn draw_line<C: Color>(
&mut self,
from: BackendCoord,
to: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>[src]
&mut self,
from: BackendCoord,
to: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn draw_rect<C: Color>(
&mut self,
upper_left: BackendCoord,
bottom_right: BackendCoord,
color: &C,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>[src]
&mut self,
upper_left: BackendCoord,
bottom_right: BackendCoord,
color: &C,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn draw_path<C: Color, I: IntoIterator<Item = BackendCoord>>(
&mut self,
path: I,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>[src]
&mut self,
path: I,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn draw_circle<C: Color>(
&mut self,
center: BackendCoord,
radius: u32,
color: &C,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>[src]
&mut self,
center: BackendCoord,
radius: u32,
color: &C,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn draw_text<'a, C: Color>(
&mut self,
text: &str,
font: &FontDesc<'a>,
pos: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>[src]
&mut self,
text: &str,
font: &FontDesc<'a>,
pos: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
impl<'a> DrawingBackend for SVGBackend<'a>[src]
type ErrorType = Error
fn get_size(&self) -> (u32, u32)[src]
fn open(&mut self) -> Result<(), DrawingErrorKind<Error>>[src]
fn close(&mut self) -> Result<(), DrawingErrorKind<Error>>[src]
fn draw_pixel<C: Color>(
&mut self,
point: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Error>>[src]
&mut self,
point: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Error>>
fn draw_line<C: Color>(
&mut self,
from: BackendCoord,
to: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>[src]
&mut self,
from: BackendCoord,
to: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn draw_rect<C: Color>(
&mut self,
upper_left: BackendCoord,
bottom_right: BackendCoord,
color: &C,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>[src]
&mut self,
upper_left: BackendCoord,
bottom_right: BackendCoord,
color: &C,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn draw_path<C: Color, I: IntoIterator<Item = BackendCoord>>(
&mut self,
path: I,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>[src]
&mut self,
path: I,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn draw_circle<C: Color>(
&mut self,
center: BackendCoord,
radius: u32,
color: &C,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>[src]
&mut self,
center: BackendCoord,
radius: u32,
color: &C,
fill: bool
) -> Result<(), DrawingErrorKind<Self::ErrorType>>
fn draw_text<'b, C: Color>(
&mut self,
text: &str,
font: &FontDesc<'b>,
pos: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>[src]
&mut self,
text: &str,
font: &FontDesc<'b>,
pos: BackendCoord,
color: &C
) -> Result<(), DrawingErrorKind<Self::ErrorType>>