Struct core_graphics::image::CGImage
[−]
pub struct CGImage(_);
Methods
impl CGImage
[src]
Methods from Deref<Target = CGImageRef>
fn width(&self) -> size_t
[src]
fn height(&self) -> size_t
[src]
fn bits_per_component(&self) -> size_t
[src]
fn bits_per_pixel(&self) -> size_t
[src]
fn bytes_per_row(&self) -> size_t
[src]
fn color_space(&self) -> CGColorSpace
[src]
fn data(&self) -> CFData
[src]
Returns the raw image bytes wrapped in CFData
. Note, the returned CFData
owns the
underlying buffer.
Trait Implementations
impl Drop for CGImage
impl Clone for CGImage
fn clone(&self) -> CGImage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for CGImage
type Target = CGImageRef
The resulting type after dereferencing.
fn deref(&self) -> &CGImageRef
Dereferences the value.
impl DerefMut for CGImage
fn deref_mut(&mut self) -> &mut CGImageRef
Mutably dereferences the value.
impl Borrow<CGImageRef> for CGImage
fn borrow(&self) -> &CGImageRef
Immutably borrows from an owned value. Read more
impl AsRef<CGImageRef> for CGImage
fn as_ref(&self) -> &CGImageRef
Performs the conversion.