[][src]Struct blend2d::image::Image

#[repr(transparent)]
pub struct Image { /* fields omitted */ }

Methods

impl Image[src]

pub fn new(width: i32, height: i32, format: ImageFormat) -> Result<Self>[src]

pub fn from_data<R: AsRef<[u8]>>(
    width: i32,
    height: i32,
    format: ImageFormat,
    data: &R,
    codecs: &Array<ImageCodec>
) -> Result<()>
[src]

pub fn from_path<P: AsRef<Path>>(
    path: P,
    codecs: &Array<ImageCodec>
) -> Result<Self>
[src]

pub fn size(&self) -> SizeI[src]

pub fn width(&self) -> i32[src]

pub fn height(&self) -> i32[src]

pub fn data(&self) -> Result<ImageData>[src]

pub fn write_to_file<P: AsRef<Path>>(
    &self,
    path: P,
    codec: &ImageCodec
) -> Result<()>
[src]

Trait Implementations

impl ArrayType for Image[src]

impl Drop for Image[src]

impl PartialEq<Image> for Image[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for Image[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Image

impl !Sync for Image

Blanket Implementations

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

type Owned = T

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> Borrow for T where
    T: ?Sized
[src]

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

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

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.