Function libnotcurses_sys::ncplane_as_rgba[][src]

pub unsafe extern "C" fn ncplane_as_rgba(
    n: *const ncplane,
    blit: ncblitter_e,
    begy: c_int,
    begx: c_int,
    leny: c_int,
    lenx: c_int,
    pxdimy: *mut c_int,
    pxdimx: *mut c_int
) -> *mut u32
Expand description

Create an RGBA flat array from the selected region of the ncplane ‘nc’. Start at the plane’s ‘begy’x’begx’ coordinate (which must lie on the plane), continuing for ‘leny’x’lenx’ cells. Either or both of ‘leny’ and ‘lenx’ can be specified as -1 to go through the boundary of the plane. Only glyphs from the specified ncblitset may be present. If ‘pxdimy’ and/or ‘pxdimx’ are non-NULL, they will be filled in with the pixel geometry.