Struct core_graphics::image::CGImageRef [−]
pub struct CGImageRef(_);
Methods
impl CGImageRef[src]
impl CGImageRefpub fn width(&self) -> size_t[src]
pub fn width(&self) -> size_tpub fn height(&self) -> size_t[src]
pub fn height(&self) -> size_tpub fn bits_per_component(&self) -> size_t[src]
pub fn bits_per_component(&self) -> size_tpub fn bits_per_pixel(&self) -> size_t[src]
pub fn bits_per_pixel(&self) -> size_tpub fn bytes_per_row(&self) -> size_t[src]
pub fn bytes_per_row(&self) -> size_tpub fn color_space(&self) -> CGColorSpace[src]
pub fn color_space(&self) -> CGColorSpacepub fn data(&self) -> CFData[src]
pub fn data(&self) -> CFDataReturns the raw image bytes wrapped in CFData. Note, the returned CFData owns the
underlying buffer.
Trait Implementations
impl ToOwned for CGImageRef
impl ToOwned for CGImageReftype Owned = CGImage
fn to_owned(&self) -> CGImage
fn to_owned(&self) -> CGImageCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)[src]
fn clone_into(&self, target: &mut Self::Owned)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Borrow<CGImageRef> for CGImage
impl Borrow<CGImageRef> for CGImagefn borrow(&self) -> &CGImageRef
fn borrow(&self) -> &CGImageRefImmutably borrows from an owned value. Read more
impl AsRef<CGImageRef> for CGImage
impl AsRef<CGImageRef> for CGImagefn as_ref(&self) -> &CGImageRef
fn as_ref(&self) -> &CGImageRefPerforms the conversion.
Auto Trait Implementations
impl Send for CGImageRef
impl Send for CGImageRefimpl !Sync for CGImageRef
impl !Sync for CGImageRef