[][src]Struct nanachi::buffer::GenericBuffer

pub struct GenericBuffer<P: Pixel> { /* fields omitted */ }

2D image buffer for manipulation.

Implementations

impl<P: Pixel> GenericBuffer<P>[src]

pub fn from_pixel(width: u32, height: u32, pixel: P) -> Self[src]

impl GenericBuffer<f64>[src]

pub fn new(width: u32, height: u32) -> Self[src]

pub fn rasterize(
    &mut self,
    segments: impl Iterator<Item = (Point, Point)>,
    fill_rule: impl FillRule,
    writer: &mut impl FnMut(u32, u32, f64),
    write_transparent_src: bool
)
[src]

Write the area of the [Path].

pub fn rasterize_no_aa(
    &mut self,
    segments: impl Iterator<Item = (Point, Point)>,
    fill_rule: impl FillRule,
    writer: &mut impl FnMut(u32, u32, f64),
    write_transparent_src: bool
)
[src]

Write the area of the [Path] without anti-aliasing.

pub fn transfer(
    &mut self,
    fill_rule: impl FillRule,
    writer: &mut impl FnMut(u32, u32, f64),
    write_transparent_src: bool,
    bound: [f64; 4]
)
[src]

Trait Implementations

impl<P: Pixel> Buffer<P> for GenericBuffer<P>[src]

impl<P: Clone + Pixel> Clone for GenericBuffer<P>[src]

impl<'_> Into<ImageBuffer<Rgba<u8>, Vec<u8>>> for &'_ GenericBuffer<Rgba>[src]

impl<'_> Into<ImageBuffer<Rgba<u8>, Vec<u8>>> for &'_ GenericBuffer<PremultipliedRgba>[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for GenericBuffer<P> where
    P: RefUnwindSafe

impl<P> Send for GenericBuffer<P> where
    P: Send

impl<P> Sync for GenericBuffer<P> where
    P: Sync

impl<P> Unpin for GenericBuffer<P> where
    P: Unpin

impl<P> UnwindSafe for GenericBuffer<P> where
    P: UnwindSafe

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.