CGBitmapContextCreateWithData

Function CGBitmapContextCreateWithData 

Source
pub unsafe extern "C-unwind" fn CGBitmapContextCreateWithData(
    data: *mut c_void,
    width: usize,
    height: usize,
    bits_per_component: usize,
    bytes_per_row: usize,
    space: Option<&CGColorSpace>,
    bitmap_info: u32,
    release_callback: CGBitmapContextReleaseDataCallback,
    release_info: *mut c_void,
) -> Option<CFRetained<CGContext>>
Available on crate features CGColorSpace and CGContext and CGImage and CGBitmapContext only.
Expand description

ยงSafety

  • data must be a valid pointer or null.
  • release_callback must be implemented correctly.
  • release_info must be a valid pointer or null.