Struct core_graphics::image::CGImageRef[]

pub struct CGImageRef(_);

Methods

impl CGImageRef
[src]

Returns the raw image bytes wrapped in CFData. Note, the returned CFData owns the underlying buffer.

Returns a cropped image. If the rect specifies a rectangle which lies outside of the image bounds, the None is returned.

Trait Implementations

impl ToOwned for CGImageRef

Creates owned data from borrowed data, usually by cloning. Read more

🔬 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

Immutably borrows from an owned value. Read more

impl AsRef<CGImageRef> for CGImage

Performs the conversion.

Auto Trait Implementations

impl Send for CGImageRef

impl !Sync for CGImageRef