Struct core_graphics::image::CGImage [−]
pub struct CGImage(_);
Methods
impl CGImage[src]
impl CGImagepub fn new(
width: size_t,
height: size_t,
bits_per_component: size_t,
bits_per_pixel: size_t,
bytes_per_row: size_t,
colorspace: &CGColorSpace,
bitmap_info: u32,
provider: &CGDataProvider,
should_interpolate: bool,
rendering_intent: u32
) -> Self[src]
pub fn new(
width: size_t,
height: size_t,
bits_per_component: size_t,
bits_per_pixel: size_t,
bytes_per_row: size_t,
colorspace: &CGColorSpace,
bitmap_info: u32,
provider: &CGDataProvider,
should_interpolate: bool,
rendering_intent: u32
) -> Selfpub fn type_id() -> CFTypeID[src]
pub fn type_id() -> CFTypeIDMethods from Deref<Target = CGImageRef>
pub 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 Drop for CGImage
impl Drop for CGImageimpl Clone for CGImage
impl Clone for CGImagefn clone(&self) -> CGImage
fn clone(&self) -> CGImageReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Deref for CGImage
impl Deref for CGImagetype Target = CGImageRef
The resulting type after dereferencing.
fn deref(&self) -> &CGImageRef
fn deref(&self) -> &CGImageRefDereferences the value.
impl DerefMut for CGImage
impl DerefMut for CGImagefn deref_mut(&mut self) -> &mut CGImageRef
fn deref_mut(&mut self) -> &mut CGImageRefMutably dereferences the value.
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.