pub unsafe extern "C" fn ncvisual_from_bgra(
bgra: *const c_void,
rows: c_int,
rowstride: c_int,
cols: c_int,
) -> *mut ncvisualExpand description
ncvisual_from_rgba(), but ‘bgra’ is arranged as BGRA. note that this is a byte-oriented layout, despite being bunched in 32-bit pixels; the lowest memory address ought be B, and A is reached by adding 3 to that address. It is an error if ‘rows’, ‘cols’, or ‘rowstride’ are not positive, if ‘rowstride’ is not a multiple of 4, or if ‘rowstride’ is less than ‘cols’ * 4.