Struct core_graphics::image::CGImageRef
[−]
pub struct CGImageRef(_);
Methods
impl CGImageRef[src]
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 ToOwned for CGImageRef
type Owned = CGImage
fn to_owned(&self) -> CGImage
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)[src]
🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more