Struct core_graphics::image::CGImage
source · pub struct CGImage(_);
Implementations
Methods from Deref<Target = 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
sourceimpl AsRef<CGImageRef> for CGImage
impl AsRef<CGImageRef> for CGImage
sourcefn as_ref(&self) -> &CGImageRef
fn as_ref(&self) -> &CGImageRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<CGImageRef> for CGImage
impl Borrow<CGImageRef> for CGImage
sourcefn borrow(&self) -> &CGImageRef
fn borrow(&self) -> &CGImageRef
Immutably borrows from an owned value. Read more
sourceimpl Deref for CGImage
impl Deref for CGImage
type Target = CGImageRef
type Target = CGImageRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &CGImageRef
fn deref(&self) -> &CGImageRef
Dereferences the value.
Auto Trait Implementations
impl RefUnwindSafe for CGImage
impl !Send for CGImage
impl !Sync for CGImage
impl Unpin for CGImage
impl UnwindSafe for CGImage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more