pub struct Image {
pub width: u32,
pub height: u32,
/* private fields */
}Fields§
§width: u32§height: u32Implementations§
source§impl Image
impl Image
pub fn new<P: AsRef<Path> + ToString>(path: P) -> ImageResult<Image>
pub fn from(img_buf: DynamicImage) -> Image
pub fn is_blank_pixel(&self, x: u32, y: u32) -> bool
pub fn bitimage_lines(&self, density: u32) -> BitimageLines<'_> ⓘ
pub fn get_raster(&self) -> Box<[u8]>
Auto Trait Implementations§
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more