pub struct PixelImage { /* private fields */ }Implementations§
Source§impl PixelImage
impl PixelImage
pub fn new( data: Cow<'static, [u8]>, width: u32, height: u32, format: ColorFormat, ) -> Self
pub fn color_format(&self) -> ColorFormat
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn size(&self) -> DeviceSize
pub fn pixel_bytes(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl Debug for PixelImage
impl Debug for PixelImage
Source§impl<'de> Deserialize<'de> for PixelImage
impl<'de> Deserialize<'de> for PixelImage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PixelImage> for Brush
impl From<PixelImage> for Brush
Source§fn from(img: PixelImage) -> Self
fn from(img: PixelImage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PixelImage
impl PartialEq for PixelImage
Source§impl Serialize for PixelImage
impl Serialize for PixelImage
impl Eq for PixelImage
impl StructuralPartialEq for PixelImage
Auto Trait Implementations§
impl Freeze for PixelImage
impl RefUnwindSafe for PixelImage
impl Send for PixelImage
impl Sync for PixelImage
impl Unpin for PixelImage
impl UnwindSafe for PixelImage
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more