Struct core_graphics::image::CGImageRef
source · pub struct CGImageRef(/* private fields */);
Expand description
A borrowed reference to a CGImage
.
Implementations§
source§impl CGImageRef
impl CGImageRef
pub fn width(&self) -> size_t
pub fn height(&self) -> size_t
pub fn bits_per_component(&self) -> size_t
pub fn bits_per_pixel(&self) -> size_t
pub fn bytes_per_row(&self) -> size_t
pub fn color_space(&self) -> CGColorSpace
Trait Implementations§
source§impl ForeignTypeRef for CGImageRef
impl ForeignTypeRef for CGImageRef
Auto Trait Implementations§
impl Freeze for CGImageRef
impl !RefUnwindSafe for CGImageRef
impl !Send for CGImageRef
impl !Sync for CGImageRef
impl Unpin for CGImageRef
impl UnwindSafe for CGImageRef
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