[−][src]Struct blend2d::image::Image
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]
width: i32,
height: i32,
format: ImageFormat,
data: &R,
codecs: &Array<ImageCodec>
) -> Result<()>
pub fn from_path<P: AsRef<Path>>(
path: P,
codecs: &Array<ImageCodec>
) -> Result<Self>
[src]
path: P,
codecs: &Array<ImageCodec>
) -> Result<Self>
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]
&self,
path: P,
codec: &ImageCodec
) -> Result<()>
Trait Implementations
impl ArrayType for Image
[src]
impl Drop for Image
[src]
impl PartialEq<Image> for Image
[src]
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Clone for Image
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,