pub struct CGImage { /* private fields */ }Available on crate feature
cg only.Expand description
Reference-counted CGImageRef — an immutable bitmap.
Implementations§
Source§impl CGImage
impl CGImage
Sourcepub fn bits_per_component(&self) -> usize
pub fn bits_per_component(&self) -> usize
Bits per component (8, 16, 32).
Sourcepub fn bits_per_pixel(&self) -> usize
pub fn bits_per_pixel(&self) -> usize
Bits per pixel.
Sourcepub fn bytes_per_row(&self) -> usize
pub fn bytes_per_row(&self) -> usize
Bytes per row.
Trait Implementations§
impl Send for CGImage
impl Sync for CGImage
Auto Trait Implementations§
impl Freeze for CGImage
impl RefUnwindSafe for CGImage
impl Unpin for CGImage
impl UnsafeUnpin for CGImage
impl UnwindSafe for CGImage
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